Skip to content

Commit

Permalink
Show 'Manage timetable' in session display (indico#5558)
Browse files Browse the repository at this point in the history
For session coordinators, the button is only visible on the
session list page but not in the session page itself.
  • Loading branch information
tomasr8 authored Nov 3, 2022
1 parent 444d1bf commit 4ec8d6c
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@

{% block page_actions -%}
<div class="toolbar">
{% if sess.can_manage(session.user) -%}
<div class="group">
<div class="group">
{% if sess.can_manage(session.user) -%}
<button class="i-button icon-edit"
title="{% trans %}Edit session{% endtrans %}"
data-title="{% trans %}Edit session{% endtrans %}"
Expand All @@ -56,11 +56,13 @@
data-href="{{ url_for('.session_protection', sess) }}"
data-ajax-dialog
data-reload-after></button>
{%- endif %}
{% if sess.can_manage(session.user, 'coordinate') -%}
<a href="{{ url_for('timetable.manage_session', sess) }}"
class="i-button icon-time"
title="{% trans %}Manage timetable{% endtrans %}"></a>
</div>
{%- endif %}
{%- endif %}
</div>
<div class="group">
<a href="{{ url_for('sessions.export_session_timetable', sess) }}" class="i-button icon-file-pdf" title="{% trans %}Export to PDF{% endtrans %}"></a>
{% if sess.start_dt -%}
Expand Down

0 comments on commit 4ec8d6c

Please sign in to comment.