Skip to content
Snippets Groups Projects
Verified Commit 794946dc authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Show announcements in "My plan"

Closes "My Plan" in #63
parent 948bc4d1
No related branches found
No related tags found
1 merge request!41Show announcements in timetable views
......@@ -26,7 +26,7 @@
<div class="row nomargin">
<div class="col m12 s12 l6 xl4">
{# {% include "timetable/hintsinplan.html" %}#}
{% include "core/announcements.html" with announcements=announcements %}
</div>
</div>
......
......@@ -77,6 +77,7 @@ def my_timetable(
context["day"] = wanted_day
context["periods"] = TimePeriod.get_times_dict()
context["smart"] = True
context["announcements"] = Announcement.for_timetables().at_date(wanted_day).for_person(person)
context["url_prev"], context["url_next"] = TimePeriod.get_prev_next_by_day(
wanted_day, "my_timetable_by_date"
......
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