aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlban Gruin2017-10-04 17:38:01 +0200
committerAlban Gruin2017-10-04 17:38:01 +0200
commita61f5a3f507395c2aa0cab09f14f4308159935f6 (patch)
treea8e0f1a76b946b2c355bb9994e3eb51a1bc36987 /templates
parent175fcd46f56d8c1c5d10a50b401c09c25cfcdf82 (diff)
Ajout d’une description en balise meta et de liens alternate
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html1
-rw-r--r--templates/timetable.html7
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
index 8d7634e..005fd5b 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -3,6 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
+{% block head %}{% endblock %}
<title>{% block title %}{% if year %}{{ year }} &ndash; {% endif %}{% endblock %}celcatsanitizer</title>
<link rel="stylesheet" href="{% static "celcatsanitizer/style.css" %}">
</head>
diff --git a/templates/timetable.html b/templates/timetable.html
index 9143c2f..4ab6a1a 100644
--- a/templates/timetable.html
+++ b/templates/timetable.html
@@ -1,5 +1,12 @@
{% extends "index.html" %}
+{% block head %}
+ <meta name="description" content="Emploi du temps du groupe {{ group }} &ndash; Semaine {{ week }}" />
+ <link rel="alternate" type="application/atom+xml" title="Emploi du temps du groupe {{ group }} (Atom)" href="{% url "atom" group.timetable.year.slug group.timetable.slug group.slug %}" />
+ <link rel="alternate" type="application/rss+xml" title="Emploi du temps du groupe {{ group }} (RSS)" href="{% url "rss" group.timetable.year.slug group.timetable.slug group.slug %}" />
+ <link rel="alternate" type="text/calendar" title="Emploi du temps du groupe {{ group }} (iCalendar)" href="{% url "ics" group.timetable.year.slug group.timetable.slug group.slug %}">
+{% endblock %}
+
{% block title %}{{ group.timetable }} &ndash; {{ group }} &ndash; Semaine {{ week }} &ndash; {% endblock %}
{% block body %}