2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title
|
2012-11-25 11:52:12 -05:00
|
|
|
Project: #{@project.name_with_namespace}
|
2015-02-25 22:34:16 -05:00
|
|
|
= link_to edit_project_path(@project), class: "btn pull-right" do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-pencil-square-o
|
2012-09-26 09:49:20 -04:00
|
|
|
Edit
|
2013-03-25 05:07:11 -04:00
|
|
|
%hr
|
|
|
|
.row
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-6
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default
|
2014-05-29 11:43:21 -04:00
|
|
|
.panel-heading
|
2013-03-25 05:07:11 -04:00
|
|
|
Project info:
|
|
|
|
%ul.well-list
|
|
|
|
%li
|
|
|
|
%span.light Name:
|
2013-08-29 15:53:22 -04:00
|
|
|
%strong
|
2015-02-25 22:34:16 -05:00
|
|
|
= link_to @project.name, project_path(@project)
|
2013-03-25 05:07:11 -04:00
|
|
|
%li
|
|
|
|
%span.light Namespace:
|
|
|
|
%strong
|
|
|
|
- if @project.namespace
|
|
|
|
= link_to @project.namespace.human_name, [:admin, @project.group || @project.owner]
|
|
|
|
- else
|
|
|
|
Global
|
|
|
|
%li
|
|
|
|
%span.light Owned by:
|
|
|
|
%strong
|
|
|
|
- if @project.owner
|
2013-09-26 07:49:22 -04:00
|
|
|
= link_to @project.owner_name, [:admin, @project.owner]
|
2013-03-25 05:07:11 -04:00
|
|
|
- else
|
|
|
|
(deleted)
|
2011-10-08 17:36:38 -04:00
|
|
|
|
2013-03-25 05:07:11 -04:00
|
|
|
%li
|
|
|
|
%span.light Created by:
|
|
|
|
%strong
|
|
|
|
= @project.creator.try(:name) || '(deleted)'
|
2012-10-04 03:51:35 -04:00
|
|
|
|
2013-03-25 05:07:11 -04:00
|
|
|
%li
|
2013-10-17 23:10:42 -04:00
|
|
|
%span.light Created on:
|
2013-03-25 05:07:11 -04:00
|
|
|
%strong
|
|
|
|
= @project.created_at.stamp("March 1, 1999")
|
2012-12-14 00:14:05 -05:00
|
|
|
|
2013-03-25 05:07:11 -04:00
|
|
|
%li
|
|
|
|
%span.light http:
|
|
|
|
%strong
|
2014-10-06 19:19:21 -04:00
|
|
|
= link_to @project.http_url_to_repo, project_path(@project)
|
2013-03-25 05:07:11 -04:00
|
|
|
%li
|
|
|
|
%span.light ssh:
|
|
|
|
%strong
|
2014-10-06 19:19:21 -04:00
|
|
|
= link_to @project.ssh_url_to_repo, project_path(@project)
|
2013-04-01 11:16:08 -04:00
|
|
|
- if @project.repository.exists?
|
|
|
|
%li
|
|
|
|
%span.light fs:
|
|
|
|
%strong
|
|
|
|
= @repository.path_to_repo
|
2012-12-14 00:14:05 -05:00
|
|
|
|
2013-12-19 10:15:48 -05:00
|
|
|
%li
|
|
|
|
%span.light Size
|
|
|
|
%strong
|
|
|
|
= repository_size(@project)
|
|
|
|
|
2013-04-01 11:16:08 -04:00
|
|
|
%li
|
|
|
|
%span.light last commit:
|
|
|
|
%strong
|
2013-03-25 05:07:11 -04:00
|
|
|
= last_commit(@project)
|
2013-04-01 11:16:08 -04:00
|
|
|
- else
|
|
|
|
%li
|
|
|
|
%span.light repository:
|
|
|
|
%strong.cred
|
|
|
|
does not exist
|
2011-11-18 15:54:56 -05:00
|
|
|
|
2015-03-25 17:29:27 -04:00
|
|
|
- if @project.archived?
|
|
|
|
%li
|
|
|
|
%span.light archived:
|
|
|
|
%strong repository is read-only
|
|
|
|
|
2013-03-25 05:07:11 -04:00
|
|
|
%li
|
|
|
|
%span.light access:
|
|
|
|
%strong
|
2013-11-06 10:13:21 -05:00
|
|
|
%span{ class: visibility_level_color(@project.visibility_level) }
|
|
|
|
= visibility_level_icon(@project.visibility_level)
|
|
|
|
= visibility_level_label(@project.visibility_level)
|
|
|
|
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default
|
2014-05-29 11:43:21 -04:00
|
|
|
.panel-heading
|
2013-11-15 08:25:37 -05:00
|
|
|
Transfer project
|
2014-05-29 11:57:27 -04:00
|
|
|
.panel-body
|
2015-01-24 13:02:58 -05:00
|
|
|
= form_for @project, url: transfer_admin_namespace_project_path(@project.namespace, @project), method: :put, html: { class: 'form-horizontal' } do |f|
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group
|
2015-01-24 13:02:58 -05:00
|
|
|
= f.label :new_namespace_id, "Namespace", class: 'control-label'
|
2013-12-30 18:27:02 -05:00
|
|
|
.col-sm-10
|
2015-01-24 13:02:58 -05:00
|
|
|
= namespace_select_tag :new_namespace_id, selected: params[:namespace_id], class: 'input-large'
|
2013-11-15 08:25:37 -05:00
|
|
|
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group
|
2014-01-09 03:29:55 -05:00
|
|
|
.col-sm-2
|
2013-12-30 18:27:02 -05:00
|
|
|
.col-sm-10
|
2013-11-15 08:25:37 -05:00
|
|
|
= f.submit 'Transfer', class: 'btn btn-primary'
|
|
|
|
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-6
|
2013-06-21 17:11:06 -04:00
|
|
|
- if @group
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default
|
2014-05-29 11:43:21 -04:00
|
|
|
.panel-heading
|
2013-08-30 10:10:58 -04:00
|
|
|
%strong #{@group.name}
|
2014-09-14 12:32:51 -04:00
|
|
|
group members (#{@group.group_members.count})
|
2013-06-21 17:11:06 -04:00
|
|
|
.pull-right
|
2015-03-25 17:29:45 -04:00
|
|
|
= link_to admin_group_path(@group), class: 'btn btn-xs' do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-pencil-square-o
|
2013-06-21 17:11:06 -04:00
|
|
|
%ul.well-list
|
2014-06-02 12:31:43 -04:00
|
|
|
- @group_members.each do |member|
|
2014-09-15 03:57:02 -04:00
|
|
|
= render 'groups/group_members/group_member', member: member, show_controls: false
|
2014-06-02 12:31:43 -04:00
|
|
|
.panel-footer
|
|
|
|
= paginate @group_members, param_name: 'group_members_page', theme: 'gitlab'
|
2013-06-21 17:11:06 -04:00
|
|
|
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default
|
2014-05-29 11:43:21 -04:00
|
|
|
.panel-heading
|
2013-08-30 10:10:58 -04:00
|
|
|
Project members
|
2013-03-25 05:07:11 -04:00
|
|
|
%small
|
|
|
|
(#{@project.users.count})
|
2013-06-22 07:11:20 -04:00
|
|
|
.pull-right
|
2015-03-13 11:25:54 -04:00
|
|
|
= link_to namespace_project_project_members_path(@project.namespace, @project), class: "btn btn-xs" do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-pencil-square-o
|
2013-06-22 07:11:20 -04:00
|
|
|
Manage Access
|
2015-03-13 11:22:03 -04:00
|
|
|
%ul.well-list.project_members
|
2014-09-15 03:57:02 -04:00
|
|
|
- @project_members.each do |project_member|
|
|
|
|
- user = project_member.user
|
2014-09-14 12:32:51 -04:00
|
|
|
%li.project_member
|
2014-03-26 03:25:02 -04:00
|
|
|
.list-item-name
|
2015-04-10 09:14:14 -04:00
|
|
|
- if user
|
|
|
|
%strong
|
|
|
|
= link_to user.name, admin_user_path(user)
|
|
|
|
- else
|
|
|
|
%strong
|
|
|
|
= project_member.invite_email
|
|
|
|
(invited)
|
2013-06-22 07:11:20 -04:00
|
|
|
.pull-right
|
2014-09-15 03:57:02 -04:00
|
|
|
- if project_member.owner?
|
2013-08-27 05:47:28 -04:00
|
|
|
%span.light Owner
|
|
|
|
- else
|
2014-09-15 03:57:02 -04:00
|
|
|
%span.light= project_member.human_access
|
2015-04-10 09:14:14 -04:00
|
|
|
= link_to namespace_project_project_member_path(@project.namespace, @project, project_member), data: { confirm: remove_from_project_team_message(@project, project_member)}, method: :delete, remote: true, class: "btn btn-sm btn-remove" do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-times
|
2014-06-02 12:31:43 -04:00
|
|
|
.panel-footer
|
|
|
|
= paginate @project_members, param_name: 'project_members_page', theme: 'gitlab'
|