Skip to content

Commit

Permalink
[#1251] Correct URL from 'View view' link
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Dec 3, 2013
1 parent 2ce3a96 commit e074ad1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/templates/package/view_edit_base.html
Expand Up @@ -8,7 +8,8 @@
{% block content_action %}
{% link_for _('All views'), controller='package', action='resource_views', id=pkg.name, resource_id=res.id, class_='btn', icon='arrow-left' %}
{% if res %}
{% link_for _('View view'), controller='package', action='resource_read', id=pkg.name, resource_id=res.id, class_='btn', icon='eye-open' %}
{% set url = h.url_for(controller='package', action='resource_read', id=pkg.name, resource_id=res.id) ~ '#view-' ~ resource_view.id %}
<a href="{{ url }}" class="btn"><i class="icon-eye-open"></i> {{ _('View view') }}</a>
{% endif %}
{% endblock %}

Expand Down

0 comments on commit e074ad1

Please sign in to comment.