<div class="row">
  <% available_release_types_model_names.sort.each do |release_model_name| %>
    <% project_feature @project, release_model_name.singular  do %>
      <%= render "folder_card" do %>
        <%= link_to t("projects.show.#{release_model_name.singular}", count: @project.public_send(release_model_name.plural).size), [@project, release_model_name.plural], class: "text-decoration-none text-reset stretched-link" %>
      <% end %>
    <% end %>
  <% end %>
  <% if policy(Project).show_reports? %>
    <%= render "folder_card" do %>
      <%= link_to t("projects.show.report"), [@project, :reports], class: "text-decoration-none text-reset stretched-link" %>
    <% end %>
  <% end %>
  <% if policy(Project).show_downloads? %>
    <%= render "folder_card" do %>
      <%= link_to t("projects.show.downloads"), [@project, :downloads], class: "text-decoration-none text-reset stretched-link" %>
    <% end %>
  <% end %>
</div>

<hr/>

<%= render "directories/directories", directories: @directories %>
