Commit c347fd3f880925c1883df798f8d7dc85a57e80d2
Exists in
master
and in
4 other branches
Merge pull request #1366 from tsigo/markdown_help
Change @project instance variable to a local in views/help/markdown
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." | ... | ... |