<% #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %> <%= breadcrumbs_from(@root) -%>

<%= t("views.collaborators.title", :repo_name => link_to(h(@repository.name), [@repository.project, @repository])).html_safe -%>

<% @committerships.each do |committership| -%> <% end -%>
<%= t(:created_at, :scope => "activerecord.attributes.committerships").humanize %> <%= t(:committer_type, :scope => "activerecord.attributes.committerships").humanize %> <%= t(:committer, :scope => "activerecord.attributes.committerships").humanize %> <%= t(:permissions, :scope => "activerecord.attributes.committerships").humanize %> <%= t(:creator, :scope => "activerecord.attributes.committerships").humanize %>
<%= l(committership.created_at, :format => :short) -%> <%= committership.committer.class.human_name -%> <%= link_to h(committership.committer.title), committership.committer -%> <%=h committership.permission_list.join(', ') -%> <%= link_to(h(committership.creator.login), committership.creator) if committership.creator -%> <%= button_to(t("views.common.edit"), [:edit, @repository.project, @repository, committership], :method => :get) -%> <%= button_to(t("views.common.remove"), [@repository.project, @repository, committership], :method => :delete, :confirm => confirmation_if_sole_admin(@repository, committership)) -%>
<% if @repository.public? %>

Repository is open

Anyone with access to <%= @repository.project.title %> can browse and clone this repository.

<% else %>

Repository is private

Note: To see this project, collaborators on <%= @repository.project.title %> need to be <%= link_to "granted read access", project_repository_repository_memberships_path(@repository.project, @repository) %> in addition to their regular collaborator permissions.

<% end %> <%= render_pagination_links @committerships -%> <%= render "permission_explanation" %> <%= content_for :sidebar do -%>

Permission overview:

<%= collaborators("Reviewers", "review", reviewers(@repository)) %> <%= collaborators("Committers", "commit", committers(@repository)) %> <%= collaborators("Administrators", "administrator", administrators(@repository)) %> <% end -%>