Skip to content

Commit

Permalink
Update sideBar.html
Browse files Browse the repository at this point in the history
  • Loading branch information
geobrun authored Apr 16, 2024
1 parent 36d6f1e commit fad1301
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions atlas/templates/core/sideBar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,24 @@
</a>
{% for page_key, page_values in configuration.STATIC_PAGES.items()|sort(attribute='1.order') %}
{% if 'url' in page_values %}
<a href="{{ page_values.url }}" target="_blank" data-toggle="tooltip"
data-original-title="{{ page_values.title }}" data-placement="right">
<a href="{{ page_values.url }}" target="_blank" data-toggle="tooltip" data-original-title="{{ page_values.title }}" data-placement="right">
<li class="sidebar-brand">
{% if 'customized_picto' in page_values %}
<span><img src="/static/custom/images/{{ page_values.customized_picto }}" height="{{ page_values.picto_height}}"></img></span>
{% else %}
<span class="fas {{ page_values.picto }}"></span>
{% endif %}
</li>
{% if 'customized_picto' in page_values %}
<span><img src="/static/custom/images/{{ page_values.customized_picto }}" height="{{ page_values.picto_height}}"></img></span>
{% else %}
<span class="fas {{ page_values.picto }}"></span>
{% endif %}
</li>
</a>
{% else %}
<a href="{{ url_for('main.get_staticpages', page=page_key) }}" data-toggle="tooltip"
data-original-title="{{ page_values.title }}" data-placement="right">
<a href="{{ url_for('main.get_staticpages', page=page_key) }}" data-toggle="tooltip" data-original-title="{{ page_values.title }}" data-placement="right">
<li class="sidebar-brand">
{% if 'customized_picto' in page_values %}
<span><img src="/static/custom/images/{{ page_values.customized_picto }}" height="{{ page_values.picto_height}}"></img></span>
{% else %}
<span class="fas {{ page_values.picto }}"></span>
{% endif %}
</li>
{% if 'customized_picto' in page_values %}
<span><img src="/static/custom/images/{{ page_values.customized_picto }}" height="{{ page_values.picto_height}}"></img></span>
{% else %}
<span class="fas {{ page_values.picto }}"></span>
{% endif %}
</li>
</a>
{% endif %}
{% endfor %}
Expand Down

0 comments on commit fad1301

Please sign in to comment.