Skip to content

Commit

Permalink
[#3046] prompt user to create organization
Browse files Browse the repository at this point in the history
  • Loading branch information
k-nut authored and Knut Hühne committed Jun 6, 2016
1 parent 3717886 commit 7cf95ac
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ckan/templates/package/new.html
@@ -1,3 +1,23 @@
{% extends "package/base_form_page.html" %}

{% block subtitle %}{{ _('Create Dataset') }}{% endblock %}


{% if not h.organizations_available('create_dataset') %}

{% block primary_content %}
<section class="module">
{% block page_header %}{% endblock %}
<div class="module-content">
{% block primary_content_inner %}
<p>{{ _('Before you can create a dataset you need to create an organization first.') }}</p>

<a class='btn btn-primary' href="{{ h.url_for(controller='organization', action='new') }}">
{{ _('Create a new organization') }}
</a>
{% endblock %}
</div>
</section>
{% endblock %}

{% endif %}

0 comments on commit 7cf95ac

Please sign in to comment.