Commit 23e36202d263fb8e665f271c55d949ff38b9ae28

Authored by Drew Blessing
1 parent 477e9f87

Improve Help navigation UI

Make hash keys symbols
Showing 1 changed file with 6 additions and 32 deletions   Show diff stats
app/views/help/_layout.html.haml
1 .row 1 .row
2 .span3{:"data-spy" => 'affix'} 2 .span3{:"data-spy" => 'affix'}
3 - .ui-box  
4 - .title  
5 - Help  
6 - %ul.well-list  
7 - %li  
8 - %strong= link_to "Workflow", help_workflow_path  
9 - %li  
10 - %strong= link_to "SSH keys", help_ssh_path  
11 -  
12 - %li  
13 - %strong= link_to "GitLab Markdown", help_markdown_path  
14 -  
15 - %li  
16 - %strong= link_to "Permissions", help_permissions_path  
17 -  
18 - %li  
19 - %strong= link_to "API", help_api_path  
20 -  
21 - %li  
22 - %strong= link_to "Web Hooks", help_web_hooks_path  
23 -  
24 - %li  
25 - %strong= link_to "Rake Tasks", help_raketasks_path  
26 -  
27 - %li  
28 - %strong= link_to "System Hooks", help_system_hooks_path  
29 -  
30 - %li  
31 - %strong= link_to "Public Access", help_public_access_path  
32 -  
33 - %li  
34 - %strong= link_to "Security", help_security_path 3 + %h3.page-title Help
  4 + %ul.nav.nav-pills.nav-stacked
  5 + - links = {:"Workflow" => help_workflow_path, :"SSH Keys" => help_ssh_path, :"GitLab Markdown" => help_markdown_path, :"Permissions" => help_permissions_path, :"API" => help_api_path, :"Web Hooks" => help_web_hooks_path, :"Rake Tasks" => help_raketasks_path, :"System Hooks" => help_system_hooks_path, :"Public Access" => help_public_access_path, :"Security" => help_security_path}
  6 + - links.each do |title,path|
  7 + %li{class: current_page?(path) ? 'active' : nil}
  8 + = link_to title, path
35 9
36 .span9.pull-right 10 .span9.pull-right
37 = yield 11 = yield