Commit 90fbc780 authored by Benjamin Hättasch's avatar Benjamin Hättasch

Improve AK beamer plan UI

Fix room color
Fix clock bar
Add links to detail pages
parent c1ce8bab
......@@ -24,6 +24,7 @@ background: linear-gradient(to right, rgba(100,255,255,0.0) 0%,rgba(100,255,255,
{% if is_white %}
div.event a{color:black;}
body{background:#ddd!important;color:#555;}
h4 {color: white;}
.dateheader h4 {color: white;}
table tr:nth-child(even) { background:#e7e7e7; }
{% endif %}
......@@ -55,7 +56,7 @@ table tr:nth-child(even) { background:#e7e7e7; }
<div class="event"
style="margin-left:{{slot.leftpixels|unlocalize}}px;width:{{slot.widthpixels|unlocalize}}px;
border-top: 5px solid {{slot.ak.color}}; background-color: {{slot.red}};">
<a href="">{{ slot.ak.short_name }}</a></div>
<a href="{% url "submit:ak_detail" event_slug="kif475" pk=slot.ak.pk %}">{{ slot.ak.short_name }}</a></div>
{% endif %}{% endfor %}
</td>
{% endfor %}
......
......@@ -65,7 +65,7 @@ def plan_beamer(request, *args, **kwargs):
# TODO Hide instead (and make ak wall wider?)
nowsliderpos += daywidth
elif now.date() == daydate:
nowsliderpos += max(0, min(daywidth, ((timezone.localtime(now) - daystart).total_seconds() * pixpersec)))
nowsliderpos += max(0, min(daywidth, ((timezone.localtime(now) + datetime.timedelta(hours=1) - daystart).total_seconds() * pixpersec)))
for slot in slots:
if slot.start.date() == daydate:
secsfromstart = (slot.start - daystart).total_seconds()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment