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
Re2o
re2o
Commits
ceb2c86d
Commit
ceb2c86d
authored
Jun 22, 2018
by
moamoak
Browse files
Fix
#60
: Change context variable so it does not get overriden by django-auth views
parent
55c1da24
Pipeline
#724
passed with stage
in 2 minutes and 50 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
re2o/context_processors.py
View file @
ceb2c86d
...
@@ -42,6 +42,8 @@ def context_user(request):
...
@@ -42,6 +42,8 @@ def context_user(request):
return
{
return
{
'request_user'
:
user
,
'request_user'
:
user
,
'interfaces'
:
interfaces
,
'interfaces'
:
interfaces
,
'site_name'
:
GeneralOption
.
get_cached_value
(
'site_name'
),
# Must takes a different name because djang.auth.contrib.views.login()
# overrides 'site_name' context variable.
'name_website'
:
GeneralOption
.
get_cached_value
(
'site_name'
),
'ipv6_enabled'
:
OptionalMachine
.
get_cached_value
(
'ipv6'
),
'ipv6_enabled'
:
OptionalMachine
.
get_cached_value
(
'ipv6'
),
}
}
re2o/locale/fr/LC_MESSAGES/django.mo
View file @
ceb2c86d
No preview for this file type
re2o/locale/fr/LC_MESSAGES/django.po
View file @
ceb2c86d
...
@@ -44,8 +44,8 @@ msgstr "Accueil"
...
@@ -44,8 +44,8 @@ msgstr "Accueil"
#: templates/re2o/index.html:33
#: templates/re2o/index.html:33
#, python-format
#, python-format
msgid "Welcome to %(
site_nam
e)s !"
msgid "Welcome to %(
name_websit
e)s !"
msgstr "Bienvenue sur %(
site_nam
e)s !"
msgstr "Bienvenue sur %(
name_websit
e)s !"
#: templates/re2o/index.html:47
#: templates/re2o/index.html:47
msgid "Go there"
msgid "Go there"
...
...
re2o/templates/re2o/index.html
View file @
ceb2c86d
...
@@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
...
@@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% block title %}{% trans "Home" %}{% endblock %}
{% block title %}{% trans "Home" %}{% endblock %}
{% block content %}
{% block content %}
<h1>
{% blocktrans %}Welcome to {{
site_nam
e }} !{% endblocktrans %}
</h1>
<h1>
{% blocktrans %}Welcome to {{
name_websit
e }} !{% endblocktrans %}
</h1>
<div
class=
"row"
>
<div
class=
"row"
>
{% for service_list in services_urls %}
{% for service_list in services_urls %}
...
...
templates/base.html
View file @
ceb2c86d
...
@@ -56,7 +56,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
...
@@ -56,7 +56,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<link
rel=
"stylesheet"
href=
"{% static 'css/base.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static 'css/base.css' %}"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"shortcut icon"
type=
"image/svg"
href=
"{% static 'images/logo_re2o.svg' %}"
>
<link
rel=
"shortcut icon"
type=
"image/svg"
href=
"{% static 'images/logo_re2o.svg' %}"
>
<title>
{{
site_nam
e }} : {% block title %}Accueil{% endblock %}
</title>
<title>
{{
name_websit
e }} : {% block title %}Accueil{% endblock %}
</title>
</head>
</head>
<body>
<body>
...
@@ -71,7 +71,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
...
@@ -71,7 +71,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</button>
</button>
<a
class=
"navbar-brand"
href=
"/"
>
<a
class=
"navbar-brand"
href=
"/"
>
<img
src=
"{% static 'images/logo_re2o_navbar.svg' %}"
height=
32
>
<img
src=
"{% static 'images/logo_re2o_navbar.svg' %}"
height=
32
>
{{
site_nam
e }}
{{
name_websit
e }}
</a>
</a>
</div>
</div>
<div
class=
"collapse navbar-collapse"
id=
"myNavbar"
>
<div
class=
"collapse navbar-collapse"
id=
"myNavbar"
>
...
...
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