Skip to content
Snippets Groups Projects
Commit 2f05db1c authored by pabois's avatar pabois
Browse files

alumni displayed on organization show

parent b59b7420
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@
<% @alumnus.experiences.ordered.each do |experience| %>
<% organization = experience.organization %>
<li>
<%= link_to_if can?('read', organization), organization, [:admin, organization] %>
<%= link_to_if can?(:read, organization), organization, [:admin, organization] %>
<%= "(#{experience.from_year} - #{experience.to_year.present? ? experience.to_year : t('today')})" %>
</li>
<% end %>
......
......@@ -131,8 +131,8 @@
path = admin_university_alumnus_path(alumnus)
%>
<tr>
<td><%= link_to alumnus.last_name, path %></td>
<td><%= link_to alumnus.first_name, path %></td>
<td><%= link_to_if can?(:read, alumnus), alumnus.last_name, path %></td>
<td><%= link_to_if can?(:read, alumnus), alumnus.first_name, path %></td>
<td>
<%= "#{experience.from_year} - #{experience.to_year.present? ? experience.to_year : t('today')}" %>
</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment