Skip to content

Commit

Permalink
[#2939] Fix org template to allow add org
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Nov 28, 2012
1 parent ad691fb commit dcdb613
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ckan/templates/organization/edit_base.html
Expand Up @@ -15,7 +15,7 @@
{% endblock %}

{% block actions_content %}
{% if h.check_access('organization_update', {'id': c.group.id}) %}
{% if organization and h.check_access('organization_update', {'id': c.group.id}) %}
<li><a href="{% url_for controller='organization', action='read', id=organization.name %}" class="btn">{{ _('View organization') }} <i class="icon-arrow-right"></i></a></li>
{% endif %}
{# <li>{% link_for _('History'), controller='organization', action='history', id=organization.name, class_='btn', icon='undo' %}</li> #}
Expand Down Expand Up @@ -43,7 +43,9 @@
{% endblock %}

{% block secondary_content %}
{% snippet 'snippets/organization.html', organization=organization %}
{% if organization %}
{% snippet 'snippets/organization.html', organization=organization %}
{% endif %}
{% endblock %}

{% block links %}
Expand Down

0 comments on commit dcdb613

Please sign in to comment.