Commit d82943b2 authored by Julian Rother's avatar Julian Rother
Browse files

Display hostname in moderator interface

parent a6b1357e
......@@ -10,6 +10,7 @@ import random
import sched
import traceback
import string
from socket import gethostname
app = Flask(__name__)
......@@ -18,6 +19,7 @@ app.jinja_env.lstrip_blocks = True
app.add_template_global(random.randint, name='randint')
app.add_template_global(datetime, name='datetime')
app.add_template_global(timedelta, name='timedelta')
app.add_template_global(gethostname, name='gethostname')
scheduler = sched.scheduler()
def run_scheduler():
......
......@@ -145,6 +145,11 @@
<li>
<a href="https://twitter.com/rwthvideo">Twitter</a>
</li>
{% if ismod() %}
<li class="pull-right">
{{ gethostname() }}
</li>
{% endif %}
</div>
</footer>
{% endblock %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment