app/views/studies/collaborators.html.erb
<% add :about, "Contacts for study." -%>
<% add :back_menu, I18n.t("navigation.menu.back_to_study") => study_path(@study) -%>
<% if can? :edit, @study %>
<% add :menu, "Edit" => edit_study_path(@study) -%>
<% end %>
<div id="content-links">
<%= link_to "View status", study_path(@study) %>
</div>
<%= page_title @study.name, 'Contacts' %>
<div class='lead'>
Study <%= @study.id %> · Created on <%= time_tag(@study.created_at) %> · <%= @study.state.capitalize %>
</div>
<div id="role_list">
<!-- renders all roles on this study -->
<%= render partial: "roles" -%>
</div>
<% if can? :create, Role, { authorizable: @study } -%>
<%= panel :add_new_role, title: 'Assign roles to users' do %>
<%= render partial: "role" -%>
<% end %>
<% end -%>