mirror of https://github.com/CIRCL/lookyloo
chg: Remove download screenshot button from left menu, add in overlay
parent
f7dac21e71
commit
13e1614f5b
|
@ -160,9 +160,6 @@
|
||||||
<a href="#/" role="button" onclick="UnbookmarkAllNodes();">Unbookmark all nodes</a>
|
<a href="#/" role="button" onclick="UnbookmarkAllNodes();">Unbookmark all nodes</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li>
|
|
||||||
<a href="{{ url_for('image', tree_uuid=tree_uuid) }}" role="button">Download screenshot</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<a href="#screenshotModal" data-toggle="modal" data-target="#screenshotModal" role="button">Show screenshot</a>
|
<a href="#screenshotModal" data-toggle="modal" data-target="#screenshotModal" role="button">Show screenshot</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -329,12 +326,13 @@
|
||||||
{% if screenshot_size > 10 * 1024 * 1024 %}
|
{% 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>.
|
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 %}
|
{% else %}
|
||||||
|
<a href="{{ url_for('image', tree_uuid=tree_uuid) }}" role="button" class="btn btn-info">Download screenshot</a>
|
||||||
{% if blur_screenshot %}
|
{% if blur_screenshot %}
|
||||||
<button type="button" class="btn btn-info" onclick="$('#screenshot').removeClass('blur')"> Unblur screenshot</button>
|
<button type="button" class="btn btn-info" onclick="$('#screenshot').removeClass('blur')"> Unblur screenshot</button>
|
||||||
|
{% endif %}
|
||||||
</br>
|
</br>
|
||||||
</hr>
|
</hr>
|
||||||
</br>
|
</br>
|
||||||
{% endif %}
|
|
||||||
<img src="{{ url_for('image', tree_uuid=tree_uuid) }}" class="img-fluid {{ 'blur' if blur_screenshot else '' }}" id="screenshot"/>
|
<img src="{{ url_for('image', tree_uuid=tree_uuid) }}" class="img-fluid {{ 'blur' if blur_screenshot else '' }}" id="screenshot"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</center>
|
</center>
|
||||||
|
|
Loading…
Reference in New Issue