|
| 1 | +<style> |
| 2 | + {% if configuration.AFFICHAGE_LABEL_SIDEBAR %} |
| 3 | + #sidebar_menu { |
| 4 | + width: 120px; |
| 5 | + li { |
| 6 | + height: unset !important; |
| 7 | + |
| 8 | + .short_title { |
| 9 | + padding-top: 0.5rem; |
| 10 | + font-size: 0.8rem; |
| 11 | + font-weight: bold; |
| 12 | + text-transform: uppercase; |
| 13 | + } |
| 14 | + } |
| 15 | + } |
| 16 | + main { |
| 17 | + margin-left: 120px; |
| 18 | + } |
| 19 | + {% else %} |
| 20 | + .sidebar-brand > a { |
| 21 | + justify-content: center; |
| 22 | + } |
| 23 | + {% endif %} |
| 24 | +</style> |
| 25 | + |
1 | 26 | <ul id="sidebar_menu" class="sidebar-nav"> |
2 | 27 |
|
3 | 28 | <li class="sidebar-brand"> |
4 | 29 | <a href="{{ url_for('main.index') }}" id="menu-toggle" |
5 | | - class="d-flex justify-content-center align-items-center p-3 w-100 h-100" |
| 30 | + class="d-flex align-items-center flex-column p-3 w-100 h-100" |
6 | 31 | data-bs-toggle="tooltip" |
7 | 32 | title="{{ _('back.to.home') }}" |
8 | 33 | data-bs-placement="right"> |
9 | 34 | <span id="main_icon" class="fa fa-home"></span> |
| 35 | + {% if configuration.AFFICHAGE_LABEL_SIDEBAR %} |
| 36 | + <div class="short_title">Acceuil</div> |
| 37 | + {% endif %} |
10 | 38 | </a> |
11 | 39 | </li> |
12 | 40 |
|
13 | 41 | {% for page_key, page_values in configuration.STATIC_PAGES.items()|sort(attribute='1.order') %} |
14 | 42 | {% if 'url' in page_values %} |
15 | 43 | <li class="sidebar-brand"> |
16 | 44 | <a href="{{ page_values.url }}" target="_blank" |
17 | | - class="d-flex justify-content-center align-items-center p-3 w-100 h-100" |
| 45 | + class="d-flex align-items-center flex-column p-3 w-100 h-100" |
18 | 46 | data-bs-toggle="tooltip" |
19 | 47 | title="{{ page_values.title }}" |
20 | 48 | data-bs-placement="right"> |
|
25 | 53 | {% else %} |
26 | 54 | <span class="fas {{ page_values.picto }}"></span> |
27 | 55 | {% endif %} |
| 56 | + {% if configuration.AFFICHAGE_LABEL_SIDEBAR and 'label' in page_values %} |
| 57 | + <div class="short_title">{{ page_values.short_title }}</div> |
| 58 | + {% endif %} |
28 | 59 | </a> |
29 | 60 | </li> |
30 | 61 | {% else %} |
31 | 62 | <li class="sidebar-brand"> |
32 | 63 | <a href="{{ url_for('main.get_staticpages', page=page_key) }}" |
33 | | - class="d-flex justify-content-center align-items-center p-3 w-100 h-100" |
| 64 | + class="d-flex flex-column align-items-center p-3 w-100 h-100" |
34 | 65 | data-bs-toggle="tooltip" |
35 | 66 | title="{{ page_values.title }}" |
36 | 67 | data-bs-placement="right"> |
|
41 | 72 | {% else %} |
42 | 73 | <span class="fas {{ page_values.picto }}"></span> |
43 | 74 | {% endif %} |
| 75 | + {% if configuration.AFFICHAGE_LABEL_SIDEBAR and 'short_title' in page_values %} |
| 76 | + <div class="short_title">{{ page_values.short_title }}</div> |
| 77 | + {% endif %} |
44 | 78 | </a> |
45 | 79 | </li> |
46 | 80 | {% endif %} |
47 | 81 | {% endfor %} |
48 | 82 | {% if configuration.AFFICHAGE_RECHERCHE_AVANCEE %} |
49 | 83 | <li class="sidebar-brand"> |
50 | 84 | <a href="{{ url_for('main.advanced_search') }}" |
51 | | - class="d-flex justify-content-center align-items-center p-3 w-100 h-100" |
| 85 | + class="d-flex flex-column align-items-center p-3 w-100 h-100" |
52 | 86 | data-bs-toggle="tooltip" |
53 | 87 | title="{{ _('advanced_search') }}" |
54 | 88 | data-bs-placement="right"> |
|
59 | 93 |
|
60 | 94 | <li class="sidebar-brand"> |
61 | 95 | <a href="{{ url_for('main.photos') }}" |
62 | | - class="d-flex justify-content-center align-items-center p-3 w-100 h-100" |
| 96 | + class="d-flex flex-column align-items-center p-3 w-100 h-100" |
63 | 97 | data-bs-toggle="tooltip" |
64 | 98 | title="{{ _('gallery.title') }}" |
65 | 99 | data-bs-placement="right"> |
66 | 100 | <span class="fa fa-camera"></span> |
| 101 | + {% if configuration.AFFICHAGE_LABEL_SIDEBAR %} |
| 102 | + <div class="short_title">Photos</div> |
| 103 | + {% endif %} |
67 | 104 | </a> |
68 | 105 | </li> |
69 | 106 |
|
|
0 commit comments