summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/templates
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web/app/templates')
-rw-r--r--pyload/web/app/templates/default/accounts/account.html14
-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
-rwxr-xr-xpyload/web/app/templates/default/dialogs/interactionTask.html18
-rw-r--r--pyload/web/app/templates/default/header/progress.html18
-rw-r--r--pyload/web/app/templates/default/header/progressbar.html34
-rw-r--r--pyload/web/app/templates/default/header/status.html6
-rw-r--r--pyload/web/app/templates/default/notification.html14
-rw-r--r--pyload/web/app/templates/default/settings/config.html10
-rw-r--r--pyload/web/app/templates/default/settings/configItem.html4
-rw-r--r--pyload/web/app/templates/default/settings/menu.html42
12 files changed, 103 insertions, 103 deletions
diff --git a/pyload/web/app/templates/default/accounts/account.html b/pyload/web/app/templates/default/accounts/account.html
index c2ded16f6..90bd632c8 100644
--- a/pyload/web/app/templates/default/accounts/account.html
+++ b/pyload/web/app/templates/default/accounts/account.html
@@ -1,10 +1,10 @@
-<td><% plugin %></td>
-<td><% loginname %></td>
-<td><% valid %></td>
-<td><% premium %></td>
-<td><% trafficleft %></td>
-<td><% shared %></td>
-<td><% activated %></td>
+<td>{{ plugin }}</td>
+<td>{{ loginname }}</td>
+<td>{{ valid }}</td>
+<td>{{ premium }}</td>
+<td>{{ trafficleft }}</td>
+<td>{{ shared }}</td>
+<td>{{ activated }}</td>
<td>
<button type="button" class="btn btn-danger">Delete</button>
</td> \ No newline at end of file
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;
diff --git a/pyload/web/app/templates/default/dialogs/interactionTask.html b/pyload/web/app/templates/default/dialogs/interactionTask.html
index ae325e83d..a152a5046 100755
--- a/pyload/web/app/templates/default/dialogs/interactionTask.html
+++ b/pyload/web/app/templates/default/dialogs/interactionTask.html
@@ -1,23 +1,23 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3>
- <% title %>
- <small style="background: url('<% pluginIcon plugin %>') no-repeat right 0; background-size: 20px; padding-right: 22px">
- <% plugin %>
+ {{ title }}
+ <small style="background: url('{{ pluginIcon plugin }}') no-repeat right 0; background-size: 20px; padding-right: 22px">
+ {{ plugin }}
</small>
</h3>
</div>
<div class="modal-body">
<form class="form-horizontal" action="#">
- <legend><% description %></legend>
- <%= if captcha %>
+ <legend>{{ description }}</legend>
+ {{#if captcha }}
<div class="control-group">
<label class="control-label" for="captchaImage">
Captcha Image
</label>
<div class="controls">
- <img id="captchaImage" src="data:image/<% type %>;base64,<% captcha %>">
+ <img id="captchaImage" src="data:image/{{ type }};base64,{{ captcha }}">
</div>
</div>
<div class="control-group">
@@ -26,9 +26,9 @@
<div class="controls" id="inputField">
</div>
</div>
- <% else %>
- <% content %>
- <%/if%>
+ {{ else }}
+ {{ content }}
+ {{/if}}
</form>
</div>
<div class="modal-footer">
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
diff --git a/pyload/web/app/templates/default/notification.html b/pyload/web/app/templates/default/notification.html
index 0f9b2c9d2..150b2800a 100644
--- a/pyload/web/app/templates/default/notification.html
+++ b/pyload/web/app/templates/default/notification.html
@@ -1,11 +1,11 @@
-<%= if queries %>
+{{#if queries }}
<span class="btn-query">
-Queries <span class="badge badge-info"><% queries %></span>
+Queries <span class="badge badge-info">{{ queries }}></span>
</span>
-<%/if%>
-<%= if notifications %>
+{{/if}}
+{{#if notifications }}
<span class="btn-notification">
-Notifications <span class="badge badge-success"><% notifications %></span>
+Notifications <span class="badge badge-success">{{ notifications }}</span>
</span>
-<%/if%>
-</%if%> \ No newline at end of file
+{{/if}}
+</%if}} \ No newline at end of file
diff --git a/pyload/web/app/templates/default/settings/config.html b/pyload/web/app/templates/default/settings/config.html
index a9ca6214c..47ff45f0b 100644
--- a/pyload/web/app/templates/default/settings/config.html
+++ b/pyload/web/app/templates/default/settings/config.html
@@ -1,11 +1,11 @@
<legend>
<div class="page-header">
- <h1><% label %>
- <small><% description %></small>
- <%= if long_description %>
- <a class="btn btn-small" data-title="Help" data-content="<% long_description %>"><i
+ <h1>{{ label }}
+ <small>{{ description }}</small>
+ {{#if long_description }}
+ <a class="btn btn-small" data-title="Help" data-content="{{ long_description }}"><i
class="icon-question-sign"></i></a>
- <%/if%>
+ {{/if}}
</h1>
</div>
</legend>
diff --git a/pyload/web/app/templates/default/settings/configItem.html b/pyload/web/app/templates/default/settings/configItem.html
index 3ddf16c84..5b583b8df 100644
--- a/pyload/web/app/templates/default/settings/configItem.html
+++ b/pyload/web/app/templates/default/settings/configItem.html
@@ -1,7 +1,7 @@
<div class="control-group">
- <label class="control-label"><% label %></label>
+ <label class="control-label">{{ label }}</label>
<div class="controls">
- <!--{# <span class="help-inline"><% description %></span>#}-->
+ <!--{# <span class="help-inline">{{ description }}</span>#}-->
</div>
</div> \ No newline at end of file
diff --git a/pyload/web/app/templates/default/settings/menu.html b/pyload/web/app/templates/default/settings/menu.html
index ef814414a..b560e9b83 100644
--- a/pyload/web/app/templates/default/settings/menu.html
+++ b/pyload/web/app/templates/default/settings/menu.html
@@ -1,40 +1,40 @@
-<%=if core%>
+{{#if core}}
<li class="nav-header"><i class="icon-globe icon-white"></i> General</li>
-<%= each core%>
-<li data-name="<% name %>"><a href="#"><% label %></a></li>
-<%/each%>
-<%/if%>
+{{#each core}}
+<li data-name="{{ name }}"><a href="#">{{ label }}</a></li>
+{{/each}}
+{{/if}}
<li class="divider"></li>
<li class="nav-header"><i class="icon-th-large icon-white"></i> Addons</li>
-<%= each addon %>
-<li class="addon" data-name="<% name %>">
- <a href="#" style="background-image: url(<% pluginIcon name %>);">
- <% label %>
+{{#each addon }}
+<li class="addon" data-name="{{ name }}">
+ <a href="#" style="background-image: url({{ pluginIcon name }});">
+ {{ label }}
<i class="icon-remove pull-right"></i>
- <%= if activated %>
+ {{#if activated }}
<div class="addon-on">
active
- <%else%>
+ {{else}}
<div class="addon-off">
inactive
- <%/if%>
- <%= if user_context %>
+ {{/if}}
+ {{#if user_context }}
<!--{# TODO: tooltip #}-->
<i class="icon-user pull-right"></i>
- <%else%>
+ {{else}}
<i class="icon-globe pull-right"></i>
- <%/if%>
+ {{/if}}
</div>
</a>
</li>
-<%/each%>
+{{/each}}
<li class="divider"></li>
<li class="nav-header"><i class="icon-th-list icon-white"></i> Plugin Configs</li>
-<%= each plugin %>
-<li class="plugin" data-name="<% name %>">
- <a href="#" style="background-image: url(<% pluginIcon name %>);">
- <% label %>
+{{#each plugin }}
+<li class="plugin" data-name="{{ name }}">
+ <a href="#" style="background-image: url({{ pluginIcon name }});">
+ {{ label }}
<i class="icon-remove pull-right"></i>
</a>
</li>
-<%/each%> \ No newline at end of file
+{{/each}} \ No newline at end of file