summaryrefslogtreecommitdiff
path: root/app/views/help/index.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-09-23 11:44:17 +0000
committerDouwe Maan <douwe@gitlab.com>2015-09-23 11:44:17 +0000
commitff63a166e9cbe9324d4be299cb87c26952efa67e (patch)
tree28bef1be6982a5424b6454d3476fca076a1ddc07 /app/views/help/index.html.haml
parente63b64de34a8f00fe1b77afe79dc240cdd654806 (diff)
parent95f73a68fa3ff235c35217b1c72666c5bad6ce03 (diff)
downloadgitlab-ce-ff63a166e9cbe9324d4be299cb87c26952efa67e.tar.gz
Merge branch 'rs-fix-help-links' into 'master'
Prevent double-prefixing of help page paths Closes #2679 See merge request !1400
Diffstat (limited to 'app/views/help/index.html.haml')
-rw-r--r--app/views/help/index.html.haml6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml
index f492aaf4c0a..ab7ed1b5d95 100644
--- a/app/views/help/index.html.haml
+++ b/app/views/help/index.html.haml
@@ -27,11 +27,7 @@
.col-md-8
.documentation-index
= preserve do
- - readme_text = File.read(Rails.root.join("doc", "README.md"))
- - text = readme_text.dup
- - readme_text.scan(/\]\(([^(]+)\)/) { |match| text.gsub!(match.first, "help/#{match.first}") }
- = markdown text
-
+ = markdown(@help_index)
.col-md-4
.panel.panel-default
.panel-heading