Commit 805d408f0fcacbf07b60f1b002f39045bf7ce364
Exists in
master
and in
4 other branches
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,14 +88,13 @@ | ||
88 | for commits | 88 | for commits |
89 | 89 | ||
90 | -# this example will only be shown if the user has a project with at least one issue | 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 | %pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it." | 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 | .span4.right | 99 | .span4.right |
101 | .alert.alert-info | 100 | .alert.alert-info |