mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 16:02:26 +01:00 
			
		
		
		
	Sidebar structure
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -1,13 +1,21 @@
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
<div>
 | 
			
		||||
    {% if user.is_authenticated and not user.registration.email_confirmed %}
 | 
			
		||||
        <div class="alert alert-warning" role="alert">
 | 
			
		||||
            {% url "registration:email_validation_resend" pk=user.pk as send_email_url %}
 | 
			
		||||
            {% blocktrans trimmed %}
 | 
			
		||||
                Your email address is not validated. Please click on the link you received by email.
 | 
			
		||||
                You can resend a mail by clicking on <a href="{{ send_email_url }}">this link</a>.
 | 
			
		||||
            {% endblocktrans %}
 | 
			
		||||
{% if user.is_authenticated %}
 | 
			
		||||
    <div class="card">
 | 
			
		||||
        <div class="card-header bg-dark-subtle">
 | 
			
		||||
            <h3 class="card-title">{% trans "Informations" %}</h3>
 | 
			
		||||
        </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</div>
 | 
			
		||||
        <div class="card-body">
 | 
			
		||||
            {% for information in user.registration.important_informations %}
 | 
			
		||||
                <div class="card">
 | 
			
		||||
                    <div class="card-header bg-dark-subtle">
 | 
			
		||||
                        <h4 class="card-title">{{ information.title }}</h4>
 | 
			
		||||
                    </div>
 | 
			
		||||
                <div class="card-body bg-warning-subtle">
 | 
			
		||||
                    {{ information.content|safe }}
 | 
			
		||||
                </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
{% endif %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user