diff --git a/templates/index.html b/templates/index.html index 96eb310381d8dfd72cab5bce3a85e11a272817cb..432f853523f83432bbbb700ab5e206958e2b7e30 100644 --- a/templates/index.html +++ b/templates/index.html @@ -30,7 +30,7 @@ <a class="btn btn-default" href="{{url_for("update_protocol", protocol_id=protocol.id)}}">Protokoll editieren</a> {% endif %} {% if protocol.has_compiled_document() %} - <a class="btn btn-success" href="{{url_for("download_document", document_id=protocol.get_compiled_document().id)}}">Download</a> + <a class="btn btn-success" href="{{url_for("download_document", document_id=protocol.get_compiled_document(private=show_private).id)}}">Download</a> {% endif %} </div> <h2>Protokoll: {{protocol.protocoltype.name}} {% if protocol.date is not none %}vom {{protocol.date|datify}}{% endif %}</h2>