Commit fb3a80fa authored by Okhin's avatar Okhin
Browse files

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 = [ ...@@ -27,7 +27,7 @@ urlpatterns = [
url( url(
r"^article/list", r"^article/list",
ArticleListFlux.as_view(), ArticleListFlux.as_view(),
name="article-list" name="article-flux"
), ),
url( url(
r"^article/edit/(?P<pk>\d+)", r"^article/edit/(?P<pk>\d+)",
......
...@@ -5,7 +5,7 @@ User registration and login related settings ...@@ -5,7 +5,7 @@ User registration and login related settings
AUTH_USER_MODEL = "auth.User" AUTH_USER_MODEL = "auth.User"
EXTENDED_USER_MODEL = "userprofile.Profile" EXTENDED_USER_MODEL = "userprofile.Profile"
LOGIN_URL = "/accounts/login" LOGIN_URL = "/accounts/login"
LOGIN_REDIRECT_URL = "/rp/" LOGIN_REDIRECT_URL = "/rp/article/list/flux/"
LOGOUT_REDIRECT_URL = "/rp/" LOGOUT_REDIRECT_URL = "/rp/"
......
...@@ -55,9 +55,12 @@ ...@@ -55,9 +55,12 @@
<a class="navbar-brand" href="/"><img class="float-left" src="/static/img/logo.png" alt=""></a> <a class="navbar-brand" href="/"><img class="float-left" src="/static/img/logo.png" alt=""></a>
{% if user.is_authenticated %} {% if user.is_authenticated %}
<ul class="navbar-nav ml-auto"> <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"> <li class="nav-item">
<a class="nav-link"> <a class="nav-link">
Vous êtes {{user.groups.last.name}} {% trans "Vous êtes" %} {{user.groups.last.name}}
{% if user.groups.last.name == "padawan" %} {% if user.groups.last.name == "padawan" %}
<img class="inline-image ml-2" role="img" src="{% static 'img/padawan.svg' %}" /> <img class="inline-image ml-2" role="img" src="{% static 'img/padawan.svg' %}" />
{% elif user.groups.last.name == "jedi" %} {% 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