<% content_to_show = Rails.application.config.content_types[:all_non_universe] + [Timeline] %>

<% content_to_show.each do |content_type| %>
  <%
    list = @content.send(content_type.name.downcase.pluralize)
    next if list.empty?

    @sidelinks_in_this_universe_count += list.count
  %>

  <%= render partial: 'content/cards/in_universe_content_list', locals: {
    content_type: content_type.name.downcase.to_sym,
    content_list: list
  } %>
<% end %>