Skip to content
Snippets Groups Projects
Commit 53ed7175 authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed icons in navbar

parent db0e5cdc
No related branches found
No related tags found
No related merge requests found
from server import *
@app.route('/schedule')
@register_navbar('Drehplan', 'calendar')
@register_navbar('Drehplan', icon='calendar')
@mod_required
def schedule():
if 'kw' not in request.args:
......
......@@ -351,13 +351,13 @@ def auth(): # For use with nginx auth_request
return "Not allowed", 403
@app.route('/stats')
@register_navbar('Statistiken', 'stats')
@register_navbar('Statistiken', icon='stats')
@mod_required
def stats():
return render_template('stats.html')
@app.route('/changelog')
@register_navbar('Changelog', 'book')
@register_navbar('Changelog', icon='book')
@mod_required
def changelog():
changelog = query('SELECT *, ( "table" || "." || id_value || "." ||field) as path FROM changelog LEFT JOIN users ON (changelog.who = users.id) ORDER BY `when` DESC LIMIT 50')
......@@ -418,7 +418,7 @@ def sitemap():
@app.route('/sortlog')
@register_navbar('Sortierlog', 'sort-by-attributes-alt')
@register_navbar('Sortierlog', icon='sort-by-attributes-alt')
@mod_required
def sortlog():
return render_template('sortlog.html')
......
......@@ -41,7 +41,7 @@
</div>
<div class="collapse navbar-collapse">
<ul class="nav nav-pills" style="margin-top: 5px;">
{% for endpoint, caption, gly, iconlib, visible in navbar if visible or ismod() %}
{% for endpoint, caption, iconlib, gly, visible in navbar if visible or ismod() %}
<li{% if endpoint == request.endpoint %} class="active"{% endif %}>
<a href="{{ url_for(endpoint) }}">
{% if gly != '' %}
......@@ -125,7 +125,7 @@
</div>
<footer class="footer">
<div class="container-fluid">
<ul class="list-inline col-xs-12">
<ul class="list-inline">
<li>
<a href="http://www.fsmpi.rwth-aachen.de/">Fachschaft I/1</a>
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment