diff --git a/app/models/education/cohort.rb b/app/models/education/cohort.rb index 1e22823672e71eb0c58d85c2e1bc6c42bc836703..e37605bda37291b7b373eff62351d342f0b56c83 100644 --- a/app/models/education/cohort.rb +++ b/app/models/education/cohort.rb @@ -53,7 +53,7 @@ class Education::Cohort < ApplicationRecord } def to_s - "#{program} #{academic_year}" + "#{program.to_short_s} #{academic_year}" end def year diff --git a/app/views/extranet/cohorts/show.html.erb b/app/views/extranet/cohorts/show.html.erb index 40cfbb77a73c085cb546d9a1a41bef48684878c2..a500f1056519906cb216d25e3e3393962e47a16f 100644 --- a/app/views/extranet/cohorts/show.html.erb +++ b/app/views/extranet/cohorts/show.html.erb @@ -4,4 +4,9 @@ <%= University::Person::Alumnus.model_name.human(count: @cohort.people.count).downcase %> <% end %> +<p> + <%= @cohort.program %><br> + <%= @cohort.program.diploma %> +</p> + <%= render 'extranet/persons/list', people: @cohort.people %> diff --git a/app/views/extranet/home/index.html.erb b/app/views/extranet/home/index.html.erb index 632830267fe34c66941201172c9bc5342711a73d..b3dd3716bb96c20aa86fc732602c0e7d89e73a49 100644 --- a/app/views/extranet/home/index.html.erb +++ b/app/views/extranet/home/index.html.erb @@ -1,6 +1,6 @@ <% content_for :title, current_context %> <% content_for :header do %> - <h1> + <h1><%# TODO i18n %> Bienvenue sur l’extranet <%= current_context %>. Retrouvez les <%= link_to University::Person::Alumnus.model_name.human(count: 2).downcase, university_persons_path %>, <% if current_extranet.should_show_years? %>