diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-09-17 15:46:42 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-09-17 15:46:42 +0200 |
commit | 68f1510f5a6ab632db19fc63f29c0475de9feb9d (patch) | |
tree | 7be8c9c3890465128a50ad8c6880d70ed7720bc7 /module/web/templates | |
parent | added bootstrap (diff) | |
download | pyload-68f1510f5a6ab632db19fc63f29c0475de9feb9d.tar.xz |
nav + search bar for dashboard
Diffstat (limited to 'module/web/templates')
-rw-r--r-- | module/web/templates/default/base.html | 3 | ||||
-rw-r--r-- | module/web/templates/default/dashboard.html | 34 | ||||
-rw-r--r-- | module/web/templates/default/queue.html | 105 |
3 files changed, 36 insertions, 106 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 34957344c..3a5a6e83e 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -18,7 +18,8 @@ <script>
require(['default'], function (App) {
App.init();
- App.initPackageTree();
+ {% block require %}
+ {% endblock %}
});
</script>
diff --git a/module/web/templates/default/dashboard.html b/module/web/templates/default/dashboard.html new file mode 100644 index 000000000..a962011cd --- /dev/null +++ b/module/web/templates/default/dashboard.html @@ -0,0 +1,34 @@ +{% extends 'default/base.html' %}
+{% block require %}
+ App.initPackageTree();
+{% endblock %}
+
+{% block content %}
+ <ul id="dash-nav" class="nav nav-pills">
+ <li class="active">
+ <a class="active">All</a>
+ </li>
+ <li>
+ <a>Active</a>
+ </li>
+ <li class="dropdown">
+ <a class="dropdown-toggle"
+ data-toggle="dropdown"
+ href="#">
+ Dropdown
+ <b class="caret"></b>
+ </a>
+ <ul class="dropdown-menu">
+ <!-- links -->
+ </ul>
+ </li>
+ <li style="float: right;">
+ <form class="form-search">
+ <div class="input-append">
+ <input type="text" class="span2 search-query">
+ <button type="submit" class="btn">{{ _("Search") }}</button>
+ </div>
+ </form>
+ </li>
+ </ul>
+{% endblock %}
\ No newline at end of file diff --git a/module/web/templates/default/queue.html b/module/web/templates/default/queue.html deleted file mode 100644 index 455916763..000000000 --- a/module/web/templates/default/queue.html +++ /dev/null @@ -1,105 +0,0 @@ -{% extends 'default/base.html' %}
-{% block head %}
-
-<link href="static/css/default/queue.css" rel="stylesheet" type="text/css" media="screen"/>
-<script type="text/javascript" src="/media/js/package_ui.js"></script>
-
-<script type="text/javascript">
-document.addEvent("domready", function(){
- var pUI = new PackageUI("url", {{ target }});
-});
-</script>
-{% endblock %}
-
-{% block title %}{{name}} - {{super()}} {% endblock %}
-{% block subtitle %}{{name}}{% endblock %}
-
-{% block pageactions %}
-<ul id="page-actions">
- <li id="del_finished"><a href="#">{{_("Delete Finished")}}</a></li>
- <li id="restart_failed"><a href="#">{{_("Restart Failed")}}</a></li>
-</ul>
-{% endblock %}
-
-{% block content %}
-
-<ul id="queue-list">
-
-
-
- <script>
- $(function() {
- $( "#pack_progress_1" ).progressbar({
- value: 59
- });
- });
- </script>
-
-
-
-
-<li>
- <div id="package_1" class="pack">
- <div class="pack_header">
- <div class="pack_icon"></div>
- <span class="pack_name">TestPackage</span>
- <div class="pack_progressbar_wrapper">
- <div id="pack_progress_1" class="pack_progressbar"></div>
- </div>
- </div>
-
- <div id="children_1" class="pack_children">
-
- <ul id="sort_children_1" class="sort_children">
-
-
-
-
-
-
-
- <li>
- <div id="package_2" class="pack">
- <div class="pack_header">
- <div class="pack_icon"></div>
- <span class="pack_name">TestPackage2</span>
- <div class="pack_progressbar_wrapper">
- <div id="pack_progress_2" class="pack_progressbar"></div>
- </div>
- </div>
-
- <div id="children_2" class="pack_children">
-
- <ul id="sort_children_2" class="sort_children">
-
-
-
-
-
-
-
- </ul>
- </div>
- </div>
- </li>
-
-
-
-
-
-
-
-
-
-
-
-
-
- </ul>
- </div>
- </div>
-</li>
-
-
-</ul>
-{% endblock %}
\ No newline at end of file |