Add link to /new/ on index in edit mode

This commit is contained in:
Tim Van Baak 2021-02-21 19:31:36 -08:00
parent f663291067
commit b0d14a89ca
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,10 @@ window.onload = function () {
{% block page_content %}
<div id="tabs">
{%- if index and edit -%}
<div id="new-document" class="tab"><a href="/new/">new</a></div>
{%- endif -%}
{%- for tab in document -%}
{%- if not tab.options.private or edit-%}
{{ make_content_tab(tab, loop.first) }}