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:55:13 +01:00
|
|
|
%h2= @admin_user.name
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2011-11-18 21:55:13 +01:00
|
|
|
%table.round-borders
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Email:
|
|
|
|
%td
|
|
|
|
= @admin_user.email
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Admin:
|
|
|
|
%td= check_box_tag "admin", 1, @admin_user.admin, :disabled => :disabled
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Projects limit:
|
|
|
|
%td
|
|
|
|
= @admin_user.projects_limit
|
|
|
|
- unless @admin_user.skype.empty?
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Skype:
|
|
|
|
%td
|
|
|
|
= @admin_user.skype
|
|
|
|
- unless @admin_user.linkedin.empty?
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Linkedin:
|
|
|
|
%td
|
|
|
|
= @admin_user.linkedin
|
|
|
|
- unless @admin_user.twitter.empty?
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b
|
|
|
|
Twitter:
|
|
|
|
%td
|
|
|
|
= @admin_user.twitter
|
|
|
|
%tr
|
|
|
|
%td{:colspan => 2}
|
2011-11-21 08:26:10 +01:00
|
|
|
= link_to 'Edit', edit_admin_user_path(@admin_user), :class => "grey-button"
|
2011-10-08 23:36:38 +02:00
|
|
|
|
|
|
|
.span-14
|
2011-10-26 15:46:25 +02:00
|
|
|
%h2 Projects
|
2011-10-08 23:36:38 +02:00
|
|
|
|
|
|
|
%table.round-borders
|
|
|
|
%tr
|
2011-11-18 21:55:13 +01:00
|
|
|
%thead
|
|
|
|
%th Name
|
|
|
|
%th Added
|
|
|
|
%th Web
|
|
|
|
%th Git
|
|
|
|
%th Admin
|
|
|
|
%th
|
2011-11-21 08:26:10 +01:00
|
|
|
%th
|
2011-10-08 23:36:38 +02:00
|
|
|
|
|
|
|
- @admin_user.users_projects.each do |tm|
|
|
|
|
- project = tm.project
|
|
|
|
%tr
|
|
|
|
%td= link_to project.name, admin_project_path(project)
|
|
|
|
%td= time_ago_in_words(tm.updated_at) + " ago"
|
|
|
|
%td= check_box_tag "read", 1, project.readers.include?(@admin_user), :disabled => :disabled
|
|
|
|
%td= check_box_tag "commit", 1, project.writers.include?(@admin_usertm), :disabled => :disabled
|
|
|
|
%td.span-2= check_box_tag "admin", 1, project.admins.include?(@admin_user), :disabled => :disabled
|
|
|
|
%td= link_to 'Edit', edit_admin_team_member_path(tm)
|
|
|
|
%td= link_to 'Cancel', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete
|
|
|
|
|
2011-11-21 08:26:10 +01:00
|
|
|
= link_to 'Add To Another Project', new_admin_team_member_path(:team_member => {:user_id => @admin_user.id}), :class => "grey-button"
|