Hide view tabs and move raw button for sourcedocs.

This commit is contained in:
Edward Betts 2018-06-04 17:27:01 +01:00
parent 51bca111c2
commit 3569cc76d5

View file

@ -34,6 +34,7 @@
</div>
{% endif %}
{% if doc.type != 'sourcedoc' %}
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" href="{{ doc.url }}">View</a>
@ -56,6 +57,7 @@
<a class="nav-link" href="{{ request.url }}/raw">Raw</a>
</li>
</ul>
{% endif %}
<h1 class="mt-3">{{ self.title() }}
{% if current_user.is_authenticated and doc.user == current_user %}
@ -96,6 +98,7 @@
</div>
{% if not version and doc.type == 'sourcedoc' and not span_length %}
<a class="btn btn-primary" href="{{ request.url }}/raw">raw</a>
<button id="show-span-selector" class="btn btn-primary">show span selector</button>
<button id="select-all" class="btn btn-primary">get entire document span</button>
<p id="span-selector" class="d-none">span: <span id="span"></span></p>