Improve capitalization + texts
Some checks failed
Build Formula10 Docker Image / build-docker (push) Failing after 17s

This commit is contained in:
2024-02-16 16:04:29 +01:00
parent d2ab905185
commit d56477f2c6
5 changed files with 24 additions and 11 deletions

View File

@ -8,6 +8,7 @@ on:
- "Dockerfile"
- "*.py"
- "requirements.txt"
- "*.jinja"
jobs:
build-docker:

View File

@ -248,7 +248,7 @@ def guessseason(username):
@app.route("/users")
def users():
def manageusers():
users = User.query.all()
return render_template("users.jinja",

View File

@ -110,7 +110,7 @@
<a class="navbar-brand" href="/">
<img src="../static/image/f1_logo.svg" alt="Logo" width="120" height="30"
class="d-inline-block align-text-top">
Formula <i>10</i>
Formula 10
</a>
<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="navbar-nav me-2">
{{ nav_selector("race", "Guess Race") }}
{{ nav_selector("season", "Guess Season") }}
{{ nav_selector("race", "Race Picks") }}
{{ nav_selector("season", "Season Picks") }}
{{ nav_selector("graphs", "Statistics") }}
{{ nav_selector("rules", "Rules") }}
</div>

View File

@ -40,13 +40,13 @@
{# P2 Constructor #}
<div class="mt-2">
{{ 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>
{# Most Overtakes + DNFs #}
<div class="input-group mt-2">
{{ 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 "",
"dnfselect", "Most DNFs:") }}
</div>
@ -54,13 +54,13 @@
{# Most Gained + Lost #}
<div class="input-group mt-2">
{{ 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 "",
"lostselect", "Most WDC Places lost:") }}
"lostselect", "Most WDC places lost:") }}
</div>
{# 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;">
{% for team in teams %}
{% set driver_a_name = driverpairs.get(team.name)[0].name %}
@ -93,7 +93,7 @@
</div>
{# 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;">
{% for team in teams %}
{% set driver_a_name = driverpairs.get(team.name)[0].name %}

View File

@ -39,7 +39,7 @@
<div class="card mt-2">
<div class="card-body">
<h5 class="card-title">Delete User</h5>
<h5 class="card-title">Delete user</h5>
<form action="/deleteuser" method="post">
<div class="input-group">
@ -67,4 +67,16 @@
</div>
{% 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 %}