forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff_schedules.html
More file actions
49 lines (49 loc) · 2.16 KB
/
diff_schedules.html
File metadata and controls
49 lines (49 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{% extends "base.html" %}
{# Copyright The IETF Trust 2020, All Rights Reserved #}
{% load origin %}
{% load ietf_filters %}
{% load django_bootstrap5 %}
{% block title %}Differences between Meeting Agendas for IETF {{ meeting.number }}{% endblock %}
{% block content %}
{% origin %}
<h1>
Differences between Meeting Agendas
<br>
<small class="text-muted">IETF {{ meeting.number }}</small>
</h1>
<form method="get" class="my-3">
{% bootstrap_form form layout="horizontal" %}
{% bootstrap_button "Show differences" button_type="submit" button_class="btn-primary" %}
</form>
{% if diffs != None %}
<h2 class="mt-4">
Differences from {{ from_schedule.name }} ({{ from_schedule.owner }}) to {{ to_schedule.name }} ({{ to_schedule.owner }})
</h2>
{% if diffs %}
<table class="table table-sm table-striped schedule-diffs">
<thead>
<tr>
<th></th>
</tr>
</thead>
<tbody>
{% for d in diffs %}
<tr>
<td>
{% if d.change == 'schedule' %}
Scheduled <b>{{ d.session.session_label }}</b> to <b>{{ d.to.time|date:"l G:i" }} at {{ d.to.location.name }}</b>
{% elif d.change == 'move' %}
Moved <b>{{ d.session.session_label }}</b> from {{ d.from.time|date:"l G:i" }} at {{ d.from.location.name }} to <b>{{ d.to.time|date:"l G:i" }} at {{ d.to.location.name }}</b>
{% elif d.change == 'unschedule' %}
Unscheduled <b>{{ d.session.session_label }}</b> from {{ d.from.time|date:"l G:i" }} at {{ d.from.location.name }}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
No differences in scheduled sessions found.
{% endif %}
{% endif %}
{% endblock %}