diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-04 11:18:26 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-04 11:18:26 +0400 |
commit | 6471d8c6521ef7a88f3aa893cc11c1da8077bdc0 (patch) | |
tree | 002b8a4e92ca78af56241c1a2d2a37f2e0f191e3 /app/views/help | |
parent | b44e9a08d5c0e012d645e75a321c6ea299b4bea1 (diff) |
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.
Diffstat (limited to 'app/views/help')
-rw-r--r-- | app/views/help/markdown.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/help/markdown.html.haml b/app/views/help/markdown.html.haml index 6a4bbb02c6c..43d3d4b0f4a 100644 --- a/app/views/help/markdown.html.haml +++ b/app/views/help/markdown.html.haml @@ -88,9 +88,9 @@ for commits -# this example will only be shown if the user has a project with at least one issue - - if @project = current_user.projects.first - - if issue = @project.issues.first - %p For example in your #{link_to @project.name, project_path(@project)} project something like + - if project = current_user.projects.first + - if issue = project.issues.first + %p For example in your #{link_to project.name, project_path(project)} project something like %pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it." %p becomes = markdown "This is related to ##{issue.id}. @#{current_user.name} is working on solving it." |