From c9c4e3aec67003b88609976aed890f19649e47c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Tue, 5 Dec 2023 18:30:15 +0100 Subject: [PATCH] simplify: use jinja macro --- templates/stats_table.html | 4 +++- templates/variant.html | 13 +++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/templates/stats_table.html b/templates/stats_table.html index 2331b07..4c15eeb 100644 --- a/templates/stats_table.html +++ b/templates/stats_table.html @@ -1,3 +1,4 @@ +{% macro stats_list(stats, show_rating) %}
-
\ No newline at end of file + +{% endmacro %}} \ No newline at end of file diff --git a/templates/variant.html b/templates/variant.html index 3a07adc..99e9c0b 100644 --- a/templates/variant.html +++ b/templates/variant.html @@ -1,4 +1,5 @@ {% extends "layout.html" %} +{% from "stats_table.html" import stats_list %} {% block navbar %}