various minor fixes in aside activities

This commit is contained in:
Julien Fastré 2021-10-04 15:15:26 +02:00
parent 4c55631297
commit 27125b838e
4 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,6 @@
{% set reversed_parents = parents|reverse %}
<span
class="chill-entity entity-social-issue">
{# <span class="badge bg-chill-l-gray text-dark"> #}
class="chill-entity entity-aside_activity-category">
{%- for p in reversed_parents %}
<span class="parent-{{ loop.revindex0 }}">
{{ p.title|localize_translatable_string }}{{ options['default.separator'] }}
@ -10,5 +9,4 @@
<span class="child">
{{ asideActivityCategory.title|localize_translatable_string }}
</span>
{# </span> #}
</span>

View File

@ -24,7 +24,7 @@
<div class="item-col">
<h3>
<b>{{ entity.type|chill_entity_render_box }}</b>
{{ entity.type|chill_entity_render_box }}
</h3>
<div>
{% if entity.date %}
@ -46,13 +46,13 @@
<li>
<span>
<abbr class="referrer" title={{ 'Created by'|trans }}>{{ 'By'|trans }}:</abbr>
<b>{{ entity.createdBy.usernameCanonical }}</b>
<b>{{ entity.createdBy|chill_entity_render_box }}</b>
</span>
</li>
<li>
<span>
<abbr class="referrer" title={{ 'Created for'|trans }}>{{ 'For'|trans }}:</abbr>
<b>{{ entity.agent.usernameCanonical }}</b>
<b>{{ entity.agent|chill_entity_render_box }}</b>
</span>
</li>

View File

@ -70,11 +70,11 @@ final class CategoryRender implements ChillEntityRenderInterface
$options = array_merge(self::DEFAULT_ARGS, $options);
$parents = $this->buildParents($asideActivityCategory);
return $this->engine->render('@ChillAsideActivity/asideActivityCategory/asideActivityCategory.html.twig',
return $this->engine->render('@ChillAsideActivity/Entity/asideActivityCategory.html.twig',
[
'asideActivityCategory' => $asideActivityCategory,
'parents' => $parents,
'options' => $options
]);
}
}
}

View File

@ -49,6 +49,8 @@ Agent: Utilisateur
date: Date
Duration: Durée
Note: Note
Choose the agent for whom this activity is created: Choisissez l'agent pour qui l'activité est créée
Choose the activity category: Choisir la catégorie
#Duration
minutes: minutes