forked from consuldemocracy/consuldemocracy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_following.html.erb
31 lines (24 loc) · 875 Bytes
/
_following.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<ul class="accordion" data-accordion data-allow-all-closed="true">
<% @followable_types.each do |followable_type| %>
<li class="accordion-item" data-accordion-item>
<a href="#" class="accordion-title">
<span class="icon">
<i class="icon icon-<%= entity_icon(followable_type) %>"></i>
</span>
<span class="title">
<strong><%= entity_title(followable_type) %></strong>
</span>
</a>
<div class="accordion-content" data-tab-content>
<table>
<tbody>
<% @follows.where(followable_type: followable_type).each do |follow| %>
<%= render entity_partial(followable_type),
entity_partial(followable_type).to_sym => follow.followable %>
<% end %>
</tbody>
</table>
</div>
</li>
<% end %>
</ul>