From cb3ae7d3a93ac5d04f927a7f1654e88c9beea27f Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 4 Jun 2018 07:45:18 +0100 Subject: [PATCH] More facets, show matching document numbers. --- sourcing/templates/home.html | 59 +++++++++++++++++++++++++++++------- sourcing/view.py | 9 +++++- 2 files changed, 56 insertions(+), 12 deletions(-) diff --git a/sourcing/templates/home.html b/sourcing/templates/home.html index 0bc3eaf..16c194f 100644 --- a/sourcing/templates/home.html +++ b/sourcing/templates/home.html @@ -16,28 +16,52 @@

{{ self.title() }}

- {{ new_buttons() }}
- item type
+
+
item type
{% for item_type in 'xanadoc', 'xanalink', 'sourcedoc' %} - -
+
+ + +
{% endfor %} - user
+
user
{% for item_user in users %} - -
+
+ +
+
{% endfor %} - link type
+
link type
{% for link_type in link_types %} - -
+
+ +
+
{% endfor %} +
years
+ {% for year in years %} +
+ +
+
+ {% endfor %} +
+
+ +
+ {{ new_buttons() }} +
+ +

{{ docs.count() }} documents

+ + + {% for doc in docs %}
{{ doc.title() }} @@ -51,7 +75,9 @@
{% endfor %} +
{{ new_buttons() }} +
@@ -60,15 +86,26 @@ {% block scripts %}