Commit 8dc0468e authored by okhin's avatar okhin 🚴

Merge branch '62-il-faut-changer-la-page-de-home-apres-login' into 'rp2'

Resolve "Il faut changer la page de home après login"

Closes #62

See merge request !54
parents f4e237d4 12e15b38
Pipeline #2680 passed with stages
in 3 minutes and 48 seconds
......@@ -5,7 +5,7 @@ User registration and login related settings
AUTH_USER_MODEL = "auth.User"
EXTENDED_USER_MODEL = "userprofile.Profile"
LOGIN_URL = "/accounts/login"
LOGIN_REDIRECT_URL = "/rp/"
LOGIN_REDIRECT_URL = "/rp/article/list/flux/"
LOGOUT_REDIRECT_URL = "/rp/"
......
......@@ -55,9 +55,12 @@
<a class="navbar-brand" href="/"><img class="float-left" src="/static/img/logo.png" alt=""></a>
{% if user.is_authenticated %}
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="{% url 'rp:article-list' %}">{% trans "Publish interface" %}</a>
</li>
<li class="nav-item">
<a class="nav-link">
Vous êtes {{user.groups.last.name}}
{% trans "Vous êtes" %} {{user.groups.last.name}}
{% if user.groups.last.name == "padawan" %}
<img class="inline-image ml-2" role="img" src="{% static 'img/padawan.svg' %}" />
{% elif user.groups.last.name == "jedi" %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment