summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/templates/default/dashboard
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-06-13 12:13:02 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-06-13 12:13:02 +0200
commit126f795463973ac78d909ddf9d470eaae5d44207 (patch)
tree55e211a35b2144e16a07906941cadb3f4f06a659 /pyload/web/app/templates/default/dashboard
parentimproved webui built script (diff)
downloadpyload-126f795463973ac78d909ddf9d470eaae5d44207.tar.xz
converted templates to default mustache syntax
Diffstat (limited to 'pyload/web/app/templates/default/dashboard')
-rw-r--r--pyload/web/app/templates/default/dashboard/file.html16
-rw-r--r--pyload/web/app/templates/default/dashboard/package.html20
-rw-r--r--pyload/web/app/templates/default/dashboard/select.html10
3 files changed, 23 insertions, 23 deletions
diff --git a/pyload/web/app/templates/default/dashboard/file.html b/pyload/web/app/templates/default/dashboard/file.html
index 6256254da..4bf3c7a97 100644
--- a/pyload/web/app/templates/default/dashboard/file.html
+++ b/pyload/web/app/templates/default/dashboard/file.html
@@ -1,25 +1,25 @@
<div class="file-row first span6">
<i class="checkbox"></i>&nbsp;
<span class="name">
- <% name %>
+ {{ name }}
</span>
</div>
-<div class="file-row second span3 <% fileClass this %>">
- <% fileStatus this %>
+<div class="file-row second span3 {{ fileClass this }}">
+ {{ fileStatus this }}
</div>
<div class="file-row third span3 pull-right">
- <i class="<% fileIcon media %>"></i>&nbsp;
- <% formatSize size %>
+ <i class="{{ fileIcon media }}"></i>&nbsp;
+ {{ formatSize size }}
<span class="pull-right">
- <img src="<% pluginIcon download.plugin %>"/>
- <% download.plugin %>&nbsp;
+ <img src="{{ pluginIcon download.plugin }}"/>
+ {{ download.plugin }}&nbsp;
<i class="icon-chevron-down" data-toggle="dropdown"></i>
<ul class="dropdown-menu" role="menu">
<li><a href="#" class="btn-delete"><i class="icon-trash"></i> Delete</a></li>
<li><a href="#" class="btn-restart"><i class="icon-refresh"></i> Restart</a></li>
<!--{# TODO: only show when finished #}-->
- <li><a href="download/<% fid %>" target="_blank" class="btn-dowload"><i class="icon-download"></i>
+ <li><a href="download/{{ fid }}" target="_blank" class="btn-dowload"><i class="icon-download"></i>
Download</a></li>
<li><a href="#" class="btn-share"><i class="icon-share"></i> Share</a></li>
<li class="divider"></li>
diff --git a/pyload/web/app/templates/default/dashboard/package.html b/pyload/web/app/templates/default/dashboard/package.html
index c0690a9bf..0f2496046 100644
--- a/pyload/web/app/templates/default/dashboard/package.html
+++ b/pyload/web/app/templates/default/dashboard/package.html
@@ -1,10 +1,10 @@
-<%= if selected %>
+{{#if selected }}
<i class="icon-check select"></i>
- <% else %>
+ {{ else }}
<i class="icon-check-empty select"></i>
- <%/if%>
+ {{/if}}
<span class="package-name">
- <% name %>
+ {{ name }}
</span>
<div class="package-frame">
@@ -16,11 +16,11 @@
<i class="icon-plus-sign btn-move" data-toggle="tooltip" title="Move files here"></i>
<i class="icon-pause" data-toggle="tooltip" title="Pause Package"></i>
<i class="icon-refresh" data-toggle="tooltip" title="Restart Package"></i>
- <%= if shared %>
+ {{#if shared }}
<i class="icon-eye-open" data-toggle="tooltip" title="Package is public"></i>
- <% else %>
+ {{ else }}
<i class="icon-eye-close" data-toggle="tooltip" title="Package is private"></i>
- <%/if%>
+ {{/if}}
<i class="icon-chevron-down" data-toggle="dropdown">
</i>
<ul class="dropdown-menu" role="menu">
@@ -40,11 +40,11 @@
</div>
<div class="progress">
<span style="position: absolute; left: 5px">
- <% stats.linksdone %> / <% stats.linkstotal %>
+ {{ stats.linksdone }} / {{ stats.linkstotal }}
</span>
- <div class="bar bar-info" style="width: <% percent %>%"></div>
+ <div class="bar bar-info" style="width: {{ percent }}%"></div>
<span style="position: absolute; right: 5px">
- <% formatSize stats.sizedone %> / <% formatSize stats.sizetotal %>
+ {{ formatSize stats.sizedone }} / {{ formatSize stats.sizetotal }}
</span>
</div>
</div> \ No newline at end of file
diff --git a/pyload/web/app/templates/default/dashboard/select.html b/pyload/web/app/templates/default/dashboard/select.html
index 73ea391cd..3803bb646 100644
--- a/pyload/web/app/templates/default/dashboard/select.html
+++ b/pyload/web/app/templates/default/dashboard/select.html
@@ -1,9 +1,9 @@
<i class="icon-check" data-toggle="tooltip" title="Deselect"></i>&nbsp;
-<%= if packs %><% packs %> package(s)<%/if %>
-<%= if files %>
-<%= if packs %>, <%/if %>
-<% files %> file(s)
-<%/if %>
+{{#if packs }}{{ packs }} package(s){{/if }}
+{{#if files }}
+{{#if packs }}, {{/if }}
+{{ files }} file(s)
+{{/if }}
selected
&nbsp;|&nbsp;
<i class="icon-pause" data-toggle="tooltip" title="Pause"></i>&nbsp;