remove bottom bar and move language selector to main html

pull/1/head
ansuz 8 years ago
parent c6499d6789
commit d843caeb9a

@ -19,6 +19,8 @@
<select id="language-selector" style="display: none;"></select>
<div id="main"> <div id="main">
<center> <center>
<a href="/"><img class="imgcenter cryptofist" src="/customize/cryptofist_small.png" /></a> <a href="/"><img class="imgcenter cryptofist" src="/customize/cryptofist_small.png" /></a>

@ -19,6 +19,8 @@
<select id="language-selector" style="display: none;"></select>
<div id="main"> <div id="main">
<center> <center>
<a href="/"><img class="imgcenter cryptofist" src="/customize/cryptofist_small.png" /></a> <a href="/"><img class="imgcenter cryptofist" src="/customize/cryptofist_small.png" /></a>

@ -1,11 +1,12 @@
define([ define([
'/customize/messages.js', '/customize/messages.js',
'/customize/DecorateToolbar.js', //'/customize/DecorateToolbar.js',
'/customize/application_config.js', '/customize/application_config.js',
'/common/cryptpad-common.js', '/common/cryptpad-common.js',
'/bower_components/lil-uri/uri.min.js', '/bower_components/lil-uri/uri.min.js',
'/customize/languageSelector.js',
'/bower_components/jquery/dist/jquery.min.js', '/bower_components/jquery/dist/jquery.min.js',
], function (Messages, DecorateToolbar, Config, Cryptpad, LilUri) { ], function (Messages, Config, Cryptpad, LilUri, LS) {
var $ = window.$; var $ = window.$;
var APP = window.APP = { var APP = window.APP = {
@ -34,6 +35,18 @@ define([
}); });
}; };
var $sel = $('#language-selector');
Object.keys(Messages._languages).forEach(function (code) {
$sel.append($('<option>', {
value: code,
}).text(Messages._languages[code]));
});
LS.main();
Messages._applyTranslation();
$sel.show();
var makeRecentPadsTable = function (recentPads) { var makeRecentPadsTable = function (recentPads) {
if (!recentPads.length) { return; } if (!recentPads.length) { return; }

@ -19,6 +19,8 @@
<select id="language-selector" style="display: none;"></select>
<div id="main"> <div id="main">
<center> <center>
<a href="/"><img class="imgcenter cryptofist" src="/customize/cryptofist_small.png" /></a> <a href="/"><img class="imgcenter cryptofist" src="/customize/cryptofist_small.png" /></a>
@ -71,8 +73,6 @@
<br /> <br />
</div> </div>
</body> </body>
</html> </html>

@ -16,6 +16,8 @@
<body> <body>
{{fork}} {{fork}}
<select id="language-selector" style="display: none;"></select>
<div id="main"> <div id="main">
{{logo}} {{logo}}

@ -19,6 +19,8 @@
<select id="language-selector" style="display: none;"></select>
<div id="main"> <div id="main">
<center> <center>
<a href="/"><img class="imgcenter cryptofist" src="/customize/cryptofist_small.png" /></a> <a href="/"><img class="imgcenter cryptofist" src="/customize/cryptofist_small.png" /></a>

Loading…
Cancel
Save