aboutsummaryrefslogtreecommitdiff
path: root/src/match_up/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/match_up/templates')
-rw-r--r--src/match_up/templates/index.j24
-rw-r--r--src/match_up/templates/macros.j24
-rw-r--r--src/match_up/templates/players.j24
3 files changed, 6 insertions, 6 deletions
diff --git a/src/match_up/templates/index.j2 b/src/match_up/templates/index.j2
index 832dbfb..ce0d531 100644
--- a/src/match_up/templates/index.j2
+++ b/src/match_up/templates/index.j2
@@ -1,10 +1,10 @@
{% from "macros.j2" import header, footer, navbar %}
<!doctype html>
<html lang="en">
- {{ header() }}
+ {{ header(url_for) }}
<body>
<section class="section">
- {{ navbar() }}
+ {{ navbar(url_for) }}
<div hx-post="/clear" hx-swap="outerHTML" hx-trigger="load"></div>
<div hx-get="/control" hx-swap="outerHTML" hx-trigger="load"></div>
{{ footer() }}
diff --git a/src/match_up/templates/macros.j2 b/src/match_up/templates/macros.j2
index 8d05bb0..dedbf48 100644
--- a/src/match_up/templates/macros.j2
+++ b/src/match_up/templates/macros.j2
@@ -22,7 +22,7 @@
</div>
{%- endmacro %}
-{% macro header() -%}
+{% macro header(url_for) -%}
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -38,7 +38,7 @@
<div class="content has-text-centered">Made by <a href="https://karanjayachandra.com/">Karan</a> using <a href="https://flask.palletsprojects.com">Flask</a>, <a href="https://htmx.org/">HTMX</a> and <a href="https://bulma.io">Bulma</a></div>
{%- endmacro %}
-{% macro navbar() -%}
+{% macro navbar(url_for) -%}
<nav class="level">
<div class="level-left">
<div class="level-item">
diff --git a/src/match_up/templates/players.j2 b/src/match_up/templates/players.j2
index ae6afe0..0d1f96c 100644
--- a/src/match_up/templates/players.j2
+++ b/src/match_up/templates/players.j2
@@ -1,10 +1,10 @@
{% from "macros.j2" import header, navbar, footer, player %}
<!doctype html>
<html lang="en">
- {{ header() }}
+ {{ header(url_for) }}
<body>
<section class="section">
- {{ navbar() }}
+ {{ navbar(url_for) }}
<div class="fixed-grid has-4-cols">
<div class="grid">
{% for id, value in players.items() %}