Skip to content

Commit

Permalink
templates: fix display problems
Browse files Browse the repository at this point in the history
* Fixes flash messages not showing on wiki page.
* Fixes stats tooltip formulation and translation in public view.

Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>
  • Loading branch information
PascalRepond committed Sep 1, 2022
1 parent e5b5647 commit 754c655
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sonar/theme/templates/sonar/macros/macro.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<i class="fa fa-download mx-1"></i>
</a>
{% endif %}
<a href="{{ request.url }}#stats" class="sonar-tooltip" data-toggle="tooltip" data-placement="top" title="Download: {{ n_download }}">
<a href="{{ request.url }}#stats" class="sonar-tooltip" data-toggle="tooltip" data-placement="top" title="{{ _('File downloads') }}: {{ n_download }}">
<i class="fa fa-bar-chart mx-1"></i>
</a>
</div>
Expand Down
4 changes: 4 additions & 0 deletions sonar/theme/templates/sonar/page_wiki.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
{% block navigation %}
{%- include "wiki/navigation.html" %}
{%- endblock navigation %}
{%- block flashmessages %}
{%- from "sonar/macros/messages.html" import flashed_messages with context -%}
<div class="container my-3">{{ flashed_messages() }}</div>
{%- endblock %}
{% block content %} {% endblock %}
{%- endblock body %}
</div>
Expand Down

0 comments on commit 754c655

Please sign in to comment.