2012-09-26 15:49:20 +02:00
|
|
|
%h3.page_title
|
2012-11-25 17:52:12 +01:00
|
|
|
Project: #{@project.name_with_namespace}
|
2013-01-30 15:40:43 +01:00
|
|
|
= link_to edit_admin_project_path(@project), class: "btn pull-right" do
|
2012-09-26 15:49:20 +02:00
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2012-10-04 09:51:35 +02:00
|
|
|
|
2012-04-16 22:33:03 +02:00
|
|
|
%br
|
2012-09-03 20:53:16 +02:00
|
|
|
%table.zebra-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Project
|
|
|
|
%th
|
2011-11-18 21:54:56 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Name:
|
|
|
|
%td
|
2012-11-23 05:31:09 +01:00
|
|
|
= @project.name
|
2012-11-30 17:26:17 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Namespace:
|
|
|
|
%td
|
|
|
|
- if @project.namespace
|
|
|
|
= @project.namespace.human_name
|
|
|
|
- else
|
|
|
|
Global
|
2011-11-18 21:54:56 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
2012-12-14 06:14:05 +01:00
|
|
|
Owned by:
|
2011-11-18 21:54:56 +01:00
|
|
|
%td
|
2013-01-02 18:00:00 +01:00
|
|
|
- if @project.owner
|
|
|
|
= link_to @project.owner_name, admin_user_path(@project.owner)
|
2012-12-14 06:14:05 +01:00
|
|
|
- else
|
|
|
|
(deleted)
|
2011-11-18 21:54:56 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
2012-11-30 17:26:17 +01:00
|
|
|
Created by:
|
2011-11-18 21:54:56 +01:00
|
|
|
%td
|
2013-01-02 18:00:00 +01:00
|
|
|
= @project.creator.try(:name) || '(deleted)'
|
2012-12-14 06:14:05 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Created at:
|
|
|
|
%td
|
|
|
|
= @project.created_at.stamp("March 1, 1999")
|
2013-01-04 23:35:38 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Smart HTTP:
|
|
|
|
%td
|
|
|
|
= link_to @project.http_url_to_repo
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
SSH:
|
|
|
|
%td
|
|
|
|
= link_to @project.ssh_url_to_repo
|
2013-01-10 19:17:57 +01:00
|
|
|
- if @project.public
|
|
|
|
%tr.bgred
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Public Read-Only Code access:
|
|
|
|
%td
|
|
|
|
= check_box_tag 'public', nil, @project.public
|
2012-12-14 06:14:05 +01:00
|
|
|
|
2013-01-04 23:35:38 +01:00
|
|
|
- if @repository
|
|
|
|
%table.zebra-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Repository
|
|
|
|
%th
|
2012-12-14 06:14:05 +01:00
|
|
|
%tr
|
2013-01-04 23:35:38 +01:00
|
|
|
%td
|
|
|
|
%b
|
|
|
|
FS Path:
|
|
|
|
%td
|
|
|
|
%code= @repository.path_to_repo
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Last commit at:
|
|
|
|
%td
|
|
|
|
= last_commit(@project)
|
2012-12-14 06:14:05 +01:00
|
|
|
|
2012-04-16 22:33:03 +02:00
|
|
|
%br
|
2012-12-10 04:14:05 +01:00
|
|
|
%h5
|
2012-04-16 22:33:03 +02:00
|
|
|
Team
|
|
|
|
%small
|
2013-01-21 20:55:55 +01:00
|
|
|
(#{@project.users.count})
|
2012-04-16 22:33:03 +02:00
|
|
|
%br
|
2013-01-19 18:51:42 +01:00
|
|
|
%table.zebra-striped.team_members
|
2012-04-16 22:33:03 +02:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Project Access
|
|
|
|
%th Repository Access
|
|
|
|
%th
|
2011-11-18 21:54:56 +01:00
|
|
|
|
2013-01-21 20:55:55 +01:00
|
|
|
- @project.users.each do |tm|
|
2012-04-16 22:33:03 +02:00
|
|
|
%tr
|
|
|
|
%td
|
2013-01-21 20:55:55 +01:00
|
|
|
= link_to tm.name, admin_user_path(tm)
|
|
|
|
%td= @project.project_access_human(tm)
|
2013-01-29 21:29:21 +01:00
|
|
|
%td= link_to 'Edit Access', edit_admin_project_member_path(@project, tm), class: "btn btn-small"
|
2013-01-29 21:18:19 +01:00
|
|
|
%td= link_to 'Remove from team', admin_project_member_path(@project, tm), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove small"
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2012-04-16 22:33:03 +02:00
|
|
|
%br
|
2012-12-10 04:14:05 +01:00
|
|
|
%h5 Add new team member
|
2012-04-16 22:33:03 +02:00
|
|
|
%br
|
2012-11-23 05:31:09 +01:00
|
|
|
= form_tag team_update_admin_project_path(@project), class: "bulk_import", method: :put do
|
2012-09-03 20:53:16 +02:00
|
|
|
%table.zebra-striped
|
2012-02-11 18:56:18 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2012-04-16 22:33:03 +02:00
|
|
|
%th Users
|
|
|
|
%th Project Access:
|
2012-02-11 18:56:18 +01:00
|
|
|
|
2012-04-16 22:33:03 +02:00
|
|
|
%tr
|
2012-09-10 08:09:55 +02:00
|
|
|
%td= select_tag :user_ids, options_from_collection_for_select(@users , :id, :name), multiple: true, data: {placeholder: 'Select users'}, class: 'chosen span5'
|
|
|
|
%td= select_tag :project_access, options_for_select(Project.access_options), {class: "project-access-select chosen span3"}
|
2012-01-21 18:03:47 +01:00
|
|
|
|
2012-04-16 22:33:03 +02:00
|
|
|
%tr
|
2013-01-29 21:18:19 +01:00
|
|
|
%td= submit_tag 'Add', class: "btn btn-primary"
|
2012-04-16 22:33:03 +02:00
|
|
|
%td
|
2012-06-04 00:37:27 +02:00
|
|
|
Read more about project permissions
|
2012-08-11 00:07:50 +02:00
|
|
|
%strong= link_to "here", help_permissions_path, class: "vlink"
|