chg: Improve redirects on index

pull/67/head
Raphaël Vinot 2020-02-04 19:15:44 +01:00
parent 4234e44470
commit 62ff47c3f1
2 changed files with 8 additions and 10 deletions

View File

@ -14,7 +14,7 @@
<th>Page title</th> <th>Page title</th>
<th>Initial URL</th> <th>Initial URL</th>
<th>Initial redirects</th> <th>Initial redirects</th>
<tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for uuid, page_title, date, time, url, redirects in titles %} {% for uuid, page_title, date, time, url, redirects in titles %}
@ -26,11 +26,13 @@
<td>{{ url }}</td> <td>{{ url }}</td>
<td> <td>
{% if redirects %} {% if redirects %}
<ul>
{% for r in redirects %} {% for r in redirects %}
<li>{{ r }}</li> {{ r }}
{% if loop.nextitem %}
</br>{{ ("&nbsp;" * (loop.index *2) )|safe }}↪
{%endif%}
{% endfor %} {% endfor %}
</ul>
{% else%} {% else%}
No redirect No redirect
{%endif%} {%endif%}

View File

@ -20,14 +20,10 @@
{% endblock %} {% endblock %}
</head> </head>
<body> <body>
<!-- Your page contont --> <!-- Your page content -->
<!-- <div class="container-fluid">
<div class="container">
-->
{% block content %}{% endblock%} {% block content %}{% endblock%}
<!--
</div> </div>
-->
{% block scripts %} {% block scripts %}
<!-- Optional JavaScript --> <!-- Optional JavaScript -->