Skip to content
Snippets Groups Projects
Commit c905f94f authored by Thorge Petersen's avatar Thorge Petersen
Browse files

removed unused legacy code

parent b947d734
No related branches found
No related tags found
1 merge request!50Upgraded to CKAN 2.10
...@@ -14,32 +14,17 @@ ...@@ -14,32 +14,17 @@
<li class="active">{{ h.nav_link(_('Harvest Sources'), named_route='{0}_search'.format(c.dataset_type)) }}</li> <li class="active">{{ h.nav_link(_('Harvest Sources'), named_route='{0}_search'.format(c.dataset_type)) }}</li>
{% endblock %} {% endblock %}
{% if g.ckan_base_version.startswith('2.0') %}
{# CKAN 2.0 #}
{% block add_action_content %}
{{ h.snippet('snippets/add_source_button.html', dataset_type=c.dataset_type) }}
{% endblock %}
{% endif %}
{% block primary_content %} {% block primary_content %}
{% if c.userobj.sysadmin %} {% if c.userobj.sysadmin %}
{% if g.ckan_base_version.startswith('2.0') %}
{# CKAN 2.0 #}
{% include 'source/search_2.0.html' %}
{% else %}
{# > CKAN 2.0 #}
<section class="module"> <section class="module">
<div class="module-content"> <div class="module-content">
{#
{% block page_primary_action %} {% block page_primary_action %}
<div class="page_primary_action"> <div class="page_primary_action">
{{ h.snippet('snippets/add_source_button.html', dataset_type=c.dataset_type) }} {{ h.snippet('snippets/add_source_button.html', dataset_type=c.dataset_type) }}
</div> </div>
{% endblock %} {% endblock %}
{% set facets = { {% set facets = {
'fields': c.fields_grouped, 'fields': c.fields_grouped,
'search': c.search_facets, 'search': c.search_facets,
...@@ -55,7 +40,6 @@ ...@@ -55,7 +40,6 @@
(_('Popular'), 'views_recent desc') if g.tracking_enabled else (false, false) ] (_('Popular'), 'views_recent desc') if g.tracking_enabled else (false, false) ]
%} %}
{% snippet 'snippets/search_form.html', type='harvest', query=c.q, sorting=sorting, sorting_selected=c.sort_by_selected, count=c.page.item_count, facets=facets, show_empty=request.args, error=c.query_error, placeholder=_("Search harvest sources...") %} {% snippet 'snippets/search_form.html', type='harvest', query=c.q, sorting=sorting, sorting_selected=c.sort_by_selected, count=c.page.item_count, facets=facets, show_empty=request.args, error=c.query_error, placeholder=_("Search harvest sources...") %}
#}
{{ h.snippet('snippets/source_list.html', sources=c.page.items, show_organization=true) }} {{ h.snippet('snippets/source_list.html', sources=c.page.items, show_organization=true) }}
...@@ -63,8 +47,6 @@ ...@@ -63,8 +47,6 @@
{{ c.page.pager(q=c.q) }} {{ c.page.pager(q=c.q) }}
</section> </section>
{% endif %}
{% else %} {% else %}
<div class="module-content error-page"> <div class="module-content error-page">
<div class="error-title"> <div class="error-title">
...@@ -81,19 +63,10 @@ ...@@ -81,19 +63,10 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block breadcrumb %}
{% endblock %}
{% block secondary %}{% endblock %}
{#
{% block secondary_content %} {% block secondary_content %}
{% if c.userobj.sysadmin %}
{% for facet in c.facet_titles %} {% for facet in c.facet_titles %}
{{ h.snippet('snippets/facet_list.html', title=c.facet_titles[facet], name=facet, alternative_url=h.url_for('{0}_search'.format(c.dataset_type))) }} {{ h.snippet('snippets/facet_list.html', title=c.facet_titles[facet], name=facet, alternative_url=h.url_for('{0}.search'.format(c.dataset_type))) }}
{% endfor %} {% endfor %}
{% endif %}
{% endblock %} {% endblock %}
#}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment