Skip to content
Snippets Groups Projects
Commit 007ac370 authored by Dorian Lesbre's avatar Dorian Lesbre
Browse files

Added self-aware version number

parent 02987d91
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@
- Added links to activities from profile page
- Added admin warning for malformed activity wishes.
- Fixed multiple day display on planning and added planning preview to admin files
- Added version number to admin pages
## Version 1.0.1 - day one patch - 2021-03-24
......
......@@ -8,7 +8,7 @@
{% block "content" %}
<h2>Page d'administration</h2>
<p><strong>Version {{ constants.WEBSITE_FULL_VERSION }}</strong></p>
<div class="flex wrap">
<a class="button" href="{% url 'participants.csv' %}"><i class="fa fa-download"></i> Liste des participants</a>
<a class="button" href="{% url 'activities.csv' %}"><i class="fa fa-download"></i> Liste des activités</a>
......
......@@ -2,10 +2,11 @@
<!doctype html>
<html lang="fr">
<head>
<!-- WEBSITE VERSION {{ constants.WEBSITE_FULL_VERSION }} -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interludes {% if settings.date_start %}{{ settings.date_start.year }}{% endif %}</title>
<title>Interludes{% if settings.date_start %} {{ settings.date_start.year }}{% endif %}</title>
<meta name="description" content="Inscriptions et infos sur les interENS ludiques{% if settings.date_start %}, édition {{ settings.date_start.year }}{% endif %}">
<meta name="keywords" content="Interludes ENS événement COF {% if settings.date_start %}{{ settings.date_start.year }} {% endif %}InterENS">
<link rel="icon" type="image/png" href="{% static 'imgs/favicon.ico' %}">
......@@ -17,7 +18,7 @@
<body>
<header>
<div id="header_logo">
<h1><a href="/">Interludes {% if settings.date_start %}{{ settings.date_start.year }}{% endif %}</a></h1>
<h1><a href="/">Interludes{% if settings.date_start %} {{ settings.date_start.year }}{% endif %}</a></h1>
</div>
<div id="head_main_infos">
<div id="location">ENS Ulm</div>
......
# The website version number
WEBSITE_VERSION = "1.0.1b"
WEBSITE_VERSION_DATE = "2021-03-24"
WEBSITE_FULL_VERSION = "{} - {}".format(
WEBSITE_VERSION, WEBSITE_VERSION_DATE
)
from site_settings import constants
from site_settings.models import SiteSettings
def settings(request):
return {'settings': SiteSettings.load()}
return {
'settings': SiteSettings.load(),
'constants' : constants,
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment