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

36 lines
1.1 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" %}
2011-02-17 18:52:51 +00:00
<a href={% url browse-rss %}><img src="/static/rss-grey-18.png" border="0" width="18" height="18" alt="rss"></a></h3>
{% endblock %}
2010-11-06 19:11:08 +00:00
{% block content %}
<table>
<tr><td>{% trans "Host" %}</td><td>{% trans "Last seen" %}</td><td>{% trans "Date added" %}</td><td>{% trans "Description" %}</td></tr>
2010-11-06 19:11:08 +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>
2010-11-06 19:11:08 +00:00
{% endfor %}
</table>
2010-11-06 21:14:39 +00:00
{% if is_paginated %}
<div class="pager">
{% if page_obj.has_previous %}
<span class="page">
<a href="?page={{ page_obj.previous_page_number }}">&lt; Prev</a>
</span>
{% endif %}
<span class="current">Page {{ page_obj.number }} of {{ paginator.num_pages }}</span>
{% if page_obj.has_next %}
<span class="page"><a href="?page={{ page_obj.next_page_number }}">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 %}