diff --git a/app/templates/header.html b/app/templates/header.html index 7b48452..a15f051 100644 --- a/app/templates/header.html +++ b/app/templates/header.html @@ -26,11 +26,12 @@ {%- macro header_link(url, text) -%} {% set url_for = BASE_URL + request.app.router.url_path_for(url) %} -{{ text }} +{{ text }} {% endmacro %} {%- macro navbar_item_link(navbar_item) -%} -{{ navbar_item[1] }} +{% set url_for = BASE_URL + navbar_item[0] %} +{{ navbar_item[1] }} {% endmacro %}
diff --git a/app/templates/layout.html b/app/templates/layout.html index d592cc4..7aab073 100644 --- a/app/templates/layout.html +++ b/app/templates/layout.html @@ -19,7 +19,7 @@
{% macro admin_link(url, text) %} {% set url_for = BASE_URL + request.app.router.url_path_for(url) %} -{{ text }} +{{ text }} {% endmacro %}