Tags Ressource redirect

This commit is contained in:
Éric Li 2021-04-23 18:24:17 +02:00
parent 04488c3dcc
commit 668fdc5900

View File

@ -120,11 +120,11 @@ template = env.from_string("""
<th>{{categorie.capitalize()}}</th>
<td>
{#- Gestion des tableaux #}
{% if categorie == "motscles" or categorie == "ressources" -%}
{% if categorie == "motscles" -%}
<div class="tags">{% for mot in valeur %}<span class="tag is-info">{{mot}}</span>{% endfor %}</div>
{#- Gestion des saes #}
{% elif categorie == "sae" %}
<div class="tags">{% for sae in valeur %}<a class="tag is-info" href="{{sae.replace("É","E")}}.html">{{sae}}</a>{% endfor %}</div>
{% elif categorie == "sae" or categorie == "ressources" %}
<div class="tags">{% for val in valeur %}<a class="tag is-info" href="{{val.replace("É","E")}}.html">{{val}}</a>{% endfor %}</div>
{#- Gestion des ACS #}
{% elif categorie == "acs" -%}
<div class="tags">{% for rt,acs in valeur.items() %}{% for ac in acs %}<span class="tag is-info">{{ac}}</span>{% endfor %}{% endfor %}</div>