Activity panel: Fix only showing the first of multiple edition in a linked set

This commit is contained in:
Molkobain
2021-03-16 11:00:43 +01:00
parent 7c8349f4f5
commit 4bcf03c6a1
2 changed files with 45 additions and 24 deletions

View File

@@ -3,17 +3,19 @@
{% block iboActivityEntryExtraClasses %}ibo-edits-entry{% endblock %}
{% block iboActivityEntryMainInformationContent %}
{% if oUIBlock.GetAttributes()|length == 1 %}
<span class="ibo-edits-entry--short-description">{{ oUIBlock.GetShortDescriptionAsHtml()|raw }}</span>
{% else %}
<a href="#" class="ibo-edits-entry--short-description" data-role="ibo-edits-entry--long-description-toggler">
{{ oUIBlock.GetShortDescriptionAsHtml()|raw }}
<span class="ibo-edits-entry--long-description-toggler-icon fa fa-caret-down"></span>
</a>
<ul class="ibo-edits-entry--long-description" data-role="ibo-edits-entry--long-description">
{% for sAttCode, aAttData in oUIBlock.GetAttributes() %}
<li class="ibo-edits-entry--attribute-description" data-attribute-code="{{ sAttCode }}">{{ aAttData.description|raw }}</li>
{% endfor %}
{% if (oUIBlock.GetAttributes()|length == 1) and (oUIBlock.GetAttributes()[0]['descriptions'].length == 1) %}
<span class="ibo-edits-entry--short-description">{{ oUIBlock.GetShortDescriptionAsHtml()|raw }}</span>
{% else %}
<a href="#" class="ibo-edits-entry--short-description" data-role="ibo-edits-entry--long-description-toggler">
{{ oUIBlock.GetShortDescriptionAsHtml()|raw }}
<span class="ibo-edits-entry--long-description-toggler-icon fa fa-caret-down"></span>
</a>
<ul class="ibo-edits-entry--long-description" data-role="ibo-edits-entry--long-description">
{% for sAttCode, aAttData in oUIBlock.GetAttributes() %}
{% for sAttHtmlDescription in aAttData.descriptions %}
<li class="ibo-edits-entry--attribute-description" data-attribute-code="{{ sAttCode }}">{{ sAttHtmlDescription|raw }}</li>
{% endfor %}
{% endfor %}
</ul>
{% endif %}
{% endblock %}