🐛 fixes version alert on detail

Issue: #488
This commit is contained in:
Greg Newman
2023-07-28 13:43:51 -04:00
parent 28ee2a63cb
commit fdcafa3aa8

View File

@@ -5,7 +5,7 @@
This is an older version and was released in {{ version.release_date|date:"Y"}}.
The current version is
{% if latest_library_version %}
<a href="{% url 'library-detail' slug=latest_library_version.library.slug %}" class="py-1 px-2 text-white rounded bg-slate">
<a href="{% url 'library-detail' slug=latest_library_version.library.slug %}" class="font-semibold underline dark:text-white text-charcoal">
{% else %}
<a href="{% url 'release-detail' latest_version.slug %}" class="font-semibold underline dark:text-white text-charcoal">
{% endif %}