Skip to content
Snippets Groups Projects
Commit 9edf6e3e authored by cubicroot's avatar cubicroot
Browse files

improve (not) recorded tags on events

parent 6127e692
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
{% import "plainui/components/function_btns.html.j2" as fbtns with context %} {% import "plainui/components/function_btns.html.j2" as fbtns with context %}
{% import "plainui/components/integrations.html.j2" as integrations %} {% import "plainui/components/integrations.html.j2" as integrations %}
{% import "plainui/components/tagbox.html.j2" as tagsMacro with context %} {% import "plainui/components/tagbox.html.j2" as tagsMacro with context %}
{% import "plainui/components/event.html.j2" as eventMacro %}
{% macro list( {% macro list(
events, events,
...@@ -82,11 +83,7 @@ ...@@ -82,11 +83,7 @@
</div> </div>
<div class="hub-tags"> <div class="hub-tags">
{% if event.is_recorded is false %} {{ eventMacro.recorded_tag(event.is_recorded) }}
{{ 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 %}
{% if event.track and event.track.name %} {% 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 %}" <div class="hub-tag {% if event.track.color and calculate_luminance(event.track.color) <= 140 %} text-white {% else %} text-dark {% endif %}"
......
...@@ -935,7 +935,7 @@ msgid "Day %(n)s" ...@@ -935,7 +935,7 @@ msgid "Day %(n)s"
msgstr "" msgstr ""
msgid "Not recorded" msgid "Not recorded"
msgstr "This event is not going to be recorded" msgstr "not recorded"
msgid "Recorded" msgid "Recorded"
msgstr "" msgstr ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment