diff --git a/src/plainui/jinja2/plainui/components/list_events.html.j2 b/src/plainui/jinja2/plainui/components/list_events.html.j2 index 29ce7a65d0dd32f3219e62d63775d28dba7fa8b0..f68307330e5d051b7a6473e6ad96644ab0da5c8d 100644 --- a/src/plainui/jinja2/plainui/components/list_events.html.j2 +++ b/src/plainui/jinja2/plainui/components/list_events.html.j2 @@ -7,6 +7,7 @@ {% import "plainui/components/function_btns.html.j2" as fbtns with context %} {% import "plainui/components/integrations.html.j2" as integrations %} {% import "plainui/components/tagbox.html.j2" as tagsMacro with context %} +{% import "plainui/components/event.html.j2" as eventMacro %} {% macro list( events, @@ -82,11 +83,7 @@ </div> <div class="hub-tags"> - {% if event.is_recorded is false %} - {{ tagsMacro.tag(_("Not recorded") , style="danger", icon="camera-video-off") }} - {% elif event.is_recorded is true %} - {{ tagsMacro.tag(_("Recorded") , style="success", icon="camera-video") }} - {% endif %} + {{ eventMacro.recorded_tag(event.is_recorded) }} {% if event.track and event.track.name %} <div class="hub-tag {% if event.track.color and calculate_luminance(event.track.color) <= 140 %} text-white {% else %} text-dark {% endif %}" diff --git a/src/plainui/locale/en/LC_MESSAGES/django.po b/src/plainui/locale/en/LC_MESSAGES/django.po index 64f61689e01550ffd66539a6ef7d907941ed698e..6b86437423b12a62be2465a87ddbec906d2637cb 100644 --- a/src/plainui/locale/en/LC_MESSAGES/django.po +++ b/src/plainui/locale/en/LC_MESSAGES/django.po @@ -935,7 +935,7 @@ msgid "Day %(n)s" msgstr "" msgid "Not recorded" -msgstr "This event is not going to be recorded" +msgstr "not recorded" msgid "Recorded" msgstr ""