summaryrefslogtreecommitdiffstats
path: root/module/web/templates/default/base.html
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-11 20:09:27 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-11 20:09:27 +0200
commit6534294c48df5cb89cfff278e4040c0b8f718659 (patch)
tree370e7b9e5f9d4d331c55a713396dee47672a67eb /module/web/templates/default/base.html
parentfix cli (diff)
downloadpyload-6534294c48df5cb89cfff278e4040c0b8f718659.tar.xz
whites filemanager
Diffstat (limited to 'module/web/templates/default/base.html')
-rw-r--r--module/web/templates/default/base.html28
1 files changed, 21 insertions, 7 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html
index 7f7db2610..fd22abbd4 100644
--- a/module/web/templates/default/base.html
+++ b/module/web/templates/default/base.html
@@ -245,24 +245,33 @@ function AddBox()
<div id="head-menu">
<ul>
-
+
+ {% macro selected(name, right=False) -%}
+ {% if name in url -%}class="{% if right -%}right {% endif %}selected"{%- endif %}
+ {% if not name in url and right -%}class="right"{%- endif %}
+ {%- endmacro %}
+
+
{% block menu %}
- <li class="selected">
+ <li>
<a href="/" title=""><img src="/media/default/img/head-menu-home.png" alt="" /> {{_("Home")}}</a>
</li>
- <li>
+ <li {{ selected('queue') }}>
<a href="/queue/" title=""><img src="/media/default/img/head-menu-queue.png" alt="" /> {{_("Queue")}}</a>
</li>
- <li>
+ <li {{ selected('collector') }}>
<a href="/collector/" title=""><img src="/media/default/img/head-menu-collector.png" alt="" /> {{_("Collector")}}</a>
</li>
- <li>
+ <li {{ selected('downloads') }}>
<a href="/downloads/" title=""><img src="/media/default/img/head-menu-development.png" alt="" /> {{_("Downloads")}}</a>
</li>
- <li class="right">
+ <li {{ selected('filemanager') }}>
+ <a href="/filemanager/" title=""><img src="/media/default/img/head-menu-download.png" alt="" /> {{_("FileManager")}}</a>
+ </li>
+ <li {{ selected('logs', True) }}>
<a href="/logs/" class="action index" accesskey="x" rel="nofollow"><img src="/media/default/img/head-menu-index.png" alt="" />{{_("Logs")}}</a>
</li>
- <li class="right">
+ <li {{ selected('settings', True) }}>
<a href="/settings/" class="action index" accesskey="x" rel="nofollow"><img src="/media/default/img/head-menu-config.png" alt="" />{{_("Config")}}</a>
</li>
{% endblock %}
@@ -316,6 +325,11 @@ function AddBox()
<b><p>{{message}}</p></b>
{% endfor %}
+<div id="load-indicator" style="opacity: 0; float: right; margin-top: -10px;">
+ <img src="/media/default/img/ajax-loader.gif" alt="" style="padding-right: 5px"/>
+ {{_("loading")}}
+</div>
+
{% block content %}
{% endblock content %}