diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-11 20:20:27 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-11 20:20:27 +0100 |
commit | 7a3e656a9d202471c323540826ceb1f7145db781 (patch) | |
tree | 8541a0fd2d9394ad6c5ab78189a039a27706ba33 /module/web/templates/default/base.html | |
parent | websocket login via session, websocket pushes server status, webui renders se... (diff) | |
download | pyload-7a3e656a9d202471c323540826ceb1f7145db781.tar.xz |
better time formatting
Diffstat (limited to 'module/web/templates/default/base.html')
-rw-r--r-- | module/web/templates/default/base.html | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index e8661cbbc..71b913f9e 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -21,6 +21,14 @@ <script src="/static/js/libs/less-1.3.0.min.js" type="text/javascript"></script>
<script type="text/javascript" data-main="static/js/config" src="/static/js/libs/require-2.1.5.js"></script>
<script>
+ window.dates = {
+ weeks: ['week', 'weeks'],
+ days: ['day', 'days'],
+ hours: ['hour', 'hours'],
+ minutes: ['minute', 'minutes'],
+ seconds: ['second', 'seconds']
+ }; // TODO carefully when translating
+
window.wsAddress = "{{ ws }}";
window.pathPrefix = ""; // TODO
@@ -81,8 +89,8 @@ </div>
<div class="header_block left-border">
<i class="icon-time icon-white"></i> approx. ETA :<br>
- <i class=" icon-hdd icon-white"></i> Remeaning:<br>
- <i class="icon-download-alt icon-white"></i> Downloads: <br>
+ <i class=" icon-hdd icon-white"></i> Remaining:<br>
+ <i class="icon-download-alt icon-white"></i> Downloads:<br>
</div>
<div id="progress-area" style="margin-top: 16px">
|