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 * from server import *
@app.route('/schedule') @app.route('/schedule')
@register_navbar('Drehplan', 'calendar') @register_navbar('Drehplan', icon='calendar')
@mod_required @mod_required
def schedule(): def schedule():
if 'kw' not in request.args: if 'kw' not in request.args:
......
...@@ -351,13 +351,13 @@ def auth(): # For use with nginx auth_request ...@@ -351,13 +351,13 @@ def auth(): # For use with nginx auth_request
return "Not allowed", 403 return "Not allowed", 403
@app.route('/stats') @app.route('/stats')
@register_navbar('Statistiken', 'stats') @register_navbar('Statistiken', icon='stats')
@mod_required @mod_required
def stats(): def stats():
return render_template('stats.html') return render_template('stats.html')
@app.route('/changelog') @app.route('/changelog')
@register_navbar('Changelog', 'book') @register_navbar('Changelog', icon='book')
@mod_required @mod_required
def changelog(): 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') 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(): ...@@ -418,7 +418,7 @@ def sitemap():
@app.route('/sortlog') @app.route('/sortlog')
@register_navbar('Sortierlog', 'sort-by-attributes-alt') @register_navbar('Sortierlog', icon='sort-by-attributes-alt')
@mod_required @mod_required
def sortlog(): def sortlog():
return render_template('sortlog.html') return render_template('sortlog.html')
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</div> </div>
<div class="collapse navbar-collapse"> <div class="collapse navbar-collapse">
<ul class="nav nav-pills" style="margin-top: 5px;"> <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 %}> <li{% if endpoint == request.endpoint %} class="active"{% endif %}>
<a href="{{ url_for(endpoint) }}"> <a href="{{ url_for(endpoint) }}">
{% if gly != '' %} {% if gly != '' %}
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
</div> </div>
<footer class="footer"> <footer class="footer">
<div class="container-fluid"> <div class="container-fluid">
<ul class="list-inline col-xs-12"> <ul class="list-inline">
<li> <li>
<a href="http://www.fsmpi.rwth-aachen.de/">Fachschaft I/1</a> <a href="http://www.fsmpi.rwth-aachen.de/">Fachschaft I/1</a>
</li> </li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment