chg: Improve index, move things around.

pull/67/head
Raphaël Vinot 2020-02-10 01:55:03 +01:00
parent 6fbc6f6ead
commit bc1b1f6787
4 changed files with 22 additions and 13 deletions

View File

@ -112,8 +112,11 @@ hr {
border-width: 1px;
}
#timestamp {
text-align: right;
color: gray;
font-size: small;
table {
table-layout: fixed;
}
table td{
overflow: hidden;
text-overflow: ellipsis;
}

View File

@ -4,18 +4,24 @@
{% block content %}
<center>
<h2><a href="{{ url_for('scrape_web') }}">Use Lookyloo to scrape a page</a></h2>
<a href="{{ url_for('scrape_web') }}">
<img src="{{ url_for('static', filename='lookyloo.jpeg') }}"
alt="Lookyloo" width="200">
</a>
</center>
<center>
<h2><a href="{{ url_for('scrape_web') }}">Start a new capture</a></h2>
</br></br>
</center>
<center>
<div class="table-responsive">
<table id="table" class="table" data-toggle="table" data-search="true" data-show-columns="true">
<table id="table" class="table" data-toggle="table" data-search="true">
<thead>
<tr>
<th data-field="title" data-width="200">Page title</th>
<th data-flield="url" data-width="75">Initial URL</th>
<th data-field="redirects" data-width="75">Initial redirects</th>
<th data-width="200">Page</th>
<th data-width="80">Timestamp</th>
<th data-width="200">Redirects</th>
</tr>
</thead>
<tbody>
@ -23,9 +29,9 @@
<tr>
<td>
<a href="{{ url_for('tree', tree_uuid=uuid) }}">{{ page_title }}</a>
<div id="timestamp"> <b>{{ date }}</b> {{ time }}</div>
<div id="url">{{ url }}</div>
</td>
<td>{{ url }}</td>
<td>{{ date }} {{ time }}</td>
<td>
{% if redirects %}
{% for r in redirects %}

View File

@ -21,7 +21,7 @@
</head>
<body>
<!-- Your page content -->
<div class="container-fluid">
<div class="container">
{% block content %}{% endblock%}
</div>

View File

@ -5,7 +5,7 @@
<div class="container">
<center>
<img src="{{ url_for('static', filename='lookyloo.jpeg') }}"
alt="Lookyloo" width="500">
alt="Lookyloo" width="400">
</center>
</br>
<form role="form" action="scrape" method=post enctype=multipart/form-data>