Skip to content

Commit

Permalink
measures/measure_list_item: show fields of action as list
Browse files Browse the repository at this point in the history
fixes #807
  • Loading branch information
philli-m authored and goapunk committed Jun 22, 2023
1 parent e52a287 commit 295b092
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ <h3 class="title">{{ content.page_title|truncatechars:102 }}</h3>

<div class="text textile">
<p class="text">{{ content.contact_organisation_name }}</p>
<p class="u-b-none">
<ul class="measure-foa-list">
{% for foa in content.get_fields_of_action %}
{{ foa.subset_name }}
{% if not forloop.last %}, {% endif %}
<li>{{ foa.subset_name }}</li>
{% endfor %}
</p>

</ul>
<a href="{% pageurl content %}" class="more" data-mainlink="true" title="This is a single Teaser">
{% translate 'More' %}
<span class="aural">{% translate 'about:' context 'For SRs, reads "more about: <name of measure>"' %} {{ content.page_title }}</span>
Expand Down
6 changes: 6 additions & 0 deletions digitalstrategie/assets/scss/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@
.u-b-none {
margin-bottom: 0;
}

.measure-foa-list {
list-style-type: none;
padding-left: 0;
margin-bottom: 0.25 * $spacer;
}

0 comments on commit 295b092

Please sign in to comment.