summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-09-04 00:28:04 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-09-04 00:28:04 -0700
commitc347fd3f880925c1883df798f8d7dc85a57e80d2 (patch)
tree2d1be59f31c021674225ba3b1dba80a9d23a60f9
parentcb2b888bd62fa266b9f3423f8675bcf45b1b9abe (diff)
parent6471d8c6521ef7a88f3aa893cc11c1da8077bdc0 (diff)
downloadgitlab-ce-c347fd3f880925c1883df798f8d7dc85a57e80d2.tar.gz
Merge pull request #1366 from tsigo/markdown_help
Change @project instance variable to a local in views/help/markdown
-rw-r--r--app/views/help/markdown.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/help/markdown.html.haml b/app/views/help/markdown.html.haml
index 6a4bbb02c6c..43d3d4b0f4a 100644
--- a/app/views/help/markdown.html.haml
+++ b/app/views/help/markdown.html.haml
@@ -88,9 +88,9 @@
for commits
-# 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
+ - 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
%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."