[#58] Check properly for version numbers (patch numbers)
This commit is contained in:
parent
86dcd933ea
commit
f51b8e905a
|
@ -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') %}
|
||||
{{ '<li>' if show_li }}<a class="btn disabled" rel="tooltip" title="There already is an unrun job for this source"><i class="icon-refresh icon-large"></i> Reharvest</a>{{ '</li>' if show_li }}
|
||||
{% else %}
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
{% block page_header %}
|
||||
<header class="module-content page-header">
|
||||
{# CKAN 2.1+ #}
|
||||
{% if authorized_user and c.__version__ != '2.0' %}
|
||||
{% if authorized_user and not c.__version__.startswith('2.0') %}
|
||||
{% block content_action %}
|
||||
<div class="content_action">
|
||||
{{ self.admin_link() }}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
{% block primary_content %}
|
||||
<section class="module">
|
||||
<div class="module-content">
|
||||
{% if c.__version__ == '2.0' %}
|
||||
{% if c.__version__.startswith('2.0') %}
|
||||
<form id="dataset-search" class="dataset-search clearfix" method="get" data-module="select-switch">
|
||||
<span class="control-group search-giant">
|
||||
<input type="text" class="search" name="q" value="{{ c.q }}" autocomplete="off" placeholder="{{ _('Search...') }}" />
|
||||
|
|
Loading…
Reference in New Issue