diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-05 10:24:57 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-05 10:24:57 +0300 |
commit | a5379ef9f785e66d56c43d0bd792e4da37f929a9 (patch) | |
tree | 534488985dfa89b15f0465da79fa23ccbd4a9014 | |
parent | fe2cb593f99f0cf2c4ac4efe624ae8b4b11f1be8 (diff) | |
download | gitlab-ce-a5379ef9f785e66d56c43d0bd792e4da37f929a9.tar.gz |
Cleaner help page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/views/help/index.html.haml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml index a89ccde7924..219693af09f 100644 --- a/app/views/help/index.html.haml +++ b/app/views/help/index.html.haml @@ -1,5 +1,5 @@ -.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 |