Commit 6471d8c6521ef7a88f3aa893cc11c1da8077bdc0
1 parent
b44e9a08
Exists in
master
and in
4 other branches
Change @project instance variable to a local in views/help/markdown
It was erroneously appending the project name to the page's title, even though the Help system isn't specific to one project.
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/views/help/markdown.html.haml
... | ... | @@ -88,9 +88,9 @@ |
88 | 88 | for commits |
89 | 89 | |
90 | 90 | -# this example will only be shown if the user has a project with at least one issue |
91 | - - if @project = current_user.projects.first | |
92 | - - if issue = @project.issues.first | |
93 | - %p For example in your #{link_to @project.name, project_path(@project)} project something like | |
91 | + - if project = current_user.projects.first | |
92 | + - if issue = project.issues.first | |
93 | + %p For example in your #{link_to project.name, project_path(project)} project something like | |
94 | 94 | %pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it." |
95 | 95 | %p becomes |
96 | 96 | = markdown "This is related to ##{issue.id}. @#{current_user.name} is working on solving it." | ... | ... |