Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
c905f94f
Commit
c905f94f
authored
1 year ago
by
Thorge Petersen
Browse files
Options
Downloads
Patches
Plain Diff
removed unused legacy code
parent
b947d734
No related branches found
No related tags found
1 merge request
!50
Upgraded to CKAN 2.10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckanext/odsh/harvest_templates/source/search.html
+2
-29
2 additions, 29 deletions
ckanext/odsh/harvest_templates/source/search.html
with
2 additions
and
29 deletions
ckanext/odsh/harvest_templates/source/search.html
+
2
−
29
View file @
c905f94f
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment