Skip to content

Commit 6471d8c

Browse files
committed
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.
1 parent b44e9a0 commit 6471d8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/views/help/markdown.html.haml

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
for commits
8989

9090
-# 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
9494
%pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
9595
%p becomes
9696
= markdown "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."

0 commit comments

Comments
 (0)