Skip to content

Commit

Permalink
[#2864] Only show add dataset if user
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 20, 2012
1 parent af1fd51 commit 657d1f2
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions ckan/templates/user/read.html
Expand Up @@ -84,10 +84,18 @@ <h2 class="tab-heading">{{ _('Datasets') }}</h2>
{% if user.datasets %}
{% snippet 'snippets/package_list.html', packages=user.datasets %}
{% else %}
<p class="empty">
{{ _('You haven\'t created any datasets.') }}
{% link_for _('Create one now?'), controller='package', action='new' %}.
</p>

{% if c.is_myself %}
<p class="empty">
{{ _('You haven\'t created any datasets.') }}
{% link_for _('Create one now?'), controller='package', action='new' %}.
</p>
{% else %}
<p class="empty">
{{ _('User hasn\'t created any datasets.') }}
</p>
{% endif %}

{% endif %}
</section>
<section id="activity" class="module-content module-activity tab-content">
Expand Down

0 comments on commit 657d1f2

Please sign in to comment.