show available github release only if newer version exists (#4037)

This commit is contained in:
Kevin Papst
2023-05-20 13:49:31 +02:00
committed by GitHub
parent 6bdf27fc9b
commit 2664d6117f
5 changed files with 20 additions and 14 deletions

View File

@@ -9,7 +9,7 @@
{% block main %}
{% if release is not null and release is iterable %}
{% embed '@theme/embeds/card.html.twig' with release %}
{% embed '@theme/embeds/card.html.twig' with {'release': release, boxtype: 'warning'} %}
{% block box_title %}Kimai {{ release.version }} available (released on {{ release.date|date_short }}){% endblock %}
{% block box_body %}
{{ release.content|md2html }}