Commit fb3a80fa authored by Okhin's avatar Okhin

Adding a in to the publish interfaces

parent 838c9d53
Pipeline #2677 failed with stages
in 1 minute and 15 seconds
......@@ -27,7 +27,7 @@ urlpatterns = [
url(
r"^article/list",
ArticleListFlux.as_view(),
name="article-list"
name="article-flux"
),
url(
r"^article/edit/(?P<pk>\d+)",
......
......@@ -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-flux' %}">{% 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