From 126f795463973ac78d909ddf9d470eaae5d44207 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 13 Jun 2013 12:13:02 +0200 Subject: converted templates to default mustache syntax --- .../web/app/templates/default/header/progress.html | 18 ++++++------ .../app/templates/default/header/progressbar.html | 34 +++++++++++----------- .../web/app/templates/default/header/status.html | 6 ++-- 3 files changed, 29 insertions(+), 29 deletions(-) (limited to 'pyload/web/app/templates/default/header') diff --git a/pyload/web/app/templates/default/header/progress.html b/pyload/web/app/templates/default/header/progress.html index 65ae9a880..4ef5a1cd6 100644 --- a/pyload/web/app/templates/default/header/progress.html +++ b/pyload/web/app/templates/default/header/progress.html @@ -1,14 +1,14 @@ -<% name %> -<% plugin %> +{{ name }} +{{ plugin }}
-
+
-<%= if downloading %> -<% formatSize done %> of <% formatSize total %> (<% formatSize download.speed %>/s) -<% else %> -<% statusmsg %> -<%/if%> +{{#if downloading }} +{{ formatSize done }} of {{ formatSize total }} ({{ formatSize download.speed }}/s) +{{ else }} +{{ statusmsg }} +{{/if}} - <% formatTime eta %> + {{ formatTime eta }} \ No newline at end of file diff --git a/pyload/web/app/templates/default/header/progressbar.html b/pyload/web/app/templates/default/header/progressbar.html index 41645c92f..e32edb335 100644 --- a/pyload/web/app/templates/default/header/progressbar.html +++ b/pyload/web/app/templates/default/header/progressbar.html @@ -1,27 +1,27 @@ - <%= if single %> - <% name %> (<% statusmsg %>) - <% else %> - <%= if downloads %> - <% downloads %> downloads running <%= if speed %>(<% formatSize speed %>/s)<%/if%> - <% else %> + {{#if single }} + {{ name }} ({{ statusmsg }}) + {{ else }} + {{#if downloads }} + {{ downloads }} downloads running {{#if speed }}({{ formatSize speed }}/s){{/if}} + {{ else }} No running tasks - <%/if%> - <%/if%> + {{/if}} + {{/if}}
- <%= if single %> -
- <% else %> -
- <%/if%> + {{#if single }} +
+ {{ else }} +
+ {{/if}}
- <%= if linksqueue %> - <% linksqueue %> downloads left (<% formatSize sizequeue %>) - <%/if%> + {{#if linksqueue }} + {{ linksqueue }} downloads left ({{ formatSize sizequeue }}) + {{/if}} - <% formatTime etaqueue %> + {{ formatTime etaqueue }}
\ No newline at end of file diff --git a/pyload/web/app/templates/default/header/status.html b/pyload/web/app/templates/default/header/status.html index 3a22bb75b..f840b6e33 100644 --- a/pyload/web/app/templates/default/header/status.html +++ b/pyload/web/app/templates/default/header/status.html @@ -1,3 +1,3 @@ -<% formatSize maxspeed %>/s
-<% paused %>
-<%= if reconnect %>true<% else %>false<%/if%> \ No newline at end of file +{{ formatSize maxspeed }}/s
+{{ paused }}
+{{#if reconnect }}true{{ else }}false{{/if}} \ No newline at end of file -- cgit v1.2.3