osunyorg/admin

View on GitHub
app/views/extranet/alumni/cohorts/show.html.erb

Summary

Maintainability
Test Coverage
<% content_for :title, @cohort %>
<% content_for :header_right do %>
<p>
  <%= @cohort.people.count %>
  <%= University::Person::Alumnus.model_name.human(count: @cohort.people.count).downcase %>
</p>
<% end %>

<%
subtitle_parts = []
subtitle_parts << @cohort.program.diploma.to_s_in(current_language) if @cohort.program.diploma.present?
subtitle_parts << @cohort.program.to_s_in(current_language)
%>

<p class="mb-5">
  <%= subtitle_parts.join(' — ') %>
</p>

<%= render 'extranet/alumni/persons/list', people: @cohort.people %>