Merge branch 'status-page-1172' into staging
This commit is contained in:
commit
7c61b94f9d
3 changed files with 11 additions and 2 deletions
|
@ -102,7 +102,7 @@ define([
|
||||||
source: 'https://github.com/cryptpad/cryptpad',
|
source: 'https://github.com/cryptpad/cryptpad',
|
||||||
};
|
};
|
||||||
var l = Msg._getLanguage();
|
var l = Msg._getLanguage();
|
||||||
['imprint', 'privacy', 'terms', 'roadmap', 'source'].forEach(function (k) {
|
['imprint', 'privacy', 'terms', 'status', 'roadmap', 'source'].forEach(function (k) {
|
||||||
var value = AppConfig[k];
|
var value = AppConfig[k];
|
||||||
//console.log('links', k, value);
|
//console.log('links', k, value);
|
||||||
if (value === false) { return; }
|
if (value === false) { return; }
|
||||||
|
|
|
@ -100,6 +100,7 @@ define([
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Msg.status = "Status page"; // XXX
|
||||||
var pageLink = function (ref, loc, text) {
|
var pageLink = function (ref, loc, text) {
|
||||||
if (!ref) { return; }
|
if (!ref) { return; }
|
||||||
var attrs = {
|
var attrs = {
|
||||||
|
@ -121,6 +122,7 @@ define([
|
||||||
var imprintLink = fastLink('imprint');
|
var imprintLink = fastLink('imprint');
|
||||||
var privacyLink = fastLink('privacy');
|
var privacyLink = fastLink('privacy');
|
||||||
var termsLink = fastLink('terms');
|
var termsLink = fastLink('terms');
|
||||||
|
var statusLink = fastLink('status');
|
||||||
|
|
||||||
var notice;
|
var notice;
|
||||||
/* Admins can specify a notice to display in application_config.js via the `homeNotice` attribute.
|
/* Admins can specify a notice to display in application_config.js via the `homeNotice` attribute.
|
||||||
|
@ -182,7 +184,8 @@ define([
|
||||||
termsLink,
|
termsLink,
|
||||||
privacyLink,
|
privacyLink,
|
||||||
imprintLink,
|
imprintLink,
|
||||||
h('a', {href:"/contact.html"}, Msg.contact)
|
h('a', {href:"/contact.html"}, Msg.contact),
|
||||||
|
statusLink,
|
||||||
])
|
])
|
||||||
]),
|
]),
|
||||||
h('div.cp-apps.col-lg-6', [
|
h('div.cp-apps.col-lg-6', [
|
||||||
|
|
|
@ -113,6 +113,12 @@ define(function() {
|
||||||
*/
|
*/
|
||||||
AppConfig.roadmap = false;
|
AppConfig.roadmap = false;
|
||||||
|
|
||||||
|
/* If you have a status page for your instance, you may use the setting belox
|
||||||
|
*
|
||||||
|
* See the comments above for a description of possible configurations.
|
||||||
|
*/
|
||||||
|
AppConfig.status = false;
|
||||||
|
|
||||||
/* By default CryptPad instances display some text on the home page indicating that
|
/* By default CryptPad instances display some text on the home page indicating that
|
||||||
* they are an independent community instance of the software. You can provide customized messages
|
* they are an independent community instance of the software. You can provide customized messages
|
||||||
* by filling in the following data structure with strings for each language you intend to support.
|
* by filling in the following data structure with strings for each language you intend to support.
|
||||||
|
|
Loading…
Reference in a new issue