chg: Remove download screenshot button from left menu, add in overlay

pull/167/head
Raphaël Vinot 2021-02-04 14:56:09 +01:00
parent f7dac21e71
commit 13e1614f5b
1 changed files with 2 additions and 4 deletions

View File

@ -160,9 +160,6 @@
<a href="#/" role="button" onclick="UnbookmarkAllNodes();">Unbookmark all nodes</a>
</li>
{% endif %}
<li>
<a href="{{ url_for('image', tree_uuid=tree_uuid) }}" role="button">Download screenshot</a>
</li>
<li>
<a href="#screenshotModal" data-toggle="modal" data-target="#screenshotModal" role="button">Show screenshot</a>
</li>
@ -329,12 +326,13 @@
{% if screenshot_size > 10 * 1024 * 1024 %}
Image too big ({{ sizeof_fmt(screenshot_size) }}) to display in the browser, <a href="{{ url_for('image', tree_uuid=tree_uuid) }}" role="button">click here to download it</a>.
{% else %}
<a href="{{ url_for('image', tree_uuid=tree_uuid) }}" role="button" class="btn btn-info">Download screenshot</a>
{% if blur_screenshot %}
<button type="button" class="btn btn-info" onclick="$('#screenshot').removeClass('blur')"> Unblur screenshot</button>
{% endif %}
</br>
</hr>
</br>
{% endif %}
<img src="{{ url_for('image', tree_uuid=tree_uuid) }}" class="img-fluid {{ 'blur' if blur_screenshot else '' }}" id="screenshot"/>
{% endif %}
</center>