finally seems to be working

This commit is contained in:
Anika 2024-03-05 14:00:25 +01:00
parent 8008d0262d
commit 64537fe572
5 changed files with 27 additions and 5 deletions

View File

@ -1,3 +1,9 @@
# Fetenzentrale
Joa, kann Log schreiben und alerten. Nicht sehr kompliziert.
## Aufsetzen
- am besten in n venv
- `python`>=3.8
- `flask` per `pip` installieren
- `flask run`
- wenn das nicht tut: `export FLASK_APP=app` (`set` statt`export` under Windows)

View File

@ -107,4 +107,7 @@ def processpAlarm():
@app.route("/help")
def help():
return render_template('help.html', logs = logs, alarms = activeAlarms, previousAlarms=previousAlarms)
return render_template('help.html')
@app.route("/about")
def about():
return render_template('about.html')

8
templates/about.html Normal file
View File

@ -0,0 +1,8 @@
{% extends 'base.html' %}
{% block content %}
<h1>{% block title %} About {% endblock %}</h1>
Bei Fragen/Anmerkungen/Problemen hmu: a_luetke17@cs.uni-kl.de
{% endblock %}

View File

@ -19,7 +19,7 @@
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">About</a>
<a class="nav-link" href="{{url_for('about')}}">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{url_for('help')}}">Hilfe</a>

View File

@ -3,10 +3,15 @@
{% block content %}
<h1>{% block title %} Hilfe! {% endblock %}</h1>
* schreib am besten was ins log vor dem ersten Alarm, sonst gibt's doppelten Alarm, wenn was abstürzt.
<ul>
<li>Schreib was ins log bevor du den ersten Alarm einträgst</li>
<ul>
<li>sonst gibt's einen doppelten Alarm, sobald aus Gründen&trade; neu geladen wird</li>
</ul>
</ul>
<h3>Debugging Hilfe</h3>
* Schau in den Code, da sind zwar auch keine Kommentare, aber er existiert
{% endblock %}