Skip to content

Commit

Permalink
Report empty lists
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Mar 15, 2022
1 parent f1edc53 commit a648f83
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ckan/templates/package/activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,16 @@ <h1 class="hide-heading">
</div>
{% endif %}

{% snippet 'snippets/activity_stream.html', activity_stream=activity_stream, id=id, object_type='package' %}
{% if activity_stream|length > 0 %}
{% snippet 'snippets/activity_stream.html', activity_stream=activity_stream, id=id, object_type='package' %}
{% else %}
<p>
{{ _('No activity found') }}
{% if activity_type %}
{{ _('for this type') }}.
{% endif %}
</p>
{% endif %}

{# allow extensions to continue using this template without new vars #}
{% if page is defined %}
Expand Down

0 comments on commit a648f83

Please sign in to comment.