diff options
author | Joris | 2021-01-23 08:57:55 +0100 |
---|---|---|
committer | Joris | 2021-01-23 08:57:55 +0100 |
commit | dfd4e6ab31cba88814f47e3f73d2e6abc801b125 (patch) | |
tree | d092827e59dd1f2861e3b1f852dd76ed45c0815b /templates/base.html | |
parent | 6a03a75674c4f11b56f46161dfb44a5ce8e51341 (diff) |
Simplify base.html
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 148 |
1 files changed, 71 insertions, 77 deletions
diff --git a/templates/base.html b/templates/base.html index f403d41..a4ebf71 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,91 +1,85 @@ -<!DOCTYPE html> +<!doctype html> <html lang="fr"> - <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>Budget — {% block title %}{% endblock title %}</title> - <link rel="stylesheet" href="{{ assets | get(key="main.css") }}" /> - <link rel="icon" href="{{ assets | get(key="icon.png") }}"> - </head> - <body> +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width"> +<title>Budget — {% block title %}{% endblock title %}</title> +<link rel="stylesheet" href="{{ assets | get(key="main.css") }}"> +<link rel="icon" href="{{ assets | get(key="icon.png") }}"> - <header class="g-Header"> +<header class="g-Header"> - <div class="g-Header__Primary"> - <div class="g-Header__Title">Budget</div> - {% if connected_user %} - <form action="/logout" method="POST"> - {{ connected_user.name }} - <input class="g-Header__Logout" type="submit" value="(Déconnexion)" /> - </form> - {% endif %} - </div> + <div class="g-Header__Primary"> + <div class="g-Header__Title">Budget</div> + {% if connected_user %} + <form action="/logout" method="POST"> + {{ connected_user.name }} + <input class="g-Header__Logout" type="submit" value="(Déconnexion)" /> + </form> + {% endif %} + </div> - {% if connected_user %} - <div class="g-Header__Secondary"> + {% if connected_user %} + <div class="g-Header__Secondary"> - <a - href="/" - class=" - g-Header__Link - {% if header == "Payments" %} g-Header__Link--Current {% endif %} - " - > - Paiements - </a> + <a + href="/" + class=" + g-Header__Link + {% if header == "Payments" %} g-Header__Link--Current {% endif %} + " + > + Paiements + </a> - <a - href="/incomes" - class=" - g-Header__Link - {% if header == "Incomes" %} g-Header__Link--Current {% endif %} - " - > - Revenus - </a> + <a + href="/incomes" + class=" + g-Header__Link + {% if header == "Incomes" %} g-Header__Link--Current {% endif %} + " + > + Revenus + </a> - <a - href="/categories" - class=" - g-Header__Link - {% if header == "Categories" %} g-Header__Link--Current {% endif %} - " - > - Catégories - </a> + <a + href="/categories" + class=" + g-Header__Link + {% if header == "Categories" %} g-Header__Link--Current {% endif %} + " + > + Catégories + </a> - <a - href="/balance" - class=" - g-Header__Link - {% if header == "Balance" %} g-Header__Link--Current {% endif %} - " - > - Équilibre - </a> + <a + href="/balance" + class=" + g-Header__Link + {% if header == "Balance" %} g-Header__Link--Current {% endif %} + " + > + Équilibre + </a> - <a - href="/statistics" - class=" - g-Header__Link - {% if header == "Statistics" %} g-Header__Link--Current {% endif %} - " - > - Statistiques - </a> + <a + href="/statistics" + class=" + g-Header__Link + {% if header == "Statistics" %} g-Header__Link--Current {% endif %} + " + > + Statistiques + </a> - </div> - {% endif %} + </div> + {% endif %} - </header> +</header> - <main class="g-Main"> - {% block main %}{% endblock main %} - </main> +<main class="g-Main"> + {% block main %}{% endblock main %} +</main> - <script src="{{ assets | get(key="main.js") }}"> - </script> - - </body> -</html> +<script src="{{ assets | get(key="main.js") }}"> +</script> |