Skip to content

Commit

Permalink
Merge pull request #865 from okfn/865-add-resource-breadcrumbs
Browse files Browse the repository at this point in the history
Add resource screen breadcrumb incorrect
  • Loading branch information
kindly committed Sep 20, 2013
2 parents b8eecf1 + a2cbe68 commit 1f560e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/package/base.html
@@ -1,6 +1,6 @@
{% extends "page.html" %}

{% set pkg = c.pkg_dict %}
{% set pkg = c.pkg_dict or pkg_dict %}

{% block breadcrumb_content_selected %} class="active"{% endblock %}

Expand Down
6 changes: 6 additions & 0 deletions ckan/templates/package/new_resource.html
Expand Up @@ -8,6 +8,12 @@

{% block subtitle %}{{ _('Add data to the dataset') }}{% endblock %}

{% block breadcrumb_content_selected %}{% endblock %}
{% block breadcrumb_content %}
{{ super() }}
<li class="active"><a href="#">{{ _('Add New Resource') }}</a></li>
{% endblock %}

{% block form %}{% snippet 'package/snippets/resource_form.html', data=data, errors=errors, error_summary=error_summary, include_metadata=false, pkg_name=pkg_name, stage=stage, allow_upload=g.ofs_impl and logged_in %}{% endblock %}

{% block secondary_content %}
Expand Down

0 comments on commit 1f560e9

Please sign in to comment.