Commit a5379ef9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Cleaner help page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent fe2cb593
.jumbotron
%h2
%div
%h1
GitLab
%span= Gitlab::VERSION
%small= Gitlab::REVISION
......@@ -16,7 +16,17 @@
%br
Read more about GitLab at #{link_to "www.gitlab.com", "https://www.gitlab.com/", target: "_blank"}.
%hr
.row
.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
.col-md-4
.panel.panel-default
.panel-heading
......@@ -32,13 +42,3 @@
%li
Use
= link_to "shortcuts", '#', onclick: "new Shortcuts()"
.col-md-8
.panel.panel-default.documentation-index
.panel-heading Documentation
.panel-body
= 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 is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment