chg: Slight refactoring of the HTML views

pull/62/head
Raphaël Vinot 2019-06-28 12:08:35 +02:00
parent 957fc15e12
commit 1af2aa88fa
2 changed files with 111 additions and 108 deletions

View File

@ -4,12 +4,13 @@
{% block content %}
<center>
<h2><a href="{{ url_for('scrape_web') }}">Scrape a page</a></h2></br></br>
<h2><a href="{{ url_for('scrape_web') }}">Scrape a page</a></h2>
</br></br>
</center>
<center>
{% for uuid, page_title in titles %}
<a href="{{ url_for('tree', tree_uuid=uuid) }}">{{ page_title }}</a></br>
</br>
<a href="{{ url_for('tree', tree_uuid=uuid) }}">{{ page_title }}</a>
</br></br>
{% endfor %}
</center>
{% endblock %}

View File

@ -100,7 +100,8 @@
</div>
<div style="display: inline;">
<button type="button" class="btn btn-link" data-toggle="collapse" data-target="#tree-details">
<img src="{{ url_for('static', filename='minimize1.jpg') }}" alt="Minimize tree details" height="25" width="25">
<img src="{{ url_for('static', filename='minimize1.jpg') }}"
alt="Minimize tree details" height="25" width="25">
</button>
</div>
</center>
@ -116,7 +117,8 @@
{%endif%}
<b>Screenshot</b>:
<a href="{{ url_for('image', tree_uuid=tree_uuid) }}" class="btn btn-info" role="button">Download</a>
<button id="screenshot_view_button" type="button" class="btn btn-info" data-toggle="collapse" data-target="#screenshot">View</button>
<button id="screenshot_view_button" type="button" class="btn btn-info"
data-toggle="collapse" data-target="#screenshot">View</button>
</br>
</div>
<div style="width: 100px;float: right;">