2011-11-18 20:10:07 +01:00
|
|
|
- unless notice.nil?
|
|
|
|
%p#notice= notice
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2011-11-18 21:54:56 +01:00
|
|
|
|
|
|
|
%h2= @admin_project.name
|
|
|
|
|
|
|
|
%table.round-borders
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Name:
|
|
|
|
%td
|
|
|
|
= @admin_project.name
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Code:
|
|
|
|
%td
|
|
|
|
= @admin_project.code
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Path:
|
|
|
|
%td
|
|
|
|
= @admin_project.path
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Description:
|
|
|
|
%td
|
|
|
|
= @admin_project.description
|
|
|
|
%tr
|
|
|
|
%td{:colspan => 2}
|
2011-11-21 08:26:10 +01:00
|
|
|
= link_to 'Edit', edit_admin_project_path(@admin_project), :class => "grey-button"
|
2011-11-18 21:54:56 +01:00
|
|
|
|
2011-10-08 23:36:38 +02:00
|
|
|
|
|
|
|
.span-14
|
|
|
|
|
2011-10-26 15:46:25 +02:00
|
|
|
%h2 Team
|
2011-10-08 23:36:38 +02:00
|
|
|
|
|
|
|
%table.round-borders
|
2011-11-18 21:54:56 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Added
|
|
|
|
%th Web
|
|
|
|
%th Git
|
|
|
|
%th Admin
|
|
|
|
%th
|
2011-10-08 23:36:38 +02:00
|
|
|
|
|
|
|
- @admin_project.users_projects.each do |tm|
|
|
|
|
%tr
|
|
|
|
%td= link_to tm.user_name, admin_team_member_path(tm)
|
|
|
|
%td= time_ago_in_words(tm.updated_at) + " ago"
|
|
|
|
%td= check_box_tag "read", 1, @admin_project.readers.include?(tm.user), :disabled => :disabled
|
|
|
|
%td= check_box_tag "commit", 1, @admin_project.writers.include?(tm.user), :disabled => :disabled
|
|
|
|
%td.span-2= check_box_tag "admin", 1, @admin_project.admins.include?(tm.user), :disabled => :disabled
|
|
|
|
%td= link_to 'Destroy', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete
|
|
|
|
|
2011-11-21 08:26:10 +01:00
|
|
|
= link_to 'New Team Member', new_admin_team_member_path(:team_member => {:project_id => @admin_project.id}), :class => "grey-button"
|