diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-06-13 12:13:02 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-06-13 12:13:02 +0200 |
commit | 126f795463973ac78d909ddf9d470eaae5d44207 (patch) | |
tree | 55e211a35b2144e16a07906941cadb3f4f06a659 /pyload/web/app/templates | |
parent | improved webui built script (diff) | |
download | pyload-126f795463973ac78d909ddf9d470eaae5d44207.tar.xz |
converted templates to default mustache syntax
Diffstat (limited to 'pyload/web/app/templates')
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> <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> - <% formatSize size %> + <i class="{{ fileIcon media }}"></i> + {{ formatSize size }} <span class="pull-right"> - <img src="<% pluginIcon download.plugin %>"/> - <% download.plugin %> + <img src="{{ pluginIcon download.plugin }}"/> + {{ download.plugin }} <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> -<%= 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 | <i class="icon-pause" data-toggle="tooltip" title="Pause"></i> 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">×</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 |