Skip to content

Commit

Permalink
[#864] Add clearfix for related lists
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Jun 11, 2013
1 parent ed5fe85 commit 825a6da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ckan/templates/related/snippets/related_item.html
Expand Up @@ -38,3 +38,6 @@ <h3 class="media-heading">{{ related.title }}</h3>
{{ h.nav_link(_('Edit'), controller='related', action='edit', id=pkg_id, related_id=related.id, class_='btn btn-primary btn-small media-edit') }}
{% endif %}
</li>
{% if position is divisibleby 3 %}
<li class="clearfix js-hide"></li>
{% endif %}
2 changes: 1 addition & 1 deletion ckan/templates/related/snippets/related_list.html
Expand Up @@ -13,6 +13,6 @@
#}
<ul class="media-grid" data-module="media-grid">
{% for related in related_items %}
{% snippet "related/snippets/related_item.html", pkg_id=pkg_id, related=related %}
{% snippet "related/snippets/related_item.html", pkg_id=pkg_id, related=related, position=loop.index %}
{% endfor %}
</ul>

0 comments on commit 825a6da

Please sign in to comment.