Commit 805d408f0fcacbf07b60f1b002f39045bf7ce364

Authored by Dmitriy Zaporozhets
2 parents 0eb8a039 8fdeb43c

Merge pull request #1397 from tsigo/fix_markdown_help

Fix Markdown help page
Showing 1 changed file with 6 additions and 7 deletions   Show diff stats
app/views/help/markdown.html.haml
... ... @@ -88,14 +88,13 @@
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, writing:
94 94 %pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
95   - %p becomes
96   - = markdown "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
97   -
98   -
  95 + %p becomes:
  96 + %pre= gfm "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
  97 + - @project = nil # Prevent this from bubbling up to page title
99 98  
100 99 .span4.right
101 100 .alert.alert-info
... ...