Skip to content

Commit

Permalink
[#1030] Update to organization page titles
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Oct 3, 2013
1 parent 1dca8f8 commit b7be3e7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ckan/templates/organization/about.html
@@ -1,6 +1,6 @@
{% extends "organization/read_base.html" %}

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

{% block primary_content_inner %}
<h1>{% block page_heading %}{{ c.group_dict.display_name }}{% endblock %}</h1>
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/organization/activity_stream.html
@@ -1,6 +1,6 @@
{% extends "organization/read_base.html" %}

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

{% block primary_content_inner %}
<h2 class="hide-heading">{% block page_heading %}{{ _('Activity Stream') }}{% endblock %}</h2>
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/organization/edit.html
@@ -1,6 +1,6 @@
{% extends "organization/base_form_page.html" %}

{% block subtitle %}{{ _('Edit Organization') }}{% endblock %}
{% block subtitle %}{{ _('Edit') }} - {{ super() }}{% endblock %}

{% block page_heading_class %}hide-heading{% endblock %}
{% block page_heading %}{{ _('Edit Organization') }}{% endblock %}
2 changes: 1 addition & 1 deletion ckan/templates/organization/edit_base.html
Expand Up @@ -2,7 +2,7 @@

{% set organization = c.group_dict %}

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

{% block breadcrumb_content %}
<li>{% link_for _('Organizations'), controller='organization', action='index' %}</li>
Expand Down
6 changes: 3 additions & 3 deletions ckan/templates/organization/member_new.html
Expand Up @@ -4,7 +4,7 @@

{% set user = c.user_dict %}

{% block subtitle %}{{ _('Members') }} - {{ c.group_dict.display_name }}{% endblock %}
{% block subtitle %}{{ _('Edit Member') if user else _('Add Member') }} - {{ super() }}{% endblock %}

{% block primary_content_inner %}
{% link_for _('Back to all members'), controller='organization', action='members', id=organization.name, class_='btn pull-right', icon='arrow-left' %}
Expand All @@ -28,11 +28,11 @@ <h1 class="page-heading">
{% set locale = h.dump_json({'content': _('Are you sure you want to delete this member?')}) %}
<a href="{% url_for controller='organization', action='member_delete', id=c.group_dict.id, user=user.id %}" class="btn btn-danger pull-left" data-module="confirm-action" data-module-i18n="{{ locale }}">{{ _('Delete') }}</a>
<button class="btn btn-primary" type="submit" name="submit" >
{{ _('Save') }}
{{ _('Update Member') }}
</button>
{% else %}
<button class="btn btn-primary" type="submit" name="submit" >
{{ _('Add') }}
{{ _('Add Member') }}
</button>
{% endif %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/organization/members.html
@@ -1,6 +1,6 @@
{% extends "organization/edit_base.html" %}

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

{% block page_primary_action %}
{% link_for _('Add Member'), controller='organization', action='member_new', id=c.group_dict.id, class_='btn btn-primary', icon='plus-sign-alt' %}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/organization/read_base.html
@@ -1,6 +1,6 @@
{% extends "page.html" %}

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

{% block breadcrumb_content %}
<li>{% link_for _('Organizations'), controller='organization', action='index' %}</li>
Expand Down

0 comments on commit b7be3e7

Please sign in to comment.