/db/calendar?highlight
support useful for additions made from /extra scripts
This commit is contained in:
parent
7262d14b83
commit
52ae0acf8a
1 changed files with 7 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
||||||
{{super()}}
|
{{super()}}
|
||||||
<style>
|
<style>
|
||||||
.soft-highlight { background-color: rgba(230, 230, 118, 0.36); }
|
.soft-highlight { background-color: rgba(230, 230, 118, 0.36); }
|
||||||
|
.alarm-highlight { background-color: #e1fe84; }
|
||||||
time { transition: background-color 500ms; font-weight: bold; }
|
time { transition: background-color 500ms; font-weight: bold; }
|
||||||
li.alarm .alarm-actions { display: none; }
|
li.alarm .alarm-actions { display: none; }
|
||||||
</style>
|
</style>
|
||||||
|
@ -27,10 +28,12 @@ li.alarm .alarm-actions { display: none; }
|
||||||
<div>
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
{% for alarm, actions in days[day][t] %}
|
{% for alarm, actions in days[day][t] %}
|
||||||
<li class="alarm" data-alarmid="{{alarm.eid}}" data-actions="{{alarm.actions|join(',')}}">
|
<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>
|
<time>{{t.time()}}</time>
|
||||||
{{alarm.nick}}
|
{{alarm.nick}}
|
||||||
<div class="alarm-actions">{% for a in actions %}{{a.nick}}{%endfor%}</div>
|
<div class="alarm-actions">
|
||||||
|
{% for a in actions %}{{a.nick}}{%endfor%}
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue