modified header in apidocs
This commit is contained in:
parent
4a7616d5a0
commit
69f391d2d6
7 changed files with 67 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
||||||
<p><big>AppDoc <% this.name %></big>
|
<P><big>AppDoc <% this.name %><br/></big></p>
|
||||||
<br/>
|
<p><% param.path %></p>
|
||||||
->
|
<p> ->
|
||||||
<a href="<% this.parentlink %>">AppManager</a> |
|
<a href="<% this.parentlink %>">AppManager</a> |
|
||||||
<a href="<% this.parentlink action="redirectpublic" %>">public</a>
|
<a href="<% this.parentlink action="redirectpublic" %>">public</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -18,6 +18,24 @@ function href_macro(par) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* macro rendering page head
|
||||||
|
*/
|
||||||
|
function head_macro(par) {
|
||||||
|
var obj = new Object();
|
||||||
|
obj.path = this.getPath();
|
||||||
|
this.renderSkin("head",obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* utility function for head_macro, rendering link to app
|
||||||
|
*/
|
||||||
|
function getPath() {
|
||||||
|
return( '<a href="' + this.href("main") + '">' + this.name + '</a>' );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* link to the "real" application object (ie not the DocApplication)
|
* link to the "real" application object (ie not the DocApplication)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<% this.skin name="head" %>
|
<% this.head %>
|
||||||
|
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -18,6 +18,27 @@ function href_macro(par) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* macro rendering page head
|
||||||
|
*/
|
||||||
|
function head_macro(par) {
|
||||||
|
var obj = new Object();
|
||||||
|
obj.path = this.getPath();
|
||||||
|
var appObj = this.getApplication();
|
||||||
|
appObj.renderSkin("head",obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* utility function for head_macro, rendering link to app and to prototype
|
||||||
|
*/
|
||||||
|
function getPath() {
|
||||||
|
var protoObj = this.getDocPrototype();
|
||||||
|
var str = protoObj.getPath() + "/" + this.getFullName();
|
||||||
|
return( str );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* macro returning name of file this method resides in
|
* macro returning name of file this method resides in
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
|
<% this.head %>
|
||||||
|
|
||||||
<h2>
|
|
||||||
<a href="<% docprototype.href action="main" %>">Prototype <% docprototype.name %></a><br>
|
|
||||||
<% this.fullname %>
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<div class="list_property">
|
<div class="list_property">
|
||||||
<small> <i>in <% docprototype.name%>/<% this.location %>:</i></small>
|
<small> <i>in <% docprototype.name%>/<% this.location %>:</i></small>
|
||||||
|
|
|
@ -18,6 +18,28 @@ function href_macro(par) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* macro rendering page head
|
||||||
|
*/
|
||||||
|
function head_macro(par) {
|
||||||
|
var obj = new Object();
|
||||||
|
obj.path = this.getPath();
|
||||||
|
var appObj = this.getApplication();
|
||||||
|
appObj.renderSkin("head",obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* utility function for head_macro, rendering link to app and to prototype
|
||||||
|
*/
|
||||||
|
function getPath() {
|
||||||
|
var appObj = this.getApplication();
|
||||||
|
var str = appObj.getPath();
|
||||||
|
str += '/<a href="' + this.href("main") + '">' + this.name + '</a>';
|
||||||
|
return( str );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* macro returning the comment for this prototype
|
* macro returning the comment for this prototype
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
|
<% this.head %>
|
||||||
<h2>Prototype <% this.name %></h2>
|
|
||||||
|
|
||||||
<% this.actions %>
|
<% this.actions %>
|
||||||
<% this.skins %>
|
<% this.skins %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue