summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/templates/default/header
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web/app/templates/default/header')
-rw-r--r--pyload/web/app/templates/default/header/blank.html4
-rw-r--r--pyload/web/app/templates/default/header/layout.html61
-rw-r--r--pyload/web/app/templates/default/header/progress.html10
-rw-r--r--pyload/web/app/templates/default/header/progressStatus.html8
-rw-r--r--pyload/web/app/templates/default/header/progressSub.html6
-rw-r--r--pyload/web/app/templates/default/header/progressSup.html10
-rw-r--r--pyload/web/app/templates/default/header/progressbar.html16
-rw-r--r--pyload/web/app/templates/default/header/status.html3
8 files changed, 118 insertions, 0 deletions
diff --git a/pyload/web/app/templates/default/header/blank.html b/pyload/web/app/templates/default/header/blank.html
new file mode 100644
index 000000000..305477d4e
--- /dev/null
+++ b/pyload/web/app/templates/default/header/blank.html
@@ -0,0 +1,4 @@
+<div class="span3">
+ <div class="logo"></div>
+ <span class="title visible-large-screen">pyLoad</span>
+</div> \ No newline at end of file
diff --git a/pyload/web/app/templates/default/header/layout.html b/pyload/web/app/templates/default/header/layout.html
new file mode 100644
index 000000000..30df742fa
--- /dev/null
+++ b/pyload/web/app/templates/default/header/layout.html
@@ -0,0 +1,61 @@
+<div class="span3">
+ <div class="logo"></div>
+ <span class="title visible-large-screen">pyLoad</span>
+</div>
+<div class="span4 offset1">
+ <div id="progress-area">
+ <span id="progress-info">
+ </span>
+ <div class="popover bottom">
+ <div class="arrow"></div>
+ <div class="popover-inner">
+ <h3 class="popover-title">
+ {{_ "Running..."}}
+ <button type="button" class="close" aria-hidden="true">&times;</button>
+ </h3>
+ <div class="popover-content">
+ <ul class="progress-list"></ul>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+<div class="span4">
+ <div class="header-block">
+ <i class="icon-download-alt icon-white"></i> Max. Speed:<br>
+ <i class="icon-off icon-white"></i> Running:<br>
+ <i class="icon-refresh icon-white"></i> Reconnect:<br>
+ </div>
+
+ <div class="header-block status-block"></div>
+
+ <div class="header-btn">
+ <div class="btn-group">
+ <a class="btn btn-blue btn-small" href="#"><i class="icon-user icon-white"></i> {{ name }}</a>
+ <a class="btn btn-blue btn-small dropdown-toggle" data-toggle="dropdown" href="#"><span
+ class="caret"></span></a>
+ <ul class="dropdown-menu" style="right: 0; left: -100%">
+ <li><a data-nav href="/"><i class="icon-list-alt"></i> Dashboard</a></li>
+ <li><a data-nav href="/settings"><i class="icon-wrench"></i> Settings</a></li>
+ <li><a data-nav href="/accounts"><i class="icon-key"></i> Accounts</a></li>
+ <li><a data-nav href="/admin"><i class="icon-cogs"></i> Admin</a></li>
+ <li class="divider"></li>
+ <li><a data-nav href="/logout"><i class="icon-signout"></i> Logout</a></li>
+ </ul>
+ </div>
+ <div class="btn-group lower">
+ <button class="btn btn-success btn-grabber btn-mini" href="#">
+ <i class="icon-plus icon-white"></i>
+ </button>
+ <button class="btn btn-blue btn-play btn-mini" href="#">
+ <i class="icon-play icon-white"></i>
+ </button>
+ <button class="btn btn-danger btn-delete btn-mini" href="#">
+ <i class="icon-remove icon-white"></i>
+ </button>
+ </div>
+ </div>
+<span class="visible-desktop speedgraph-container">
+ <div id="speedgraph"></div>
+</span>
+</div> \ No newline at end of file
diff --git a/pyload/web/app/templates/default/header/progress.html b/pyload/web/app/templates/default/header/progress.html
new file mode 100644
index 000000000..740e18a4c
--- /dev/null
+++ b/pyload/web/app/templates/default/header/progress.html
@@ -0,0 +1,10 @@
+{{ name }}
+<span class="pull-right">{{ plugin }}</span>
+
+<div class="progress">
+ <div class="bar" style="width: {{ percent }}%"></div>
+</div>
+
+<div class="progress-status">
+ <!-- rendered by progressInfo template -->
+</div>
diff --git a/pyload/web/app/templates/default/header/progressStatus.html b/pyload/web/app/templates/default/header/progressStatus.html
new file mode 100644
index 000000000..2ee3719a5
--- /dev/null
+++ b/pyload/web/app/templates/default/header/progressStatus.html
@@ -0,0 +1,8 @@
+{{#if downloading }}
+ {{ formatSize done }} of {{ formatSize total }} ({{ formatSize download.speed }}/s)
+{{ else }}
+ {{ statusmsg }}
+{{/if}}
+<span class="pull-right">
+ {{ formatTimeLeft eta }}
+</span> \ No newline at end of file
diff --git a/pyload/web/app/templates/default/header/progressSub.html b/pyload/web/app/templates/default/header/progressSub.html
new file mode 100644
index 000000000..a3337e9bb
--- /dev/null
+++ b/pyload/web/app/templates/default/header/progressSub.html
@@ -0,0 +1,6 @@
+{{#if linksqueue }}
+ {{ linksqueue }} downloads left ({{ formatSize sizequeue }})
+{{/if}}
+<span class="pull-right">
+ {{ formatTimeLeft etaqueue }}
+</span> \ No newline at end of file
diff --git a/pyload/web/app/templates/default/header/progressSup.html b/pyload/web/app/templates/default/header/progressSup.html
new file mode 100644
index 000000000..f2c0ac734
--- /dev/null
+++ b/pyload/web/app/templates/default/header/progressSup.html
@@ -0,0 +1,10 @@
+{{#if single }}
+ {{ truncate name 32}} ({{ statusmsg }})
+{{ else }}
+ {{#if downloads }}
+ {{ downloads }} downloads running {{#if speed }}({{ formatSize speed }}/s){{/if}}
+ {{ else }}
+ No running tasks
+ {{/if}}
+{{/if}}
+<i class="icon-list pull-right"></i> \ 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
new file mode 100644
index 000000000..2775e664b
--- /dev/null
+++ b/pyload/web/app/templates/default/header/progressbar.html
@@ -0,0 +1,16 @@
+
+<div class="sup">
+</div>
+
+<div class="progress" id="globalprogress">
+ {{#if single }}
+ <div class="bar" style="width: {{ percent }}%">
+ {{ else }}
+ <div class="bar {{#if downloads }}running{{/if}}">
+ {{/if}}
+ </div>
+ </div>
+</div>
+
+<div class="sub">
+</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
new file mode 100644
index 000000000..f840b6e33
--- /dev/null
+++ b/pyload/web/app/templates/default/header/status.html
@@ -0,0 +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