diff --git a/templates/protocol-show.html b/templates/protocol-show.html index d5bf5dbc8306d9aed4b5835e918de94576ab5c30..bcd8bcdb37ff44b010399e1ff68c0889480995b9 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>