Skip to content

Commit

Permalink
[#2794] Add "back to resource" button to edit resource page
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Aug 2, 2012
1 parent 1949dd4 commit 11f3b62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/templates/package/resource_edit.html
Expand Up @@ -11,5 +11,9 @@
<li class="active">{% link_for _('Edit Resource'), controller='package', action='edit_resource', id=pkg_dict.name, resource_id=res.id %}</li>
{% endblock %}

{% block actions_content %}
<li>{% link_for _('Back to resource'), controller='package', action='resource_read', id=pkg_dict.name, resource_id=res.id, class_='btn', icon='caret-left' %}</li>
{% endblock %}

{# logged_in is defined in new_resource.html #}
{% block form %}{{ h.snippet('package/snippets/resource_edit_form.html', data=data, errors=errors, error_summary=error_summary, pkg_name=pkg_dict.name, form_action=c.form_action, allow_upload=logged_in) }}{% endblock %}

0 comments on commit 11f3b62

Please sign in to comment.