From a1691457d9ebbb990aca789ee31d3a4ffed56423 Mon Sep 17 00:00:00 2001 From: Adhitya Logan Date: Wed, 13 Dec 2023 15:55:11 -0800 Subject: [PATCH] Put cases table in macro to reduce repeated code --- .../src/t5gweb/templates/macros/macros.html | 117 ++++++++++++++++++ .../src/t5gweb/templates/ui/account.html | 107 +--------------- dashboard/src/t5gweb/templates/ui/table.html | 116 +---------------- 3 files changed, 120 insertions(+), 220 deletions(-) diff --git a/dashboard/src/t5gweb/templates/macros/macros.html b/dashboard/src/t5gweb/templates/macros/macros.html index 3514800..eb495d2 100644 --- a/dashboard/src/t5gweb/templates/macros/macros.html +++ b/dashboard/src/t5gweb/templates/macros/macros.html @@ -48,3 +48,120 @@

Statistics

{% endfor %} {%- endmacro %} + +{% macro cases_table(new_comments) -%} +
+ + +
+
Loading Table...
+ +{%- endmacro %} diff --git a/dashboard/src/t5gweb/templates/ui/account.html b/dashboard/src/t5gweb/templates/ui/account.html index 2bc2d2f..b31fab0 100644 --- a/dashboard/src/t5gweb/templates/ui/account.html +++ b/dashboard/src/t5gweb/templates/ui/account.html @@ -239,112 +239,7 @@

Bugs and JIRA Issues:


Cases:

-
- - -
-
Loading Table...
- + {{ macros.cases_table(new_comments) }}