mirror of https://github.com/xwiki-labs/cryptpad
Example of how to commit temporary micro-copy
This commit is contained in:
parent
8cd0d86575
commit
b520a2a33d
|
@ -8,9 +8,12 @@ define([
|
||||||
var urlArgs = window.location.href.replace(/^.*\?([^\?]*)$/, function (all, x) { return x; });
|
var urlArgs = window.location.href.replace(/^.*\?([^\?]*)$/, function (all, x) { return x; });
|
||||||
var elem = document.createElement('div');
|
var elem = document.createElement('div');
|
||||||
elem.setAttribute('id', 'cp-loading');
|
elem.setAttribute('id', 'cp-loading');
|
||||||
|
|
||||||
|
Messages.label_logo = "CryptPad logo"; // XXX Logo
|
||||||
|
|
||||||
elem.innerHTML = [
|
elem.innerHTML = [
|
||||||
'<div class="cp-loading-logo">',
|
'<div class="cp-loading-logo">',
|
||||||
'<img class="cp-loading-cryptofist" src="/customize/CryptPad_logo.svg?' + urlArgs + '" alt="CryptPad Logo">', // XXX
|
'<img class="cp-loading-cryptofist" src="/customize/CryptPad_logo.svg?' + urlArgs + '" alt="' + Messages.label_logo + '">',
|
||||||
'</div>',
|
'</div>',
|
||||||
'<div class="cp-loading-container">',
|
'<div class="cp-loading-container">',
|
||||||
'<div class="cp-loading-spinner-container">',
|
'<div class="cp-loading-spinner-container">',
|
||||||
|
|
|
@ -1740,11 +1740,13 @@ define([
|
||||||
var termsLine = template(Messages.info_termsFlavour, Pages.termsLink);
|
var termsLine = template(Messages.info_termsFlavour, Pages.termsLink);
|
||||||
var sourceLine = template(Messages.info_sourceFlavour, Pages.sourceLink);
|
var sourceLine = template(Messages.info_sourceFlavour, Pages.sourceLink);
|
||||||
|
|
||||||
|
Messages.label_logo = "CryptPad logo"; // XXX Logo
|
||||||
|
|
||||||
var content = h('div.cp-info-menu-container', [
|
var content = h('div.cp-info-menu-container', [
|
||||||
h('div.logo-block', [
|
h('div.logo-block', [
|
||||||
h('img', {
|
h('img', {
|
||||||
src: '/customize/CryptPad_logo.svg?' + urlArgs,
|
src: '/customize/CryptPad_logo.svg?' + urlArgs,
|
||||||
alt: 'CryptPad Logo' // XXX
|
alt: Messages.label_logo
|
||||||
}),
|
}),
|
||||||
h('h6', "CryptPad"),
|
h('h6', "CryptPad"),
|
||||||
h('span', Pages.versionString)
|
h('span', Pages.versionString)
|
||||||
|
|
Loading…
Reference in New Issue