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

Defined helper method in plugin.py

parent 4bf8463f
Branches
Tags
1 merge request!50Upgraded to CKAN 2.10
......@@ -351,6 +351,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
'get_body_mail':helpers_odsh.get_body_mail,
'odsh_load_mdk_sample_dataset': helpers_odsh.odsh_load_mdk_sample_dataset,
'odsh_load_raw_mdk_sample_dataset': helpers_odsh.odsh_load_raw_mdk_sample_dataset,
'format_resource_format': helpers_odsh.format_resource_format,
}
......
......@@ -128,7 +128,7 @@ Example:
{% for resource in h.dict_list_reduce(package.resources, 'format') %}
<li>
<a href="{{ h.url_for(package.type ~ '.read', id=package.name) }}" class="badge badge-default dataformat-label"
data-format="{{ resource.lower().replace('_srvc','') }}">
data-format="{{ h.format_resource_format(resource).lower() }}">
{{ h.format_resource_format(resource) }}
</a>
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment