Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
13d4e2e7
Commit
13d4e2e7
authored
Jul 20, 2016
by
chirac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ménage, mise en var du nom re2o
parent
915eb3e3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
13 deletions
+19
-13
logs/templates/logs/index.html
logs/templates/logs/index.html
+0
-7
logs/views.py
logs/views.py
+0
-2
re2o/context_processors.py
re2o/context_processors.py
+2
-1
re2o/settings_local.example.py
re2o/settings_local.example.py
+14
-0
re2o/templates/re2o/index.html
re2o/templates/re2o/index.html
+1
-1
templates/base.html
templates/base.html
+2
-2
No files found.
logs/templates/logs/index.html
deleted
100644 → 0
View file @
915eb3e3
{% extends "base.html" %}
{% load bootstrap3 %}
{% block content %}
<h1>
Bienvenue sur re2o.rez !
</h1>
{% endblock %}
logs/views.py
View file @
13d4e2e7
from
django.shortcuts
import
render
def
index
(
request
):
return
render
(
request
,
'logs/index.html'
)
re2o/context_processors.py
View file @
13d4e2e7
from
machines.models
import
Interface
,
Machine
from
.settings
import
SITE_NAME
def
context_user
(
request
):
user
=
request
.
user
...
...
@@ -20,4 +20,5 @@ def context_user(request):
'is_trez'
:
is_trez
,
'is_infra'
:
is_infra
,
'interfaces'
:
interfaces
,
'site_name'
:
SITE_NAME
,
}
re2o/settings_local.example.py
View file @
13d4e2e7
...
...
@@ -19,6 +19,8 @@ DATABASES = {
# Association information
SITE_NAME
=
"Re2o.rez"
LOGO_PATH
=
"static_files/logo.png"
ASSO_NAME
=
"Asso reseau"
ASSO_ADDRESS_LINE1
=
"2, rue Edouard Belin"
...
...
@@ -26,3 +28,15 @@ ASSO_ADDRESS_LINE2 = "57070 Metz"
ASSO_SIRET
=
""
ASSO_EMAIL
=
"tresorier@ecole.fr"
ASSO_PHONE
=
"01 02 03 04 05"
services_urls
=
{
#Fill IT : ex : 'gitlab': {'url': 'https://gitlab.rezometz.org', 'logo': 'gitlab.png'},
}
# Number of hours a token remains valid after having been created. Numeric and string
# versions should have the same meaning.
REQ_EXPIRE_HRS
=
48
REQ_EXPIRE_STR
=
'48 heures'
# Email `From` field
EMAIL_FROM
=
'www-data@serveur.net'
re2o/templates/re2o/index.html
View file @
13d4e2e7
...
...
@@ -5,7 +5,7 @@
{% block title %}Accueil{% endblock %}
{% block content %}
<h1>
Bienvenue sur
re2o.rez
!
</h1>
<h1>
Bienvenue sur
{{ site_name }}
!
</h1>
<div
class=
"row"
>
{% if services_urls.zerobin %}
...
...
templates/base.html
View file @
13d4e2e7
...
...
@@ -12,7 +12,7 @@
{% bootstrap_javascript %}
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Re2o
: {% block title %}Accueil{% endblock %}
</title>
<title>
{{ site_name }}
: {% block title %}Accueil{% endblock %}
</title>
</head>
<body>
...
...
@@ -25,7 +25,7 @@
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"navbar-brand"
href=
"/"
>
Re2o
</a>
<a
class=
"navbar-brand"
href=
"/"
>
{{ site_name }}
</a>
</div>
<div
class=
"collapse navbar-collapse"
id=
"myNavbar"
>
<ul
class=
"nav navbar-nav"
>
...
...
Write
Preview
Markdown
is supported
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