Commit ce484fa9da2edd7e2be98600e2fe81770de31a90

Authored by Dmitriy Zaporozhets
1 parent 67896ea9

Fixed admin -> group -> show

app/views/admin/groups/show.html.haml
@@ -76,7 +76,7 @@ @@ -76,7 +76,7 @@
76 %tr{class: "user_#{u.id}"} 76 %tr{class: "user_#{u.id}"}
77 %td.name= link_to u.name, admin_user_path(u) 77 %td.name= link_to u.name, admin_user_path(u)
78 %td.projects_access 78 %td.projects_access
79 - - u.projects.in_namespace(@group).each do |project| 79 + - u.authorized_projects.in_namespace(@group).each do |project|
80 - u_p = u.users_projects.in_project(project).first 80 - u_p = u.users_projects.in_project(project).first
81 %span 81 %span
82 = project.name 82 = project.name
app/views/help/markdown.html.haml
1 %h3.page_title GitLab Flavored Markdown 1 %h3.page_title GitLab Flavored Markdown
2 .back_link 2 .back_link
3 - = link_to help_path do 3 + = link_to help_path do
4 ← to index 4 ← to index
5 %hr 5 %hr
6 6
@@ -120,7 +120,7 @@ @@ -120,7 +120,7 @@
120 for commits 120 for commits
121 121
122 -# this example will only be shown if the user has a project with at least one issue 122 -# this example will only be shown if the user has a project with at least one issue
123 - - if @project = current_user.projects.first 123 + - if @project = current_user.authorized_projects.first
124 - if issue = @project.issues.first 124 - if issue = @project.issues.first
125 %p For example in your #{link_to @project.name, project_path(@project)} project, writing: 125 %p For example in your #{link_to @project.name, project_path(@project)} project, writing:
126 %pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it." 126 %pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
features/steps/admin/admin_groups.rb
@@ -56,6 +56,4 @@ class AdminGroups < Spinach::FeatureSteps @@ -56,6 +56,4 @@ class AdminGroups < Spinach::FeatureSteps
56 def current_group 56 def current_group
57 @group ||= Group.first 57 @group ||= Group.first
58 end 58 end
59 -  
60 end 59 end
61 -  
features/steps/group/group.rb
@@ -71,7 +71,7 @@ class Groups < Spinach::FeatureSteps @@ -71,7 +71,7 @@ class Groups < Spinach::FeatureSteps
71 end 71 end
72 72
73 def project 73 def project
74 - current_group.authorized_projects.first 74 + current_group.projects.first
75 end 75 end
76 76
77 def assigned_to_me key 77 def assigned_to_me key