Skip to content

Commit

Permalink
[#890] Fixes for template extends
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Jun 18, 2013
1 parent dc0172b commit 5a15fa5
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions ckan/public/base/less/ckan.less
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,7 @@ iframe {
}

@import "iehacks.less";

.debug {
display: none;
}
2 changes: 1 addition & 1 deletion ckan/templates/group/about.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "group/read.html" %}
{% extends "group/read_base.html" %}

{% block subtitle %}{{ _('About') }} - {{ c.group_dict.display_name }}{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/group/activity_stream.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "group/read.html" %}
{% extends "group/read_base.html" %}

{% block subtitle %}{{ _('Activity Stream') }} - {{ c.group_dict.title or c.group_dict.name }}{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/group/admins.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "group/read.html" %}
{% extends "group/read_base.html" %}

{% block subtitle %}{{ _('Administrators') }} - {{ c.group_dict.title or c.group_dict.name }}{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/group/followers.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "group/read.html" %}
{% extends "group/read_base.html" %}

{% block subtitle %}{{ _('Followers') }} - {{ c.group_dict.title or c.group_dict.name }}{% endblock %}

Expand Down
4 changes: 4 additions & 0 deletions ckan/templates/group/read.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

{% block subtitle %}{{ c.group_dict.display_name }}{% endblock %}

{% block add_action %}
{% link_for _('Add Dataset'), controller='package', action='new', group=c.group_dict.id, class_='btn btn-primary', icon='plus-sign-alt' %}
{% endblock %}

{% block primary_content_inner %}
{% block packages_list %}
{% include "package/snippets/search_form.html" %}
Expand Down
4 changes: 0 additions & 4 deletions ckan/templates/group/read_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<li class="active">{% link_for c.group_dict.display_name|truncate(35), controller='group', action='read', id=c.group_dict.name %}</li>
{% endblock %}

{% block add_action %}
{% link_for _('Add Dataset'), controller='package', action='new', group=c.group_dict.id, class_='btn btn-primary', icon='plus-sign-alt' %}
{% endblock %}

{% block edit_action %}
{% if h.check_access('group_update', {'id': c.group_dict.id}) %}
{% link_for _('Edit'), controller='group', action='edit', id=c.group_dict.name, class_='btn', icon='wrench' %}
Expand Down
6 changes: 6 additions & 0 deletions ckan/templates/organization/read.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{% extends "organization/read_base.html" %}

{% block add_action %}
{% if h.check_access('organization_update', {'id': c.group_dict.id}) %}
{% link_for _('Add Dataset'), controller='package', action='new', group=c.group_dict.id, class_='btn btn-primary', icon='plus-sign-alt' %}
{% endif %}
{% endblock %}

{% block primary_content_inner %}
{% block packages_list %}
{% include "package/snippets/search_form.html" %}
Expand Down
6 changes: 0 additions & 6 deletions ckan/templates/organization/read_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
<li class="active">{% link_for c.group_dict.display_name|truncate(35), controller='organization', action='read', id=c.group_dict.name %}</li>
{% endblock %}

{% block add_action %}
{% if h.check_access('organization_update', {'id': c.group_dict.id}) %}
{% link_for _('Add Dataset'), controller='package', action='new', group=c.group_dict.id, class_='btn btn-primary', icon='plus-sign-alt' %}
{% endif %}
{% endblock %}

{% block edit_action %}
{% if h.check_access('organization_update', {'id': c.group_dict.id}) %}
{% link_for _('Admin'), controller='organization', action='edit', id=c.group_dict.name, class_='btn', icon='wrench' %}
Expand Down

0 comments on commit 5a15fa5

Please sign in to comment.