Hide view tabs and move raw button for sourcedocs.
This commit is contained in:
parent
51bca111c2
commit
3569cc76d5
|
@ -34,6 +34,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if doc.type != 'sourcedoc' %}
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link active" href="{{ doc.url }}">View</a>
|
<a class="nav-link active" href="{{ doc.url }}">View</a>
|
||||||
|
@ -56,6 +57,7 @@
|
||||||
<a class="nav-link" href="{{ request.url }}/raw">Raw</a>
|
<a class="nav-link" href="{{ request.url }}/raw">Raw</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<h1 class="mt-3">{{ self.title() }}
|
<h1 class="mt-3">{{ self.title() }}
|
||||||
{% if current_user.is_authenticated and doc.user == current_user %}
|
{% if current_user.is_authenticated and doc.user == current_user %}
|
||||||
|
@ -96,6 +98,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if not version and doc.type == 'sourcedoc' and not span_length %}
|
{% 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="show-span-selector" class="btn btn-primary">show span selector</button>
|
||||||
<button id="select-all" class="btn btn-primary">get entire document span</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>
|
<p id="span-selector" class="d-none">span: <span id="span"></span></p>
|
||||||
|
|
Loading…
Reference in a new issue