Skip to content

Commit

Permalink
[Scorecards] Show number of graphics above section graphics gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
zarino committed Jul 26, 2024
1 parent 09676f0 commit 5f8245a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scoring/templates/scoring/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@ <h3 class="fs-4 mb-0 text-center">

{% if social_graphics %}
<div class="container pt-5 pt-lg-6">
<div class="mb-4 d-flex align-items-center justify-content-between">
<div class="mb-2 d-flex align-items-center justify-content-between">
<h3 class="mb-0">Key takeaways</h3>
{% if social_graphics.zip %}
<a class="btn btn-sm btn-outline-primary" href="{% static social_graphics.zip %}">Download all (.zip)</a>
{% endif %}
</div>

<p class="mb-4">{{ social_graphics.images|length|add:"1" }} infographics for you to download and share.</p>

<div class="overflow-gallery gap-3">
{% for image in social_graphics.images %}
<div class="d-flex flex-column gap-3">
Expand Down

0 comments on commit 5f8245a

Please sign in to comment.