Kleine veränderung
This commit is contained in:
parent
46e9d5c40d
commit
f3d0f6bd7b
4 changed files with 31 additions and 5 deletions
2
app.py
2
app.py
|
|
@ -146,7 +146,7 @@ def suche_finden():
|
|||
print(liste)
|
||||
with open(liste+".json","w") as f:
|
||||
json.dump(songs,f,indent=2,ensure_ascii=False)
|
||||
return redirect("/?liste="+liste,303)
|
||||
return redirect("/suche?liste="+liste,303)
|
||||
|
||||
@app.route("/ADMIN")
|
||||
def admin():
|
||||
|
|
|
|||
|
|
@ -1 +1,8 @@
|
|||
<style>
|
||||
form{
|
||||
display: block;
|
||||
text-align: center;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
<form><input name="name" value={{name}} placeholder="Name der Playlist"></form>
|
||||
|
|
@ -1,6 +1,18 @@
|
|||
<ul>
|
||||
<style>
|
||||
#playlist{
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size: large;
|
||||
color: black;
|
||||
}
|
||||
a{
|
||||
color: black;
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size: smaller;
|
||||
}
|
||||
</style>
|
||||
{% for list in lists %}
|
||||
<li><a href="/?liste={{list}}">{{list}}</a></li>
|
||||
<a id="playlist" href="/?liste={{list}}"> {{list}} </a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<a href="/neueliste">Lust auf was neues?</a>
|
||||
|
|
@ -1,3 +1,10 @@
|
|||
<style>
|
||||
form,a{
|
||||
display: block;
|
||||
text-align: center;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
{% if liste == empty %}
|
||||
<p>Du musst etwas in die Playlist Screiben</p>
|
||||
{% endif %}
|
||||
|
|
@ -12,4 +19,4 @@
|
|||
<p>Leider gibt es den Eintrag {{anfrage}} nicht!</p>
|
||||
{%endif%}
|
||||
|
||||
<a href="/">Doch nicht?</a>
|
||||
<a href="/?liste={{liste}}">Doch nicht?</a>
|
||||
Loading…
Add table
Add a link
Reference in a new issue