From f51b8e905a5b2caae5cb0468018ec741e92d3aba Mon Sep 17 00:00:00 2001 From: amercader Date: Mon, 19 Aug 2013 18:13:01 +0100 Subject: [PATCH] [#58] Check properly for version numbers (patch numbers) --- ckanext/harvest/templates_new/source/admin_base.html | 2 +- ckanext/harvest/templates_new/source/read_base.html | 2 +- ckanext/harvest/templates_new/source/search.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ckanext/harvest/templates_new/source/admin_base.html b/ckanext/harvest/templates_new/source/admin_base.html index 9c280d9..68bc4e9 100644 --- a/ckanext/harvest/templates_new/source/admin_base.html +++ b/ckanext/harvest/templates_new/source/admin_base.html @@ -8,7 +8,7 @@ {% endblock %} {% block action_links %} - {% set show_li = c.__version == '2.0' %} + {% set show_li = c.__version__.startswith('2.0') %} {% if source.status and source.status.last_job and (source.status.last_job.status == 'New' or source.status.last_job.status == 'Running') %} {{ '
  • ' if show_li }} Reharvest{{ '
  • ' if show_li }} {% else %} diff --git a/ckanext/harvest/templates_new/source/read_base.html b/ckanext/harvest/templates_new/source/read_base.html index 6b32424..b1ba26d 100644 --- a/ckanext/harvest/templates_new/source/read_base.html +++ b/ckanext/harvest/templates_new/source/read_base.html @@ -41,7 +41,7 @@ {% block page_header %}