Projet

Général

Profil

Bug #53699

Villeneuve d'Ascq, 'block' tag with name 'placeholder-user-info' appears more than once

Ajouté par Frédéric Péters il y a presque 3 ans. Mis à jour il y a presque 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
04 mai 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

Date: Tue, 04 May 2021 08:02:22 +0200
From: admin+authentic.node1.test.saas.entrouvert.org@entrouvert.org
Subject: [connexion-villeneuvedascq.test.entrouvert.org] ERROR (EXTERNAL IP): Internal Server Error: /login/
To: admin+authentic2-multitenant.test@entrouvert.com

Internal Server Error: /login/

TemplateSyntaxError at /login/
'block' tag with name 'placeholder-user-info' appears more than once

Demandes liées

Lié à Intégrations graphiques Publik - Bug #53558: villeneuve-d'asq: 2 icônes Accueil dans le headerFermé29 avril 2021

Actions

Révisions associées

Révision 30f4cafc (diff)
Ajouté par Frédéric Péters il y a presque 3 ans

villeneuve-dascq: don't include {{block.super}} in comment (#53699)

Historique

#1

Mis à jour par Frédéric Péters il y a presque 3 ans

  • Assigné à mis à Frédéric Péters

Dans le modèle partagé, on trouve :

  <!-- manually replace 
  <span class="theme-back-home">
    <a href="https://portail-villeneuvedascq.test.entrouvert.org/" title="retour à l’accueil">Accueil</a>
  </span>

  <!-- manually replace 
{% block placeholder-user-info %}{% block user-info %}
  {% if user.is_authenticated %}
  <span class="logged-in">
    {% if idp_account_url %}<a class="account-link" href="{{ idp_account_url }}">{% endif %}
    <span class="connected-user">{% block user-info-user-name %}{{ user.first_name }} {{ user.last_name }}{% endblock %}</span>{% if idp_account_url %}</a>{% endif %}
    <a accesskey="o" class="logout" href="{% url 'auth_logout' %}">{% block user-info-logout-label %}Déconnexion{% endblock %}</a>
  </span>
  {% else %}
   {% firstof registration_url idp_registration_url as registration_url %}
    <span class="login"><a accesskey="2" class="login-link" href="{% url 'auth_login' %}" 
      >{% block user-info-login-label %}Connexion{% endblock %}
      {% if registration_url and include_registration_link != False %}</a>{% endif %}
      <span class="sep">/</span>
      {% if registration_url and include_registration_link != False %}<a class="registration" href="{{ registration_url }}" 
      >{% block user-info-registration-label %}Inscription{% endblock %}{% endif %}</a></span>
  {% endif %}
{% endblock %}{% endblock %}
 that however produce a loop on django 1.11 -->
  {% block placeholder-user-info %}{% block user-info %}
  {% if user.is_authenticated %}
  <span class="logged-in">

https://portail-villeneuvedascq.test.entrouvert.org/__skeleton__/?source=https://connexion-villeneuvedascq.test.entrouvert.org/login/

#2

Mis à jour par Frédéric Péters il y a presque 3 ans

  • Statut changé de Nouveau à Résolu (à déployer)

Je viens de :

--- a/templates/variants/villeneuve-dascq/includes/user-info.html
+++ b/templates/variants/villeneuve-dascq/includes/user-info.html
@@ -5,7 +5,6 @@
     <a href="{{portal_url}}" title="retour à l’accueil">Accueil</a>
   </span>

-  <!-- manually replace {{ block.super }} that however produce a loop on django 1.11 -->
   {% skeleton_extra_placeholder user-info %}
   {% if user.is_authenticated %}
   <span class="logged-in">

commit 30f4cafc5a1dd351c4966ee28076026f4079d472
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue May 4 08:23:08 2021 +0200

    villeneuve-dascq: don't include {{block.super}} in comment (#53699)
#3

Mis à jour par Frédéric Péters il y a presque 3 ans

  • Lié à Bug #53558: villeneuve-d'asq: 2 icônes Accueil dans le header ajouté
#4

Mis à jour par Frédéric Péters il y a presque 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF