/db/calendar?highlight

support useful for additions made from /extra scripts
This commit is contained in:
boyska 2019-07-08 10:48:43 +02:00
parent 7262d14b83
commit 52ae0acf8a

View file

@ -8,6 +8,7 @@
{{super()}}
<style>
.soft-highlight { background-color: rgba(230, 230, 118, 0.36); }
.alarm-highlight { background-color: #e1fe84; }
time { transition: background-color 500ms; font-weight: bold; }
li.alarm .alarm-actions { display: none; }
</style>
@ -27,10 +28,12 @@ li.alarm .alarm-actions { display: none; }
<div>
<ul>
{% for alarm, actions in days[day][t] %}
<li class="alarm" data-alarmid="{{alarm.eid}}" data-actions="{{alarm.actions|join(',')}}">
<time>{{t.time()}}</time>
{{alarm.nick}}
<div class="alarm-actions">{% for a in actions %}{{a.nick}}{%endfor%}</div>
<li class="alarm {% if alarm.eid|string == request.args.get('highlight')%}alarm-highlight{%endif%}" data-alarmid="{{alarm.eid}}" data-actions="{{alarm.actions|join(',')}}">
<time>{{t.time()}}</time>
{{alarm.nick}}
<div class="alarm-actions">
{% for a in actions %}{{a.nick}}{%endfor%}
</div>
</li>
{% endfor %}
</ul>