Skip to content

Commit

Permalink
[#1491] Fix new dataset form and resource pages breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Feb 3, 2014
1 parent f49cb0a commit 2bd5465
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion ckan/templates/package/edit_base.html
Expand Up @@ -7,7 +7,9 @@

{% block breadcrumb_content %}
{{ super() }}
<li class="active">{% link_for _('Edit'), controller='package', action='edit', id=pkg.name %}</li>
{% if pkg %}
<li class="active">{% link_for _('Edit'), controller='package', action='edit', id=pkg.name %}</li>
{% endif %}
{% endblock %}

{% block content_action %}
Expand Down
4 changes: 3 additions & 1 deletion ckan/templates/package/new_resource.html
Expand Up @@ -7,7 +7,9 @@
{% block breadcrumb_content_selected %}{% endblock %}
{% block breadcrumb_content %}
{{ super() }}
<li class="active"><a href="#">{{ _('Add New Resource') }}</a></li>
{% if pkg %}
<li class="active"><a href="#">{{ _('Add New Resource') }}</a></li>
{% endif %}
{% 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 %}
Expand Down
1 change: 1 addition & 0 deletions ckan/templates/package/new_resource_not_draft.html
Expand Up @@ -4,6 +4,7 @@
{% block form_title %}{{ _('Add resource') }}{% endblock %}

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

Expand Down
6 changes: 4 additions & 2 deletions ckan/templates/package/resource_edit_base.html
Expand Up @@ -7,8 +7,10 @@

{% block breadcrumb_content %}
{{ super() }}
<li>{% link_for h.resource_display_name(res)|truncate(30), controller='package', action='resource_read', id=pkg.name, resource_id=res.id %}</li>
<li class="active"><a href="">{{ _('Edit') }}</a></li>
{% if res %}
<li>{% link_for h.resource_display_name(res)|truncate(30), controller='package', action='resource_read', id=pkg.name, resource_id=res.id %}</li>
<li class="active"><a href="">{{ _('Edit') }}</a></li>
{% endif %}
{% endblock %}

{% block content_action %}
Expand Down

0 comments on commit 2bd5465

Please sign in to comment.