diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/group_list.html | 2 | ||||
-rw-r--r-- | templates/subscribe.html | 2 | ||||
-rw-r--r-- | templates/timetable.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/group_list.html b/templates/group_list.html index d8d7227..2530865 100644 --- a/templates/group_list.html +++ b/templates/group_list.html @@ -5,7 +5,7 @@ <h3><a href="{{ timetable.url }}">{{ timetable }}</a></h3> <ul> {% for group in groups %} - <li><a class="text"{% if group.weeks is not None %} href="{% url "timetable" timetable.slug group.slug %}"{% endif %}>{{ group }}</a> – {% 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> + <li><a class="text"{% if group.weeks is not None %} href="{% url "timetable" timetable.year.slug timetable.slug group.slug %}"{% endif %}>{{ group }}</a> – {% for week in group.weeks %}<a href="{% url "timetable" timetable.year.slug timetable.slug group.slug week.year week|dt_week %}">{{ week|dt_prettyprint }}</a> {% empty %}<em>aucun cours</em>{% endfor %}</li> {% endfor %} </ul> {% endblock %} diff --git a/templates/subscribe.html b/templates/subscribe.html index 1c1bc3a..5e885df 100644 --- a/templates/subscribe.html +++ b/templates/subscribe.html @@ -4,7 +4,7 @@ {% block body %} <h2>S'abonner à {{ group.timetable.name }} – {{ group.name }}</h2> - <form action="{% url "subscribe" group.timetable.slug group.slug year week %}" method="post"> + <form action="{% url "subscribe" group.timetable.year.slug group.timetable.slug group.slug year week %}" method="post"> {% csrf_token %} {{ form }} <input type="submit" value="S'abonner" /> diff --git a/templates/timetable.html b/templates/timetable.html index 149068d..a867fd0 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -16,4 +16,4 @@ </li>{% endfor %} </ul> </section>{% endfor %} - <p><a class="subscribe" href="{% url "subscribe" group.timetable.slug group.slug year week %}">S’abonner à cet emploi du temps</a></p>{% endblock %} + <p><a class="subscribe" href="{% url "subscribe" group.timetable.year.slug group.timetable.slug group.slug year week %}">S’abonner à cet emploi du temps</a></p>{% endblock %} |