Skip to content

Commit

Permalink
[#3028] Fix dashboard display issue with user previews
Browse files Browse the repository at this point in the history
If a followed user had 0 datasets or 0 edits, then its dataset count or
edit count would not show up when the user was previewed in the user
dashboard sidebar.  Removing some unnecessary if statements fixes it.
  • Loading branch information
Sean Hammond committed Dec 19, 2012
1 parent 5e4a5ce commit 1ea41cf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ckan/templates/ajax_snippets/popover-context-user.html
Expand Up @@ -13,26 +13,18 @@
View Profile
</a>
</div>
{% if num_followers or number_administered_packages or number_of_edits %}
<div class="nums">
{% if num_followers %}
<dl>
<dt>{{ _('Followers') }}</dt>
<dd>{{ num_followers }}</dd>
</dl>
{% endif %}
{% if number_administered_packages %}
<dl>
<dt>{{ _('Datasets') }}</dt>
<dd>{{ number_administered_packages }}</dd>
</dl>
{% endif %}
{% if number_of_edits %}
<dl>
<dt>{{ _('Edits') }}</dt>
<dd>{{ number_of_edits }}</dd>
</dl>
{% endif %}
</div>
{% endif %}
</div>

0 comments on commit 1ea41cf

Please sign in to comment.