From 7b2ff59beed06bc4607868bead2c9c9c7606a14a Mon Sep 17 00:00:00 2001
From: olivier <>
Date: Thu, 10 May 2007 16:42:12 +0000
Subject: [PATCH] use named urls, add paging to collection, and others
---
telemeta/templates/admin.html | 2 +-
telemeta/templates/base.html | 8 +--
telemeta/templates/collection_detail.html | 6 +-
telemeta/templates/collection_list.html | 11 ++--
telemeta/templates/dictionary_edit.html | 6 +-
telemeta/templates/dictionary_edit_value.html | 2 +-
telemeta/templates/dictionary_list.html | 14 -----
telemeta/templates/media_item.html | 29 ----------
telemeta/templates/mediaitem_detail.html | 7 ++-
telemeta/templates/mediaitem_list.html | 2 +-
telemeta/templates/search_results.html | 4 +-
telemeta/urls.py | 58 ++++++++++++-------
telemeta/views/web.py | 1 +
13 files changed, 64 insertions(+), 86 deletions(-)
delete mode 100644 telemeta/templates/dictionary_list.html
delete mode 100644 telemeta/templates/media_item.html
diff --git a/telemeta/templates/admin.html b/telemeta/templates/admin.html
index e335b3cf..8de5c33a 100644
--- a/telemeta/templates/admin.html
+++ b/telemeta/templates/admin.html
@@ -17,7 +17,7 @@
{%ifequal d.id dictionary_id %}
diff --git a/telemeta/templates/collection_detail.html b/telemeta/templates/collection_detail.html
index 31cbb4e4..686a7f76 100644
--- a/telemeta/templates/collection_detail.html
+++ b/telemeta/templates/collection_detail.html
@@ -5,21 +5,19 @@
Collection: {{ object.title }}
{% for field in object.list %}
- {% ifnotequal field.name "id" %}
{% ifnotequal field.name "title" %}
- {{ field.name }} : {{ field.value }}
{% endifnotequal %}
- {% endifnotequal %}
{% endfor %}
Items
{% for item in object.items.all %}
- - {{ item.creator }} - {{ items.title }}
- View
+
- {{ item.creator }} - {{ item.title }}
+ View
Edit
{% endfor %}
diff --git a/telemeta/templates/collection_list.html b/telemeta/templates/collection_list.html
index d70c35b2..e02ad1dc 100644
--- a/telemeta/templates/collection_list.html
+++ b/telemeta/templates/collection_list.html
@@ -1,13 +1,16 @@
{% extends "base.html" %}
-
+{% load telemeta_utils %}
{% block content %}
Collections
{% if object_list %}
+ Records {{ first_on_page }} to {{ last_on_page }} on {{ hits }}
+
+ {% if has_previous %} << {% endif %}
+ {% if has_next %} >> {% endif %}
+
diff --git a/telemeta/templates/dictionary_edit.html b/telemeta/templates/dictionary_edit.html
index e5a7b3a4..93072dc0 100644
--- a/telemeta/templates/dictionary_edit.html
+++ b/telemeta/templates/dictionary_edit.html
@@ -6,7 +6,7 @@