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

@@ -28,7 +28,7 @@ div.activity-list {
div.item-row.main {
div.item-col {
&:first-child {
flex-basis: 27%;
flex-basis: 15%;
}
ul.list-content {
li.social-issues, li.social-actions {
@@ -127,3 +127,13 @@ div.flex-bloc.concerned-groups {
}
}
/// CHILL ENTITY RENDER BOX
.chill-entity {
/// ACTIVITY-REASON
&.entity-activity-reason {
margin-right: 0.3em;
font-size: 120%;
}
}

View File

@@ -50,7 +50,8 @@
<ul class="list-content">
{% if activity.user and t.userVisible %}
<li>
<b>{{ 'by'|trans }}{{ activity.user.usernameCanonical }}</b>
<abbr class="referrer" title="{{ 'Referrer'|trans }}">ref:</abbr>
<b>{{ activity.user.usernameCanonical }}</b>
</li>
{% endif %}
@@ -98,7 +99,7 @@
<li class="social-actions">
{%- if activity.socialActions is not empty -%}
{% for r in activity.socialActions %}
<span class="badge bg-primary">{{ r.title|localize_translatable_string }}</span>
{{ r|chill_entity_render_box }}
{% endfor %}
{%- endif -%}
</li>
@@ -133,6 +134,7 @@
</div>
</div>
{#
{% if activity.comment.comment is not empty
or activity.persons|length > 0
or activity.thirdParties|length > 0
@@ -140,7 +142,11 @@
%}
<div class="item-row details">
<div class="item-col">
{% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {'context': context, 'with_display': 'row', 'entity': activity } %}
{% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {
'context': context,
'with_display': 'row',
'entity': activity
} %}
</div>
{% if activity.comment.comment is not empty %}
@@ -154,6 +160,7 @@
{% endif %}
</div>
{% endif %}
#}
</div>
{% endfor %}