From 66535e5cde6e1388dd5f22da2bb045c82b59678b Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Mon, 6 Mar 2017 19:44:21 +0100 Subject: [PATCH] Show only useful etherpad buttons --- templates/protocol-show.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/protocol-show.html b/templates/protocol-show.html index d5bf5db..bcd8bcd 100644 --- a/templates/protocol-show.html +++ b/templates/protocol-show.html @@ -15,18 +15,18 @@ {% if has_modify_right %} <div class="btn-group"> {% if has_modify_right %} - {% if config.ETHERPAD_ACTIVE %} + {% if config.ETHERPAD_ACTIVE and not protocol.public %} <a class="btn {% if protocol.source is none %}btn-primary{% else %}btn-default{% endif %}" href="{{url_for("etherpull_protocol", protocol_id=protocol.id)}}">Aus Etherpad</a> {% endif %} {% if protocol.source is not none %} <a class="btn btn-primary" href="{{url_for("get_protocol_source", protocol_id=protocol.id)}}">Quelltext</a> {% endif %} <a class="btn {% if protocol.is_done() %}btn-success{% else %}btn-default{% endif %}" href="{{url_for("update_protocol", protocol_id=protocol.id)}}">Editieren</a> + {% if config.ETHERPAD_ACTIVE %} + <a class="btn btn-primary" href="{{url_for("etherpush_protocol", protocol_id=protocol.id)}}">Etherpad</a> + {% endif %} {% if not protocol.is_done() %} <a class="btn btn-default" href="{{url_for("get_protocol_template", protocol_id=protocol.id)}}">Vorlage</a> - {% if config.ETHERPAD_ACTIVE %} - <a class="btn btn-primary" href="{{url_for("etherpush_protocol", protocol_id=protocol.id)}}">Etherpad</a> - {% endif %} {% else %} {% if config.MAIL_ACTIVE %} <a class="btn btn-default" href="{{url_for("send_protocol", protocol_id=protocol.id)}}">Mail versenden</a> -- GitLab