From 6731730c035678abd212e4313e394eccd1628209 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 31 May 2018 14:59:31 +0100 Subject: [PATCH] Use cards in place of document table. --- sourcing/templates/home.html | 43 ++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/sourcing/templates/home.html b/sourcing/templates/home.html index 1dd66d4..5dc06c4 100644 --- a/sourcing/templates/home.html +++ b/sourcing/templates/home.html @@ -5,32 +5,37 @@ {% block content %}

{{ self.title() }}

- - - - - - - - - - +
+
+
+ item type
+ {% for item_type in 'xanadoc', 'xanalink', 'sourcedoc' %} +
+ {% endfor %} +
+
{% for doc in docs %} -
- - - - - +
+
{{ doc.title() }} + — {{ doc.user.username }} — {{ doc.created | datetime }}
+
+

+ {%- for line in doc.snippet().splitlines() -%} + {{ nbsp_at_start(line) }}
+ {%- endfor -%} +

+
+
{% endfor %} - -
itemtypeuserdate
{{ doc.title() }}{{ doc.type }}{{ doc.user.username }}{{ doc.created | datetime }}
+ + +

new source document new xanalink new xanadoc -{# +{# upload a source document #}