2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title
|
2012-11-25 11:52:12 -05:00
|
|
|
Project: #{@project.name_with_namespace}
|
2013-03-25 05:07:11 -04:00
|
|
|
= link_to edit_project_path(@project), class: "btn pull-right" do
|
2012-09-26 09:49:20 -04:00
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
2013-03-25 05:07:11 -04:00
|
|
|
%hr
|
|
|
|
.row
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-6
|
2013-03-25 05:07:11 -04:00
|
|
|
.ui-box
|
2013-07-13 13:36:21 -04:00
|
|
|
.title
|
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
|
|
|
|
= 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
|
|
|
|
= link_to @project.http_url_to_repo
|
|
|
|
%li
|
|
|
|
%span.light ssh:
|
|
|
|
%strong
|
|
|
|
= link_to @project.ssh_url_to_repo
|
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
|
|
|
|
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)
|
|
|
|
|
2013-11-15 08:25:37 -05:00
|
|
|
.ui-box
|
|
|
|
.title
|
|
|
|
Transfer project
|
2013-12-24 05:58:23 -05:00
|
|
|
.body
|
2013-11-15 08:25:37 -05:00
|
|
|
= form_for @project, url: transfer_admin_project_path(@project), method: :put do |f|
|
|
|
|
.control-group
|
|
|
|
= f.label :namespace_id, "Namespace"
|
|
|
|
.controls
|
|
|
|
= namespace_select_tag :namespace_id, selected: params[:namespace_id], class: 'input-large'
|
|
|
|
|
|
|
|
.control-group
|
|
|
|
.controls
|
|
|
|
= 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
|
|
|
|
.ui-box
|
2013-07-13 13:36:21 -04:00
|
|
|
.title
|
2013-08-30 10:10:58 -04:00
|
|
|
%strong #{@group.name}
|
|
|
|
group members (#{@group.users_groups.count})
|
2013-06-21 17:11:06 -04:00
|
|
|
.pull-right
|
|
|
|
= link_to admin_group_path(@group), class: 'btn btn-small' do
|
|
|
|
%i.icon-edit
|
|
|
|
%ul.well-list
|
|
|
|
- @group.users_groups.order('group_access DESC').each do |member|
|
|
|
|
= render 'users_groups/users_group', member: member, show_controls: false
|
|
|
|
|
2013-03-25 05:07:11 -04:00
|
|
|
.ui-box
|
2013-07-13 13:36:21 -04:00
|
|
|
.title
|
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
|
|
|
|
= link_to project_team_index_path(@project), class: "btn btn-tiny" do
|
|
|
|
%i.icon-edit
|
|
|
|
Manage Access
|
2013-03-25 07:36:08 -04:00
|
|
|
%ul.well-list.team_members
|
2013-08-20 08:59:45 -04:00
|
|
|
- @project.users_projects.each do |users_project|
|
|
|
|
- user = users_project.user
|
2013-09-14 14:18:01 -04:00
|
|
|
%li.users_project
|
2013-03-25 05:07:11 -04:00
|
|
|
%strong
|
2013-06-22 07:11:20 -04:00
|
|
|
= link_to user.name, admin_user_path(user)
|
|
|
|
.pull-right
|
2013-08-27 05:47:28 -04:00
|
|
|
- if users_project.owner?
|
|
|
|
%span.light Owner
|
|
|
|
- else
|
|
|
|
%span.light= users_project.human_access
|
2013-12-10 14:33:21 -05:00
|
|
|
= link_to project_team_member_path(@project, user), data: { confirm: remove_from_project_team_message(@project, user)}, method: :delete, remote: true, class: "btn btn-small btn-remove" do
|
2013-08-27 05:47:28 -04:00
|
|
|
%i.icon-remove
|