make version info accessible from within apps
parent
dbe79d41a7
commit
c03bd75f29
|
@ -61,6 +61,9 @@ define([
|
|||
|
||||
var imprintUrl = AppConfig.imprint && (typeof(AppConfig.imprint) === "boolean" ?
|
||||
'/imprint.html' : AppConfig.imprint);
|
||||
|
||||
Pages.versionString = "CryptPad v3.18.0 (Smilodon)";
|
||||
|
||||
Pages.infopageFooter = function () {
|
||||
return h('footer', [
|
||||
h('div.container', [
|
||||
|
@ -107,7 +110,7 @@ define([
|
|||
])*/
|
||||
])
|
||||
]),
|
||||
h('div.cp-version-footer', "CryptPad v3.18.0 (Smilodon)")
|
||||
h('div.cp-version-footer', Pages.versionString)
|
||||
]);
|
||||
};
|
||||
|
||||
|
|
|
@ -2400,6 +2400,22 @@ define([
|
|||
content: h('span', Messages.survey)
|
||||
});
|
||||
}
|
||||
if (Pages.versionString) {
|
||||
Messages.user_about = "About CryptPad"; // XXX
|
||||
var aboutButton = h('span', Messages.user_about);
|
||||
$(aboutButton).click(function () {
|
||||
UI.alert(Pages.versionString);
|
||||
});
|
||||
|
||||
options.push({
|
||||
tag: 'a',
|
||||
attributes: {
|
||||
'class': 'fa fa-info',
|
||||
},
|
||||
content: aboutButton,
|
||||
});
|
||||
}
|
||||
|
||||
options.push({ tag: 'hr' });
|
||||
// Add login or logout button depending on the current status
|
||||
if (priv.loggedIn) {
|
||||
|
|
Loading…
Reference in New Issue