20 lines
725 B
HTML
20 lines
725 B
HTML
{% extends 'layout.html' %}
|
|
{% block body %}
|
|
<h2>List of URLs</h2>
|
|
<ul>
|
|
{%- for url in pagination.entries %}
|
|
<li><a href="{{ url.short_url|e }}">{{ url.uid|e }}</a> »
|
|
<small>{{ url.target|urlize(38, true) }}</small></li>
|
|
{%- else %}
|
|
<li><em>no URLs shortened yet</em></li>
|
|
{%- endfor %}
|
|
</ul>
|
|
<div class="pagination">
|
|
{%- if pagination.has_previous %}<a href="{{ pagination.previous }}">« Previous</a>
|
|
{%- else %}<span class="inactive">« Previous</span>{% endif %}
|
|
| {{ pagination.page }} |
|
|
{% if pagination.has_next %}<a href="{{ pagination.next }}">Next »</a>
|
|
{%- else %}<span class="inactive">Next »</span>{% endif %}
|
|
</div>
|
|
{% endblock %}
|