links for admin
This commit is contained in:
parent
53421e060a
commit
3208b6747d
|
@ -18,8 +18,6 @@ class KeysController < ApplicationController
|
|||
respond_with(@key)
|
||||
end
|
||||
|
||||
# DELETE /keys/1
|
||||
# DELETE /keys/1.json
|
||||
def destroy
|
||||
@key = current_user.keys.find(params[:id])
|
||||
@key.destroy
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
- @admin_projects.each do |project|
|
||||
%tr
|
||||
%td= project.name
|
||||
%td= link_to project.name, [:admin, project]
|
||||
%td= project.code
|
||||
%td= project.path
|
||||
%td= project.users_projects.count
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
- members.each do |tm|
|
||||
- user = tm.user
|
||||
%tr
|
||||
%td.span-6= tm.user_name
|
||||
%td.span-6= link_to tm.user_name, admin_team_member_path(tm)
|
||||
%td.span-6= tm.user_email
|
||||
%td.span-1= check_box_tag "read", 1, project.readers.include?(user), :disabled => :disabled
|
||||
%td.span-1= check_box_tag "commit", 1, project.writers.include?(user), :disabled => :disabled
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
- @admin_users.each do |user|
|
||||
%tr
|
||||
%td= check_box_tag "admin", 1, user.admin, :disabled => :disabled
|
||||
%td= user.name
|
||||
%td= link_to user.name, [:admin, user]
|
||||
%td= user.email
|
||||
%td= user.users_projects.count
|
||||
%td= link_to 'Show', [:admin, user]
|
||||
|
|
Loading…
Reference in a new issue