From 338eb8fe441b5a73daddf869719511afde835ff9 Mon Sep 17 00:00:00 2001 From: Lacey Williams Henschel Date: Thu, 22 Jun 2023 14:41:32 -0700 Subject: [PATCH] Add version alert to all list templates and views --- templates/libraries/category_list.html | 3 +++ templates/libraries/flat_list.html | 3 +++ templates/libraries/includes/version_alert.html | 5 +++++ templates/libraries/list.html | 3 +++ 4 files changed, 14 insertions(+) create mode 100644 templates/libraries/includes/version_alert.html diff --git a/templates/libraries/category_list.html b/templates/libraries/category_list.html index 1776f02f..0e17ba53 100644 --- a/templates/libraries/category_list.html +++ b/templates/libraries/category_list.html @@ -77,6 +77,9 @@ + + {% include "libraries/includes/version_alert.html" %} +
{% if by_category %} diff --git a/templates/libraries/flat_list.html b/templates/libraries/flat_list.html index 586e412b..cb797f28 100644 --- a/templates/libraries/flat_list.html +++ b/templates/libraries/flat_list.html @@ -77,6 +77,9 @@
+ + {% include "libraries/includes/version_alert.html" %} +
{% if by_category %} diff --git a/templates/libraries/includes/version_alert.html b/templates/libraries/includes/version_alert.html new file mode 100644 index 00000000..35d07b4c --- /dev/null +++ b/templates/libraries/includes/version_alert.html @@ -0,0 +1,5 @@ +{% if version_alert %} +
+

This is an older version and was released in {{ version.release_date|date:"Y"}}. The current version is {{ latest_version.display_name }}.

+
+{% endif %} diff --git a/templates/libraries/list.html b/templates/libraries/list.html index f17f6f2e..04d95848 100644 --- a/templates/libraries/list.html +++ b/templates/libraries/list.html @@ -77,6 +77,9 @@
+ + {% include "libraries/includes/version_alert.html" %} +
{% if by_category %}