From 126f795463973ac78d909ddf9d470eaae5d44207 Mon Sep 17 00:00:00 2001
From: RaNaN <Mast3rRaNaN@hotmail.de>
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 %>
-<span class="pull-right"><% plugin %></span>
+{{ name }}
+<span class="pull-right">{{ plugin }}</span>
 
 <div class="progress">
-    <div class="bar" style="width: <% percent %>%"></div>
+    <div class="bar" style="width: {{ percent }}%"></div>
 </div>
-<%= 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}}
 <span class="pull-right">
-    <% formatTime eta %>
+    {{ formatTime eta }}
 </span>
\ 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}}
     <i class="icon-list pull-right"></i>
     <!-- TODO active animation -->
     <div class="progress" id="globalprogress">
-        <%= if single %>
-        <div class="bar" style="width: <% percent %>%">
-            <% else %>
-            <div class="bar <%= if downloads %>running<%/if%>">
-                <%/if%>
+        {{#if single }}
+        <div class="bar" style="width: {{ percent }}%">
+            {{ else }}
+            <div class="bar {{#if downloads }}running{{/if}}">
+                {{/if}}
             </div>
         </div>
         <div class="sub">
-            <%= if linksqueue %>
-            <% linksqueue %> downloads left (<% formatSize sizequeue %>)
-            <%/if%>
+            {{#if linksqueue }}
+            {{ linksqueue }} downloads left ({{ formatSize sizequeue }})
+            {{/if}}
     <span class="pull-right">
-        <% formatTime etaqueue %>
+        {{ formatTime etaqueue }}
     </span>
     </div>
\ 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 @@
-<span class="pull-right maxspeed"><% formatSize maxspeed %>/s</span><br>
-<span class="pull-right running"><% paused %></span><br>
-<span class="pull-right reconnect"><%= if reconnect %>true<% else %>false<%/if%></span>
\ No newline at end of file
+<span class="pull-right maxspeed">{{ formatSize maxspeed }}/s</span><br>
+<span class="pull-right running">{{ paused }}</span><br>
+<span class="pull-right reconnect">{{#if reconnect }}true{{ else }}false{{/if}}</span>
\ No newline at end of file
-- 
cgit v1.2.3