aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 9e454e3a5e4ca4367272fd2aaf7b046faee5d356 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{% load dt_week %}<!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;
}

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>
  </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" href="{% url "timetable" timetable.slug group.slug %}">{{ 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> {% endfor %}</li>{% endif %}{% endfor %}
        </ul>
      </section>{% endfor %}{% endblock %}
    </div>
    <footer>
      <p>(c) 2017 &ndash; Alban Gruin<br />
      Design inspiré par <a href="https://bestmotherfucking.website/">https://bestmotherfucking.website/</a></p>
    </footer>
  </body>
</html>