Commit 8fdeb43c36767fc10a0298598fd7452fa609faee

Authored by Robert Speicher
1 parent 34a48d55

Fix Help/Markdown: Take 2

Showing 1 changed file with 4 additions and 5 deletions   Show diff stats
app/views/help/markdown.html.haml
@@ -90,12 +90,11 @@ @@ -90,12 +90,11 @@
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 91 - if @project = current_user.projects.first
92 - if issue = @project.issues.first 92 - if issue = @project.issues.first
93 - %p For example in your #{link_to @project.name, project_path(@project)} project something like 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