app/views/followings/_following.html.erb

Summary

Maintainability
Test Coverage
<section>
  <br>
  <h2><%= icon "star", t('followings.following') %></h2>
  <div id="following" class="list-container" data-components="list">
    <div id="following-pagination"><%= paginate @following, :remote => true %></div>
    <ul id="following-list" class="list following-list">
      <% unless @following.empty? %>
        <%= render @following, :size => :small, :control_type => :follow_button %>
      <% else %>
        <p class="empty"><%= t 'followings.empty.following', {name: @followable.try(:name)} %></p>
      <% end %>
    </ul>
  </div>
</section>