Browse Source

Enable pagination in hosts browsing

pull/1/head
Hidden Z 14 years ago
parent
commit
92098bf0c7
  1. 4
      pyi2phosts/templates/browse.html
  2. 1
      pyi2phosts/urls.py

4
pyi2phosts/templates/browse.html

@ -8,4 +8,8 @@ @@ -8,4 +8,8 @@
{{ host.description }}</td></tr>
{% endfor %}
</table>
{% if is_paginated %}
{% load paginator %}{% paginator 3 %}
{% endif %}
{% endblock %}

1
pyi2phosts/urls.py

@ -24,6 +24,7 @@ browse_hosts = { @@ -24,6 +24,7 @@ browse_hosts = {
'queryset': i2phost.objects.filter(activated=True).order_by("-last_seen"),
'template_name': 'browse.html',
'template_object_name': 'host',
'paginate_by': 40,
}
urlpatterns = patterns('',

Loading…
Cancel
Save