diff --git a/templates/protocol-show.html b/templates/protocol-show.html index 1316ede0991847e359e163fbd4cc0b0843d8d818..0fa1e30bb8d4eb5c1fef9033a5ec4600f7f03e43 100644 --- a/templates/protocol-show.html +++ b/templates/protocol-show.html @@ -43,8 +43,8 @@ <a class="btn btn-success" href="{{url_for("download_document", document_id=protocol.get_compiled_document().id)}}">Download</a> {% endif %} {% if has_admin_right %} - <a class="btn btn-default" href="{{url_for("recompile_protocol", protocol_id=protocol.id)}}">Neu kompilieren</a> - <a class="btn btn-danger" href="{{url_for("delete_protocol", protocol_id=protocol.id)}}" onclick="return confirm('Bist du dir sicher, dass du das Protokoll {{protocol.get_identifier()}} löschen möchtest?');">Löschen</a> + <a class="btn btn-default" href="{{url_for("recompile_protocol", protocol_id=protocol.id)}}">Neu kompilieren</a> + <a class="btn btn-danger" href="{{url_for("delete_protocol", protocol_id=protocol.id)}}" onclick="return confirm('Bist du dir sicher, dass du das Protokoll {{protocol.get_identifier()}} löschen möchtest?');">Löschen</a> {% endif %} {% endif %} </div> @@ -67,7 +67,7 @@ {% for meta in protocol.metas %} <p><strong>{{meta.name}}:</strong> {{meta.value}}</p> {% endfor %} - {% endif %} + {% endif %} {% else %} {% if protocol.date is not none %}<p><strong>Geplant:</strong> {{protocol.date|datify_long}}{% endif %}</p> {% endif %} @@ -89,7 +89,11 @@ </li> {% endfor %} {% else %} - <li>Protokoll und Beschlüsse sind in einem eingeschränkten Netzwerk sichtbar.</li> + {% if protocol.public %} + <li>Protokoll und Beschlüsse sind in einem eingeschränkten Netzwerk sichtbar.</li> + {% else %} + <li>Das Protokoll ist noch nicht veröffentlicht.</li> + {% endif %} {% endif %} {% else %} <li>Keine Beschlüsse</li>