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 76 %tr{class: "user_#{u.id}"}
77 77 %td.name= link_to u.name, admin_user_path(u)
78 78 %td.projects_access
79   - - u.projects.in_namespace(@group).each do |project|
  79 + - u.authorized_projects.in_namespace(@group).each do |project|
80 80 - u_p = u.users_projects.in_project(project).first
81 81 %span
82 82 = project.name
... ...
app/views/help/markdown.html.haml
1 1 %h3.page_title GitLab Flavored Markdown
2 2 .back_link
3   - = link_to help_path do
  3 + = link_to help_path do
4 4 ← to index
5 5 %hr
6 6  
... ... @@ -120,7 +120,7 @@
120 120 for commits
121 121  
122 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 124 - if issue = @project.issues.first
125 125 %p For example in your #{link_to @project.name, project_path(@project)} project, writing:
126 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 56 def current_group
57 57 @group ||= Group.first
58 58 end
59   -
60 59 end
61   -
... ...
features/steps/group/group.rb
... ... @@ -71,7 +71,7 @@ class Groups < Spinach::FeatureSteps
71 71 end
72 72  
73 73 def project
74   - current_group.authorized_projects.first
  74 + current_group.projects.first
75 75 end
76 76  
77 77 def assigned_to_me key
... ...