mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Ménage, mise en var du nom re2o
This commit is contained in:
parent
915eb3e3b1
commit
13d4e2e795
6 changed files with 19 additions and 13 deletions
|
@ -1,7 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
||||||
{% load bootstrap3 %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>Bienvenue sur re2o.rez !</h1>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
|
||||||
def index(request):
|
|
||||||
return render(request, 'logs/index.html')
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from machines.models import Interface, Machine
|
from machines.models import Interface, Machine
|
||||||
|
from .settings import SITE_NAME
|
||||||
|
|
||||||
def context_user(request):
|
def context_user(request):
|
||||||
user = request.user
|
user = request.user
|
||||||
|
@ -20,4 +20,5 @@ def context_user(request):
|
||||||
'is_trez': is_trez,
|
'is_trez': is_trez,
|
||||||
'is_infra': is_infra,
|
'is_infra': is_infra,
|
||||||
'interfaces': interfaces,
|
'interfaces': interfaces,
|
||||||
|
'site_name': SITE_NAME,
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,8 @@ DATABASES = {
|
||||||
|
|
||||||
# Association information
|
# Association information
|
||||||
|
|
||||||
|
SITE_NAME = "Re2o.rez"
|
||||||
|
|
||||||
LOGO_PATH = "static_files/logo.png"
|
LOGO_PATH = "static_files/logo.png"
|
||||||
ASSO_NAME = "Asso reseau"
|
ASSO_NAME = "Asso reseau"
|
||||||
ASSO_ADDRESS_LINE1 = "2, rue Edouard Belin"
|
ASSO_ADDRESS_LINE1 = "2, rue Edouard Belin"
|
||||||
|
@ -26,3 +28,15 @@ ASSO_ADDRESS_LINE2 = "57070 Metz"
|
||||||
ASSO_SIRET = ""
|
ASSO_SIRET = ""
|
||||||
ASSO_EMAIL = "tresorier@ecole.fr"
|
ASSO_EMAIL = "tresorier@ecole.fr"
|
||||||
ASSO_PHONE = "01 02 03 04 05"
|
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'
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{% block title %}Accueil{% endblock %}
|
{% block title %}Accueil{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Bienvenue sur re2o.rez !</h1>
|
<h1>Bienvenue sur {{ site_name }} !</h1>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{% if services_urls.zerobin %}
|
{% if services_urls.zerobin %}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
{% bootstrap_javascript %}
|
{% bootstrap_javascript %}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="/">Re2o</a>
|
<a class="navbar-brand" href="/">{{ site_name }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse navbar-collapse" id="myNavbar">
|
<div class="collapse navbar-collapse" id="myNavbar">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
|
Loading…
Reference in a new issue