diff --git a/src/program/templates/schedule_overview.html b/src/program/templates/schedule_overview.html index 8d90a90b..6cc55748 100644 --- a/src/program/templates/schedule_overview.html +++ b/src/program/templates/schedule_overview.html @@ -1,5 +1,7 @@ {% extends 'schedule_base.html' %} +{% load commonmark %} + {% block schedule_content %} {% if eventinstances %} {% for day in camp.camp_days %} @@ -9,7 +11,10 @@ {% if eventinstance.schedule_date == day.lower.date %} + style="background-color: {{ eventinstance.event.event_type.color }}; color: {% if eventinstance.event.event_type.light_text %}white{% else %}black{% endif %};" + data-toggle="modal" + data-target="#{{ eventinstance.event.slug }}" + data-remote=false> {{ eventinstance.when.lower|date:"H:i" }} - {{ eventinstance.when.upper|date:"H:i" }} &#x{{ eventinstance.location.icon }};
@@ -17,6 +22,26 @@
{% endif %} + + + {% endfor %}
diff --git a/src/program/views.py b/src/program/views.py index 9d0b12d1..c521f283 100644 --- a/src/program/views.py +++ b/src/program/views.py @@ -234,7 +234,7 @@ class ScheduleView(CampViewMixin, TemplateView): def get_context_data(self, *args, **kwargs): context = super(ScheduleView, self).get_context_data(**kwargs) - eventinstances = models.EventInstance.objects.filter(event__in=self.camp.events.all()) + eventinstances = models.EventInstance.objects.filter(event__in=self.camp.events.all()).select_related() type_slug = self.request.GET.get('type', None) location_slug = self.request.GET.get('location', None) diff --git a/src/static_src/css/bornhack.css b/src/static_src/css/bornhack.css index ce450703..a77c70eb 100644 --- a/src/static_src/css/bornhack.css +++ b/src/static_src/css/bornhack.css @@ -93,9 +93,13 @@ footer { } .event { - width: 200px; padding: 5px; vertical-align: top; + margin: 5px; + max-width: 200px; + min-height: 100px; + flex-grow: 1; + border: 1px solid black; } @media (max-width: 520px) {