Files
nairobi/app/components/users/following_component.html.erb
Javi Martín d34c9905a4 Use flex instead of equalizer in following
We're also removing the padding in the (now called) followables element,
since it caused a gap on the right side of the border of the
`.menu.simple` element.
2025-08-22 13:31:55 +02:00

28 lines
845 B
Plaintext

<div class="users-following">
<div class="followables">
<ul class="menu simple clear">
<% follows.each do |followable_type, follows| %>
<li><%= link_to followable_type_title(followable_type), "##{followable_type_title(followable_type).parameterize.underscore}" %></li>
<% end %>
</ul>
<% follows.each do |followable_type, follows| %>
<h3 id="<%= followable_type_title(followable_type).parameterize.underscore %>">
<span class="icon-<%= followable_icon(followable_type) %>"></span>
<%= followable_type_title(followable_type) %>
</h3>
<ul class="follow-list">
<% follows.each do |follow| %>
<%= render_follow(follow) %>
<% end %>
</ul>
<% end %>
</div>
<div class="interests">
<%= render "interests", user: user %>
</div>
</div>