Skip to content

Commit

Permalink
[#2375] Display a nice message when an instance has no groups
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Aug 2, 2012
1 parent d477dca commit f7d2c67
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ckan/templates/group/index.html
Expand Up @@ -14,7 +14,16 @@
<div class="module">
<div class="module-content">
<h1 class="page-heading">{{ _('Groups') }}</h1>
{% snippet "group/snippets/group_list.html", groups=c.page.items %}
{% if c.page.items %}
{% snippet "group/snippets/group_list.html", groups=c.page.items %}
{% else %}
<p class="empty">
{{ _('There are currently no groups for this site') }}.
{% if h.check_access('package_create') %}
{% link_for _('How about creating one?'), controller='group', action='new' %}</a>.
{% endif %}
</p>
{% endif %}
</div>
{{ c.page.pager() }}
</div>
Expand Down

0 comments on commit f7d2c67

Please sign in to comment.