Skip to content
Snippets Groups Projects
Commit 4f98120f authored by anonymous's avatar anonymous
Browse files

fix wrong resource url

parent 59248287
Branches
Tags
No related merge requests found
{% set url_action = 'resource_edit' if url_is_edit and can_edit else 'resource_read' %}
{% set url = h.url_for(controller='package', action=url_action, id=pkg.name, resource_id=res.id) %}
{% set download = res.url or url %}
{# hack for correcting slave url if resource was uploaded #}
{% if res.url_type=='upload' %}
{% set download = url or res.url%}
{% else %}
{% set download = res.url or ulr%}
{% endif %}
{% set res_details = h.odsh_get_resource_details(res.id) %}
<li class="resource-item" data-id="{{ res.id }}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment