Commit ce484fa9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed admin -> group -> show

parent 67896ea9
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
%tr{class: "user_#{u.id}"} %tr{class: "user_#{u.id}"}
%td.name= link_to u.name, admin_user_path(u) %td.name= link_to u.name, admin_user_path(u)
%td.projects_access %td.projects_access
- u.projects.in_namespace(@group).each do |project| - u.authorized_projects.in_namespace(@group).each do |project|
- u_p = u.users_projects.in_project(project).first - u_p = u.users_projects.in_project(project).first
%span %span
= project.name = project.name
......
%h3.page_title GitLab Flavored Markdown %h3.page_title GitLab Flavored Markdown
.back_link .back_link
= link_to help_path do = link_to help_path do
← to index ← to index
%hr %hr
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
for commits for commits
-# this example will only be shown if the user has a project with at least one issue -# this example will only be shown if the user has a project with at least one issue
- if @project = current_user.projects.first - if @project = current_user.authorized_projects.first
- if issue = @project.issues.first - if issue = @project.issues.first
%p For example in your #{link_to @project.name, project_path(@project)} project, writing: %p For example in your #{link_to @project.name, project_path(@project)} project, writing:
%pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it." %pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
......
...@@ -56,6 +56,4 @@ class AdminGroups < Spinach::FeatureSteps ...@@ -56,6 +56,4 @@ class AdminGroups < Spinach::FeatureSteps
def current_group def current_group
@group ||= Group.first @group ||= Group.first
end end
end end
...@@ -71,7 +71,7 @@ class Groups < Spinach::FeatureSteps ...@@ -71,7 +71,7 @@ class Groups < Spinach::FeatureSteps
end end
def project def project
current_group.authorized_projects.first current_group.projects.first
end end
def assigned_to_me key def assigned_to_me key
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment