aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html70
1 files changed, 13 insertions, 57 deletions
diff --git a/templates/index.html b/templates/index.html
index 4db748d..366e6f9 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,70 +1,26 @@
-{% load dt_week %}<!DOCTYPE html>
+{% load static %}<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{% block title %}{% endblock %}celcatsanitizer</title>
- <style>
-body {
- max-width: 60em;
- margin: 1em auto;
- padding: 0 .62em;
- font: 1.2em/1.62em sans-serif;
- word-wrap: break-word;
-}
-
-h1, h2, h3 {
- line-height: 1.2em;
-}
-
-a {
- text-decoration: none;
-}
-
-a:hover, a:focus {
- text-decoration: underline;
-}
-
-h1 a, h3 a, a.text {
- color: #31363b;
-}
-
-.content {
- max-width: 50em;
- margin: 0 auto;
-}
-
-li {
- line-height: 1.2em;
- margin-bottom: 5px;
-}
-
-li.course {
- margin-bottom: 20px;
-}
-
-@media print {
- body, .content {
- max-width: none;
- }
-
- header, footer, a.subscribe {
- display: none;
- }
-}
- </style>
+ <link rel="stylesheet" href="{% static "celcatsanitizer/style.css" %}">
</head>
<body>
<header>
<h1><a href="{% url "index" %}">celcatsanitizer</a></h1>
</header>
- <div class="content">{% block body %}{% for timetable in timetables %}
- <section id="{{ timetable.slug }}">
- <h3><a href="{{ timetable.url }}">{{ timetable.name }}</a></h3>
- <ul>{% for group in groups %}{% if group.timetable.id == timetable.id %}
- <li><a class="text"{% if group.weeks is not None %} href="{% url "timetable" timetable.slug group.slug %}"{% endif %}>{{ group.name }}</a> &ndash; {% for week in group.weeks %}<a href="{% url "timetable" timetable.slug group.slug week.year week|dt_week %}">{{ week|dt_prettyprint }}</a> {% empty %}<em>aucun cours</em>{% endfor %}</li>{% endif %}{% endfor %}
- </ul>
- </section>{% endfor %}{% endblock %}
+ <div class="content">
+ {% block body %}
+ <h3>Choisissez votre année</h3>
+ <ul>
+ {% for year in years %}
+ <li><a href="{% url "mentions" year.slug %}">{{ year }}</a></li>
+ {% empty %}
+ <p><em>Aucun emploi du temps à afficher</em></p>
+ {% endfor %}
+ </ul>
+ {% endblock %}
</div>
<footer>
<p>(c) 2017 &ndash; Alban Gruin<br />