Improve capitalization + texts
Some checks failed
Build Formula10 Docker Image / build-docker (push) Failing after 17s
Some checks failed
Build Formula10 Docker Image / build-docker (push) Failing after 17s
This commit is contained in:
@ -8,6 +8,7 @@ on:
|
|||||||
- "Dockerfile"
|
- "Dockerfile"
|
||||||
- "*.py"
|
- "*.py"
|
||||||
- "requirements.txt"
|
- "requirements.txt"
|
||||||
|
- "*.jinja"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-docker:
|
build-docker:
|
||||||
|
@ -248,7 +248,7 @@ def guessseason(username):
|
|||||||
|
|
||||||
|
|
||||||
@app.route("/users")
|
@app.route("/users")
|
||||||
def users():
|
def manageusers():
|
||||||
users = User.query.all()
|
users = User.query.all()
|
||||||
|
|
||||||
return render_template("users.jinja",
|
return render_template("users.jinja",
|
||||||
|
@ -110,7 +110,7 @@
|
|||||||
<a class="navbar-brand" href="/">
|
<a class="navbar-brand" href="/">
|
||||||
<img src="../static/image/f1_logo.svg" alt="Logo" width="120" height="30"
|
<img src="../static/image/f1_logo.svg" alt="Logo" width="120" height="30"
|
||||||
class="d-inline-block align-text-top">
|
class="d-inline-block align-text-top">
|
||||||
Formula <i>10</i>
|
Formula 10
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
|
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
|
||||||
@ -119,8 +119,8 @@
|
|||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
<div class="navbar-nav me-2">
|
<div class="navbar-nav me-2">
|
||||||
{{ nav_selector("race", "Guess Race") }}
|
{{ nav_selector("race", "Race Picks") }}
|
||||||
{{ nav_selector("season", "Guess Season") }}
|
{{ nav_selector("season", "Season Picks") }}
|
||||||
{{ nav_selector("graphs", "Statistics") }}
|
{{ nav_selector("graphs", "Statistics") }}
|
||||||
{{ nav_selector("rules", "Rules") }}
|
{{ nav_selector("rules", "Rules") }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -40,13 +40,13 @@
|
|||||||
{# P2 Constructor #}
|
{# P2 Constructor #}
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
{{ team_select_with_preselect(currentselection.get(user.name).p2_constructor.name if user.name in currentselection else "",
|
{{ team_select_with_preselect(currentselection.get(user.name).p2_constructor.name if user.name in currentselection else "",
|
||||||
"p2select", "P2 Constructor:") }}
|
"p2select", "P2 in WCC:") }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# Most Overtakes + DNFs #}
|
{# Most Overtakes + DNFs #}
|
||||||
<div class="input-group mt-2">
|
<div class="input-group mt-2">
|
||||||
{{ driver_select_with_preselect(currentselection.get(user.name).most_overtakes.abbr if user.name in currentselection else "",
|
{{ driver_select_with_preselect(currentselection.get(user.name).most_overtakes.abbr if user.name in currentselection else "",
|
||||||
"overtakeselect", "Most Overtakes:") }}
|
"overtakeselect", "Most overtakes:") }}
|
||||||
{{ driver_select_with_preselect(currentselection.get(user.name).most_dnfs.abbr if user.name in currentselection else "",
|
{{ driver_select_with_preselect(currentselection.get(user.name).most_dnfs.abbr if user.name in currentselection else "",
|
||||||
"dnfselect", "Most DNFs:") }}
|
"dnfselect", "Most DNFs:") }}
|
||||||
</div>
|
</div>
|
||||||
@ -54,13 +54,13 @@
|
|||||||
{# Most Gained + Lost #}
|
{# Most Gained + Lost #}
|
||||||
<div class="input-group mt-2">
|
<div class="input-group mt-2">
|
||||||
{{ driver_select_with_preselect(currentselection.get(user.name).most_gained.abbr if user.name in currentselection else "",
|
{{ driver_select_with_preselect(currentselection.get(user.name).most_gained.abbr if user.name in currentselection else "",
|
||||||
"gainedselect", "Most WDC Places gained:") }}
|
"gainedselect", "Most WDC places gained:") }}
|
||||||
{{ driver_select_with_preselect(currentselection.get(user.name).most_lost.abbr if user.name in currentselection else "",
|
{{ driver_select_with_preselect(currentselection.get(user.name).most_lost.abbr if user.name in currentselection else "",
|
||||||
"lostselect", "Most WDC Places lost:") }}
|
"lostselect", "Most WDC places lost:") }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# Team-internal Winners #}
|
{# Team-internal Winners #}
|
||||||
<h6 class="card-subtitle mt-2">Team-Internal Winners:</h6>
|
<h6 class="card-subtitle mt-2">Teammate battle winners:</h6>
|
||||||
<div class="grid mt-2" style="width: 450px; row-gap: 0;">
|
<div class="grid mt-2" style="width: 450px; row-gap: 0;">
|
||||||
{% for team in teams %}
|
{% for team in teams %}
|
||||||
{% set driver_a_name = driverpairs.get(team.name)[0].name %}
|
{% set driver_a_name = driverpairs.get(team.name)[0].name %}
|
||||||
@ -93,7 +93,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# Drivers with Podiums #}
|
{# Drivers with Podiums #}
|
||||||
<h6 class="card-subtitle mt-2">Drivers with Podium(s):</h6>
|
<h6 class="card-subtitle mt-2">Drivers with podium(s):</h6>
|
||||||
<div class="grid mt-2" style="width: 450px; row-gap: 0;">
|
<div class="grid mt-2" style="width: 450px; row-gap: 0;">
|
||||||
{% for team in teams %}
|
{% for team in teams %}
|
||||||
{% set driver_a_name = driverpairs.get(team.name)[0].name %}
|
{% set driver_a_name = driverpairs.get(team.name)[0].name %}
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
<div class="card mt-2">
|
<div class="card mt-2">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">Delete User</h5>
|
<h5 class="card-title">Delete user</h5>
|
||||||
|
|
||||||
<form action="/deleteuser" method="post">
|
<form action="/deleteuser" method="post">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
@ -67,4 +67,16 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="card mt-2 border-danger">
|
||||||
|
<div class="card-body">
|
||||||
|
<h5 class="card-title">Functions that should not be public</h5>
|
||||||
|
<h6 class="card-subtitle mb-2">(Fuck you if you click this without knowing what it does)</h6>
|
||||||
|
|
||||||
|
<a class="btn btn-outline-danger" href="/saveall">Save all data</a>
|
||||||
|
<a class="btn btn-outline-danger" href="/loadall">Load all data</a>
|
||||||
|
<a class="btn btn-outline-danger" href="/loadstatic">Load static data</a>
|
||||||
|
<a class="btn btn-outline-danger" href="/loaddynamic">Load dynamic data</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
|
Reference in New Issue
Block a user