summaryrefslogtreecommitdiff
path: root/app/views/help
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-06 17:20:57 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-06 17:20:57 -0400
commit8fdeb43c36767fc10a0298598fd7452fa609faee (patch)
tree0b24cc58d57a14baae9b6ede2aeab6ce067dedef /app/views/help
parent34a48d55cc9763fb65c50b80e545c99350ebc6ca (diff)
downloadgitlab-ce-8fdeb43c36767fc10a0298598fd7452fa609faee.tar.gz
Fix Help/Markdown: Take 2
Diffstat (limited to 'app/views/help')
-rw-r--r--app/views/help/markdown.html.haml9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/views/help/markdown.html.haml b/app/views/help/markdown.html.haml
index 0644ede3e9f..2086b08c890 100644
--- a/app/views/help/markdown.html.haml
+++ b/app/views/help/markdown.html.haml
@@ -90,12 +90,11 @@
-# this example will only be shown if the user has a project with at least one issue
- if @project = current_user.projects.first
- if issue = @project.issues.first
- %p For example in your #{link_to @project.name, project_path(@project)} project something like
+ %p For example in your #{link_to @project.name, project_path(@project)} project, writing:
%pre= "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
- %p becomes
- = markdown "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
-
-
+ %p becomes:
+ %pre= gfm "This is related to ##{issue.id}. @#{current_user.name} is working on solving it."
+ - @project = nil # Prevent this from bubbling up to page title
.span4.right
.alert.alert-info