Project

General

Profile

Bug #53699

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

Added by Frédéric Péters 14 days ago. Updated 10 days ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
04 May 2021
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

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

Related issues

Related to Intégrations graphiques Publik - Bug #53558: villeneuve-d'asq: 2 icônes Accueil dans le headerSolution déployée29 Apr 2021

Actions

Associated revisions

Revision 30f4cafc (diff)
Added by Frédéric Péters 14 days ago

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

History

#1

Updated by Frédéric Péters 14 days ago

  • Assignee set to 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

Updated by Frédéric Péters 14 days ago

  • Status changed from Nouveau to 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

Updated by Frédéric Péters 14 days ago

  • Related to Bug #53558: villeneuve-d'asq: 2 icônes Accueil dans le header added
#4

Updated by Frédéric Péters 10 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF