Added working related contents list

Also separated related contents into partials.
This commit is contained in:
María Checa
2017-12-13 13:32:00 +01:00
parent ed8e5de094
commit 4f442792cc
4 changed files with 32 additions and 56 deletions

View File

@@ -0,0 +1,15 @@
<div class="related-content padding">
<div class="margin-bottom">
<h2 class="inline-block">
<%= t("related_content.title") %>&nbsp;<span>(<%= relationable.relationed_contents.count %>)</span>
</h2>
<a data-toggle="related_content" class="add-related-content">
<%= t("related_content.add") %>
</a>
</div>
<%= render 'relationable/related_list', relationable: relationable %>
</div>