Commit 3208b6747d221068082220208fe4d0bda7a0b688

Authored by gitlabhq
1 parent 53421e06

links for admin

app/controllers/keys_controller.rb
... ... @@ -18,8 +18,6 @@ class KeysController < ApplicationController
18 18 respond_with(@key)
19 19 end
20 20  
21   - # DELETE /keys/1
22   - # DELETE /keys/1.json
23 21 def destroy
24 22 @key = current_user.keys.find(params[:id])
25 23 @key.destroy
... ...
app/views/admin/projects/index.html.haml
... ... @@ -11,7 +11,7 @@
11 11  
12 12 - @admin_projects.each do |project|
13 13 %tr
14   - %td= project.name
  14 + %td= link_to project.name, [:admin, project]
15 15 %td= project.code
16 16 %td= project.path
17 17 %td= project.users_projects.count
... ...
app/views/admin/team_members/index.html.haml
... ... @@ -14,7 +14,7 @@
14 14 - members.each do |tm|
15 15 - user = tm.user
16 16 %tr
17   - %td.span-6= tm.user_name
  17 + %td.span-6= link_to tm.user_name, admin_team_member_path(tm)
18 18 %td.span-6= tm.user_email
19 19 %td.span-1= check_box_tag "read", 1, project.readers.include?(user), :disabled => :disabled
20 20 %td.span-1= check_box_tag "commit", 1, project.writers.include?(user), :disabled => :disabled
... ...
app/views/admin/users/index.html.haml
... ... @@ -11,7 +11,7 @@
11 11 - @admin_users.each do |user|
12 12 %tr
13 13 %td= check_box_tag "admin", 1, user.admin, :disabled => :disabled
14   - %td= user.name
  14 + %td= link_to user.name, [:admin, user]
15 15 %td= user.email
16 16 %td= user.users_projects.count
17 17 %td= link_to 'Show', [:admin, user]
... ...