From 151b428cc211f5a7b417249c42e4110fa79ab429 Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Fri, 11 Nov 2022 19:55:29 +0000 Subject: [PATCH] Avoid duplicate js/css in templates --- aprendizations/templates/courses.html | 11 +++-------- aprendizations/templates/include-libs.html | 7 +++++++ aprendizations/templates/login.html | 4 +--- aprendizations/templates/maintopics-table.html | 10 ++-------- aprendizations/templates/rankings.html | 6 ++---- aprendizations/templates/topic.html | 8 +------- 6 files changed, 16 insertions(+), 30 deletions(-) create mode 100644 aprendizations/templates/include-libs.html diff --git a/aprendizations/templates/courses.html b/aprendizations/templates/courses.html index 6b53314..35d3602 100644 --- a/aprendizations/templates/courses.html +++ b/aprendizations/templates/courses.html @@ -7,17 +7,12 @@ - - - - + + {% include include-libs.html %} - - - + {{appname}} diff --git a/aprendizations/templates/include-libs.html b/aprendizations/templates/include-libs.html new file mode 100644 index 0000000..f4a7c4a --- /dev/null +++ b/aprendizations/templates/include-libs.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/aprendizations/templates/login.html b/aprendizations/templates/login.html index 0a4d389..f320e16 100644 --- a/aprendizations/templates/login.html +++ b/aprendizations/templates/login.html @@ -5,9 +5,7 @@ - - - + {% include include-libs.html %}