Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
fb3a80fa
Commit
fb3a80fa
authored
Sep 25, 2019
by
Okhin
Browse files
Adding a in to the publish interfaces
parent
838c9d53
Pipeline
#2677
failed with stages
in 1 minute and 15 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/rp/urls.py
View file @
fb3a80fa
...
...
@@ -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+)"
,
...
...
project/settings/auth.py
View file @
fb3a80fa
...
...
@@ -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/"
...
...
templates/base.html
View file @
fb3a80fa
...
...
@@ -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" %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment