Fix site name

This commit is contained in:
Alexandre Iooss 2019-08-02 16:12:41 +02:00
parent 1100681952
commit 6506c229de
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
3 changed files with 5 additions and 9 deletions

View File

@ -175,8 +175,6 @@ PASSWORD_HASHERS = (
) )
AUTH_USER_MODEL = 'users.User' AUTH_USER_MODEL = 'users.User'
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/'
SITE_NAME = "Med" SITE_NAME = "Med"
# Association information # Association information

View File

@ -9,7 +9,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% block title %}Accueil{% endblock %} {% block title %}Accueil{% endblock %}
{% block content %} {% block content %}
<h1>Bienvenue sur {{ site_name }}, notre base de données.</h1> <h1>Bienvenue sur la base de données de la Mediatek.</h1>
<h1>Welcome to procrastination heaven !</h1> <h1>Welcome to procrastination heaven !</h1>
<p class="lead"> <p class="lead">

View File

@ -36,7 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% bootstrap_javascript %} {% bootstrap_javascript %}
<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">
<title>{{ site_name }} : {% block title %}Accueil{% endblock %}</title> <title>{{ request.site.name }} : {% block title %}Accueil{% endblock %}</title>
</head> </head>
<body> <body>
@ -49,7 +49,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<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="/">{{ site_name }}</a> <a class="navbar-brand" href="/">{{ request.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">
@ -105,8 +105,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{# Display django.contrib.messages as Bootstrap alerts #} {# Display django.contrib.messages as Bootstrap alerts #}
{% bootstrap_messages %} {% bootstrap_messages %}
<hr>
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
<div class="col-sm-2 sidenav"> <div class="col-sm-2 sidenav">
@ -139,8 +137,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
</div> </div>
<footer class="navbar"> <footer class="navbar">
<div class="containerfluid text-center"> <div class="container-fluid text-center">
<p>Med 2017 - Gabriel Détraz (from Re2o 2016 - Détraz-Kermarec-Lemesle)</p> <p>Mediatek 2017-2020 &mdash; <a href="mailto:club-med@crans.org">Nous contactez</a></p>
</div> </div>
</footer> </footer>