From 3feca92d555efe026ea3cd5ff8086c4582745583 Mon Sep 17 00:00:00 2001 From: tobes Date: Fri, 10 Aug 2012 10:00:02 +0100 Subject: [PATCH] First draft of index page --- ckanext/harvest/templates_new/index.html | 93 ++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 ckanext/harvest/templates_new/index.html diff --git a/ckanext/harvest/templates_new/index.html b/ckanext/harvest/templates_new/index.html new file mode 100644 index 0000000..d7ebd10 --- /dev/null +++ b/ckanext/harvest/templates_new/index.html @@ -0,0 +1,93 @@ +{% extends "page.html" %} + +{% block title %}{{ _('Harvesting Sources') }} - {{ super() }}{% endblock %} + +{% block breadcrumb_content %} +{% endblock %} + +{% block primary %} +
+
+

Harvesting Sources

+ {% if c.status %} +
+

Status:

+ {{ h.literal(c.status) }} +
+ {% endif %} + + + + {% if c.sources %} +
+ + +
+ + + + + + + + + + + + + + {% set old_publisher = None %} + {% for source in c.sources %} + {% if c.publisher_auth and old_publisher != source['publisher_id'] %} + + {% if source.get('publisher_title') %} + + {% else %} + + {% endif %} + + {% endif %} + {% set old_publisher = source['publisher_id'] %} + + + + + + + + {% if 'msg' in source.status %} + + + {% else %} + + + {% endif %} + + + {% endfor %} +
ViewEditRefreshURLTypeActiveStatisticsNext HarvestCreated
{{ source['publisher_title'] }}{{ source['publisher_id'] }}
ViewEditRefresh{{ source.url | truncate(50) }}{{ source.type }}{{ source.active }}{{ source.status.msg }}{{ source.status.msg }}Datasets: {{ source.status.overall_statistics.added }}
+ Last errors: {{ source.status.last_harvest_statistics.errors }}
{{ source.status.next_harvest }}{{ h.render_datetime(source.created) }}
+ {% else %} +
No harvest sources defined yet.
+ {% endif %} +
+
+{% endblock %} + +{% block sidebar %}{% endblock %} + + + +{# + + + + + + + +
+
+ +
+#}