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; border-width: 1px;
} }
#timestamp { table {
text-align: right; table-layout: fixed;
color: gray; }
font-size: small;
table td{
overflow: hidden;
text-overflow: ellipsis;
} }

View File

@ -4,18 +4,24 @@
{% block content %} {% block content %}
<center> <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> </br></br>
</center> </center>
<center> <center>
<div class="table-responsive"> <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> <thead>
<tr> <tr>
<th data-field="title" data-width="200">Page title</th> <th data-width="200">Page</th>
<th data-flield="url" data-width="75">Initial URL</th> <th data-width="80">Timestamp</th>
<th data-field="redirects" data-width="75">Initial redirects</th> <th data-width="200">Redirects</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -23,9 +29,9 @@
<tr> <tr>
<td> <td>
<a href="{{ url_for('tree', tree_uuid=uuid) }}">{{ page_title }}</a> <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>
<td>{{ url }}</td> <td>{{ date }} {{ time }}</td>
<td> <td>
{% if redirects %} {% if redirects %}
{% for r in redirects %} {% for r in redirects %}

View File

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

View File

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