diff --git a/public/js/HTMLApi.js b/public/js/HTMLApi.js
index 9205306..05b9082 100644
--- a/public/js/HTMLApi.js
+++ b/public/js/HTMLApi.js
@@ -12,8 +12,9 @@ function HTMLApi(opt, cb)
this._docsJson = opt.docsJson;
this._user = opt.user;
this._curlUser = opt.curlUser || '${GDAPI_ACCESS_KEY}:${GDAPI_SECRET_KEY}';
- this._filterId = 0;
+ this._logout = opt.logout !== false;
+ this._filterId = 0;
this._reqModal = null;
this._editSchema = null;
this._editData = null;
@@ -315,6 +316,7 @@ HTMLApi.prototype.render = function(cb)
data: this._data,
docsPage: this._docsPage,
user: this._user,
+ logout: this._logout,
error: this._error,
explorer: Cookie.get('debug') || false
};
diff --git a/public/js/init.js b/public/js/init.js
index c051c1d..643b578 100644
--- a/public/js/init.js
+++ b/public/js/init.js
@@ -33,9 +33,10 @@ var explorer;
data: window.data,
schemasUrl: window.schemas,
docsPage: window.docsPage || window.docs,
- docsJson: window.docJson || window.docsJson,
+ docsJson: window.docsJson || window.docJson,
user: window.user,
- curlUser: window.curlUser
+ curlUser: window.curlUser,
+ logout: window.logout
}, apiReady);
}
catch (e)
diff --git a/public/view/body.hbs b/public/view/body.hbs
index 8f547b8..2b1d220 100644
--- a/public/view/body.hbs
+++ b/public/view/body.hbs
@@ -11,7 +11,9 @@
{{#if user}}
{{user}}
{{/if}}
- Log Out
+ {{#if logout}}
+ Log Out
+ {{/if}}
{{#if explorer}}
Explorer View