activity list: badges for issues, actions and reasons

This commit is contained in:
2021-08-20 23:59:37 +02:00
parent 14cbb1dd28
commit b37de4cd4f
7 changed files with 65 additions and 21 deletions

View File

@@ -1,12 +1,12 @@
{% set reversed_parents = parents|reverse %}
<span class="chill-entity chill-entity__social-action">
<span class="{% if not options['no-badge'] %}badge bg-primary{% endif %}">
<span class="chill-entity entity-social-action">
<span class="{% if not options['no-badge'] %}badge bg-light text-dark{% endif %}">
{%- for p in reversed_parents %}
<span class="chill-entity__social-action__parent--{{ loop.revindex0 }}">
<span class="parent-{{ loop.revindex0 }}">
{{ p.title|localize_translatable_string }}{{ options['default.separator'] }}
</span>
{%- endfor -%}
<span class="chill-entity__social-action__child">
<span class="child">
{{ socialAction.title|localize_translatable_string }}
</span>
</span>