diff --git a/DocApplication/actions.js b/DocApplication/actions.js
index 1087d246..f071ac99 100644
--- a/DocApplication/actions.js
+++ b/DocApplication/actions.js
@@ -43,11 +43,13 @@ function functionindex_action () {
function render_action () {
+ // set res.data.rendering, this will suppress the link back to the manage
+ // console in the apidocs actions
+ res.data.rendering = true;
if (checkAddress()==false)
return;
if (checkAuth(this.getParentElement ())==false)
return;
- res.writeln("
renderrendering API ... ");
var prefix = this.href ("");
this.storePage (this, "main", "", "index.html");
this.storePage (this, "prototypes");
@@ -65,5 +67,9 @@ function render_action () {
ct += 1;
}
}
- res.writeln (" ... wrote " + ct + " files");
+ res.data.body = 'rendering API ...
wrote ' + ct + ' files
';
+ res.data.body += 'back to manage console';
+ res.data.title = "rendering helma api";
+ res.data.head = renderSkinAsString("head");
+ renderSkin ("basic");
}
diff --git a/DocApplication/macros.js b/DocApplication/macros.js
index f7b78ccd..daccf992 100644
--- a/DocApplication/macros.js
+++ b/DocApplication/macros.js
@@ -24,6 +24,13 @@ function link_macro (param) { return renderLink (this, param); }
//// END OF COPIED FUNCTIONS
+
+function linkToManage_macro (param) {
+ if (res.data.rendering != true) {
+ return ('back to manage console');
+ }
+}
+
function headline_macro (param) {
res.write (this.getName ());
}
diff --git a/DocApplication/prototypes.skin b/DocApplication/prototypes.skin
index cdbcc472..2ff758fb 100644
--- a/DocApplication/prototypes.skin
+++ b/DocApplication/prototypes.skin
@@ -1,4 +1,4 @@
-
+<% this.linkToManage suffix="
" %>
Application " target="main"><% this.name %>