datatracker/ietf/templates/meeting/diff_schedules.html
Lars Eggert 9d5d9d5172
fix: replace deprecated bootstrap things (#5858)
* text-muted -> text-body-secondary

* navbar-dark is deprecated

* Remove FIXME block, not an issue anymore

* Remove `navbar-light`
2023-07-18 12:22:28 -05:00

49 lines
2.2 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2020, All Rights Reserved #}
{% load origin %}
{% load ietf_filters %}
{% load django_bootstrap5 tz %}
{% block title %}Differences between Meeting Agendas for IETF {{ meeting.number }}{% endblock %}
{% block content %}
{% origin %}
<h1>
Differences between Meeting Agendas
<br>
<small class="text-body-secondary">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 scope="col"></th>
</tr>
</thead>
<tbody>{% timezone meeting.time_zone %}
{% 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 %}
{% endtimezone %}</tbody>
</table>
{% else %}
No differences in scheduled sessions found.
{% endif %}
{% endif %}
{% endblock %}