new access rights implemented
This commit is contained in:
parent
68154e8fe9
commit
1b8f082061
11 changed files with 66 additions and 82 deletions
|
@ -51,9 +51,8 @@
|
|||
%thead
|
||||
%th Name
|
||||
%th Added
|
||||
%th Web
|
||||
%th Git
|
||||
%th Admin
|
||||
%th Project Access
|
||||
%th Repository Access
|
||||
%th
|
||||
%th
|
||||
|
||||
|
@ -62,9 +61,8 @@
|
|||
%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= select_tag :project_access, options_for_select(Project.access_options, tm.project_access), :class => "project-access-select", :disabled => :disabled
|
||||
%td= select_tag :repo_access, options_for_select(Repository.access_options, tm.repo_access), :class => "repo-access-select", :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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue