parent
d760fd4a89
commit
9700de054f
@ -4,6 +4,36 @@
|
|||||||
{% load event_extra %}
|
{% load event_extra %}
|
||||||
{% load tag_extra %}
|
{% load tag_extra %}
|
||||||
|
|
||||||
|
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
|
||||||
|
{% if event.other_versions %}
|
||||||
|
{% with poss_dup=event.get_other_versions %}
|
||||||
|
{% if poss_dup|length > 0 and event.masked %}
|
||||||
|
<div class="message warning">
|
||||||
|
{% if event.other_versions.representative %}
|
||||||
|
{% if event.pure_import %}Cette version de l'événement est fidèle à la source, mais l'événement existe en{% else %}
|
||||||
|
Cette version de l'événement existe en
|
||||||
|
{% endif %}
|
||||||
|
<a href="{{ event.other_versions.get_absolute_url }}">en plusieurs versions</a>.<br>
|
||||||
|
Tu peux consulter <a href="{{ event.other_versions.get_one_event.get_absolute_url }}">la version mise en avant</a>.
|
||||||
|
{% else %}
|
||||||
|
Cet événement existe <a href="{{ event.other_versions.get_absolute_url }}">en plusieurs versions</a>, et aucune n'a encore été choisie pour être mise en avant.
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endwith %}
|
||||||
|
{% if event.get_other_not_trash_versions|length == 0 %}<p class="remarque">Aucune autre version n'est accessible publiquement</p>{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{% if event.other_versions.representative and event.masked %}
|
||||||
|
<div class="message warning">
|
||||||
|
Cette version de l'événement n'est pas dans sa forme la plus avantageuse.
|
||||||
|
L'équipe de modération a préparé pour toi une <a href="{{ event.other_versions.representative.get_absolute_url }}">version à jour</a>.
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
<header>
|
<header>
|
||||||
{% include "agenda_culturel/ephemeris-inc.html" with event=event filter=filter %}
|
{% include "agenda_culturel/ephemeris-inc.html" with event=event filter=filter %}
|
||||||
@ -48,34 +78,15 @@
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
|
{% if event.other_versions %}
|
||||||
{% if event.other_versions %}
|
{% with poss_dup=event.get_other_versions %}
|
||||||
{% with poss_dup=event.get_other_versions %}
|
{% if poss_dup|length > 0 and event.other_versions.representative and not event.masked %}
|
||||||
{% if poss_dup|length > 0 %}
|
<p class="remarque">Cette version est celle mise en avant, cependant il en existe <a href="{{ event.other_versions.get_absolute_url }}">en plusieurs versions</a>.</p>
|
||||||
<p class="remarque">
|
{% endif %}
|
||||||
{% if event.other_versions.representative %}
|
{% endwith %}
|
||||||
Cet événement existe <a href="{{ event.other_versions.get_absolute_url }}">en plusieurs versions</a>,
|
|
||||||
{% if event.masked %}
|
|
||||||
vous pouvez consulter <a href="{{ event.other_versions.get_one_event.get_absolute_url }}">la version mise en avant</a>
|
|
||||||
{% else %}
|
|
||||||
et vous consultez la version mise en avant.
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
cet événement existe probablement <a href="{{ event.other_versions.get_absolute_url }}">en plusieurs versions</a>.
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endwith %}
|
|
||||||
{% if event.get_other_not_trash_versions|length == 0 %}<p class="remarque">Aucune autre version n'est accessible publiquement</p>{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
{% if event.other_versions.representative and event.masked %}
|
|
||||||
<p class="remarque">
|
|
||||||
Vous consultez l'événement dans une version non consolidée. Nous vous invitons
|
|
||||||
à consulter sa <a href="{{ event.other_versions.representative.get_absolute_url }}">version représentative</a>.
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if perms.agenda_culturel.change_message %}
|
{% if perms.agenda_culturel.change_message %}
|
||||||
{% if event.message_set.all.count > 0 %}
|
{% if event.message_set.all.count > 0 %}
|
||||||
<p class="remarque">Cet événement a été l'objet {% if event.message_set.all.count == 1 %}d'un message{% else %}de messages{% endif %}
|
<p class="remarque">Cet événement a été l'objet {% if event.message_set.all.count == 1 %}d'un message{% else %}de messages{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user