Skip to content

Commit

Permalink
[#3018] Added type cast to config item in template
Browse files Browse the repository at this point in the history
After feedback from @tobes at #171 (comment)
  • Loading branch information
johnmartin committed Dec 11, 2012
1 parent c703e49 commit 60d6384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/activity_streams/activity_stream_items.html
@@ -1,4 +1,4 @@
{% set has_more_length = config.get("ckan.activity_list_limit", 30) %}
{% set has_more_length = config.get("ckan.activity_list_limit", 30)|int %}
{% set has_more = activities|length > has_more_length %}

<ul class="activity" data-module="activity-stream" data-module-more="{{ has_more }}" data-module-context="{{ controller }}" data-module-id="{{ id }}" data-module-offset="{{ offset }}">
Expand Down

0 comments on commit 60d6384

Please sign in to comment.