1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-09 14:28:03 +00:00
py-i2phosts/pyi2phosts/templates/browse.html

38 lines
1.3 KiB
HTML
Raw Normal View History

2010-11-06 19:11:08 +00:00
{% extends "base.html" %}
{% load i18n %}
2010-11-06 19:11:08 +00:00
2011-02-17 18:52:51 +00:00
{% block header %}
<h3>{% trans "All active hosts in I2P" %}
<a href={% url 'browse-rss' %}><img src="/static/rss-grey-18.png" border="0" width="18" height="18" alt="rss"></a></h3>
2011-02-17 18:52:51 +00:00
{% endblock %}
2010-11-06 19:11:08 +00:00
{% block content %}
2015-10-26 18:45:39 +00:00
{% block table_header %}
2010-11-06 19:11:08 +00:00
<table>
2015-10-26 18:45:39 +00:00
<tr><td><a href="?order=name">{% trans "Host" %}</a></td><td><a href="?order=last_seen">{% trans "Last seen" %}</a></td><td><a href="?order=date_added">{% trans "Date added" %}</a></td><td>{% trans "Description" %}</td></tr>
{% endblock table_header %}
2015-10-26 18:55:35 +00:00
{% for host in host_list %}
<tr><td><a href="http://{{ host.name }}/?i2paddresshelper={{host.b64hash}}">{{ host.name }}</a></td><td>{{ host.last_seen }}</td>
<td>{{ host.date_added }}</td><td>{{ host.description }}</td></tr>
{% endfor %}
2010-11-06 19:11:08 +00:00
</table>
2010-11-06 21:14:39 +00:00
{% if is_paginated %}
<div class="pager">
{% if page_obj.has_previous %}
<span class="page">
2015-10-26 18:45:39 +00:00
<a href="?page={{ page_obj.previous_page_number }}&order={{ order }}">&lt; Prev</a>
</span>
{% endif %}
<span class="current">Page {{ page_obj.number }} of {{ paginator.num_pages }}</span>
{% if page_obj.has_next %}
2015-10-26 18:45:39 +00:00
<span class="page"><a href="?page={{ page_obj.next_page_number }}&order={{ order }}">Next &gt;</a></span>
{% endif %}
{{ paginator.count }} {% trans "hosts total" %}
2010-11-06 21:14:39 +00:00
{% endif %}
2011-02-17 18:52:51 +00:00
2010-11-06 19:11:08 +00:00
{% endblock %}