Skip to content

Commit

Permalink
change the list behavior for adv. metadata
Browse files Browse the repository at this point in the history
Display bullets when there is more than one item; otherwise show no bullet.
  • Loading branch information
yl5682 committed Feb 10, 2025
1 parent c1dcb08 commit a1124e4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions apps/templates/_page/_information.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,16 @@

{% if metadata.multi %}
<div class="rx-info-content-value">
<ul class="uk-list uk-list-circle">
{% for item in metadata.value|split_to_bullets %}
<li class="uk-margin-remove-top">{{ item }}</li>
{% endfor %}
<ul class="uk-list uk-list-bullet">
{% with metadata.value|split_to_bullets as items %}
{% for item in items %}
{% if items|length == 1 %}
{{item}}
{% else %}
<li class="uk-margin-remove-top">{{ item }}</li>
{% endif %}
{% endfor %}
{% endwith %}
</ul>
</div>
{% else %}
Expand Down

0 comments on commit a1124e4

Please sign in to comment.