2012-09-26 09:49:20 -04:00
|
|
|
%h3.page_title
|
2012-11-25 11:52:12 -05:00
|
|
|
Project: #{@project.name_with_namespace}
|
2012-11-22 23:31:09 -05:00
|
|
|
= link_to edit_admin_project_path(@project), class: "btn right" do
|
2012-09-26 09:49:20 -04:00
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
2011-10-08 17:36:38 -04:00
|
|
|
|
2012-11-22 23:31:09 -05:00
|
|
|
- if !@project.has_post_receive_file? && @project.has_commits?
|
2012-10-04 03:51:35 -04:00
|
|
|
%br
|
|
|
|
.alert.alert-error
|
|
|
|
%span
|
|
|
|
%strong Important!
|
|
|
|
Project has commits but missing post-receive file.
|
|
|
|
%br
|
|
|
|
If you exported project manually - copy post-receive hook to bare repository
|
|
|
|
|
2012-04-16 16:33:03 -04:00
|
|
|
%br
|
2012-09-03 14:53:16 -04:00
|
|
|
%table.zebra-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Project
|
|
|
|
%th
|
2011-11-18 15:54:56 -05:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Name:
|
|
|
|
%td
|
2012-11-22 23:31:09 -05:00
|
|
|
= @project.name
|
2012-11-30 11:26:17 -05:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Namespace:
|
|
|
|
%td
|
|
|
|
- if @project.namespace
|
|
|
|
= @project.namespace.human_name
|
|
|
|
- else
|
|
|
|
Global
|
2011-11-18 15:54:56 -05:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Path:
|
|
|
|
%td
|
2012-11-22 23:31:09 -05:00
|
|
|
%code= @project.path_to_repo
|
2011-11-18 15:54:56 -05:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
2012-11-30 11:26:17 -05:00
|
|
|
Created by:
|
2011-11-18 15:54:56 -05:00
|
|
|
%td
|
2012-11-22 23:31:09 -05:00
|
|
|
= @project.owner_name || '(deleted)'
|
2012-04-17 13:27:18 -04:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Post Receive File:
|
|
|
|
%td
|
2012-11-22 23:31:09 -05:00
|
|
|
= check_box_tag :post_receive_file, 1, @project.has_post_receive_file?, disabled: true
|
2012-04-16 16:33:03 -04:00
|
|
|
%br
|
|
|
|
%h3
|
|
|
|
Team
|
|
|
|
%small
|
2012-11-22 23:31:09 -05:00
|
|
|
(#{@project.users_projects.count})
|
2012-04-16 16:33:03 -04:00
|
|
|
%br
|
2012-09-03 14:53:16 -04:00
|
|
|
%table.zebra-striped
|
2012-04-16 16:33:03 -04:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Project Access
|
|
|
|
%th Repository Access
|
|
|
|
%th
|
2011-11-18 15:54:56 -05:00
|
|
|
|
2012-11-22 23:31:09 -05:00
|
|
|
- @project.users_projects.each do |tm|
|
2012-04-16 16:33:03 -04:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= link_to tm.user_name, admin_user_path(tm.user)
|
2012-09-26 09:49:20 -04:00
|
|
|
%td= tm.project_access_human
|
2012-08-10 18:07:50 -04:00
|
|
|
%td= link_to 'Edit Access', edit_admin_team_member_path(tm), class: "btn small"
|
|
|
|
%td= link_to 'Remove from team', admin_team_member_path(tm), confirm: 'Are you sure?', method: :delete, class: "btn danger small"
|
2011-10-08 17:36:38 -04:00
|
|
|
|
2012-04-16 16:33:03 -04:00
|
|
|
%br
|
|
|
|
%h3 Add new team member
|
|
|
|
%br
|
2012-11-22 23:31:09 -05:00
|
|
|
= form_tag team_update_admin_project_path(@project), class: "bulk_import", method: :put do
|
2012-09-03 14:53:16 -04:00
|
|
|
%table.zebra-striped
|
2012-02-11 12:56:18 -05:00
|
|
|
%thead
|
|
|
|
%tr
|
2012-04-16 16:33:03 -04:00
|
|
|
%th Users
|
|
|
|
%th Project Access:
|
2012-02-11 12:56:18 -05:00
|
|
|
|
2012-04-16 16:33:03 -04:00
|
|
|
%tr
|
2012-09-10 02:09:55 -04: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 12:03:47 -05:00
|
|
|
|
2012-04-16 16:33:03 -04:00
|
|
|
%tr
|
2012-08-10 18:07:50 -04:00
|
|
|
%td= submit_tag 'Add', class: "btn primary"
|
2012-04-16 16:33:03 -04:00
|
|
|
%td
|
2012-06-03 18:37:27 -04:00
|
|
|
Read more about project permissions
|
2012-08-10 18:07:50 -04:00
|
|
|
%strong= link_to "here", help_permissions_path, class: "vlink"
|