Skip to content

Commit

Permalink
add tooltip logic to source tab items
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviareichl committed Dec 11, 2024
1 parent 695b416 commit 8539d89
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openatlas/templates/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,20 @@
class="fw-normal py-1 nav-link {% if loop.first %}active{% endif %}"
data-bs-toggle="tab"
data-bs-placement="top"
title="{{ tab.tooltip }}"
role="tab"
type="button"
aria-selected="{% if active %}true{% else %}false{% endif %}"
href="#tab-{{ tab.name|replace('_', '-') }}">
<span
data-bs-toggle="tooltip"
title="{{ tab.tooltip }}"
data-bs-placement="top"
>
{{ _(tab.name|replace('_', ' '))|uc_first }}
{% if tab.table.rows|length %}
<span class="tab-counter">{{ '{0:,}'.format(tab.table.rows|length) }}</span>
{% endif %}
</span>
</a>
</li>
{% endfor %}
Expand All @@ -43,4 +48,5 @@
</div>
</div>
</div>

{% endblock %}

0 comments on commit 8539d89

Please sign in to comment.