Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fd476cf6
Commit
fd476cf6
authored
10 years ago
by
Job van der Voort
Committed by
Marin Jankovski
10 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
render items from doc
parent
e61e3eaa
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
29 deletions
+31
-29
app/assets/stylesheets/sections/help.scss
app/assets/stylesheets/sections/help.scss
+10
-10
app/controllers/help_controller.rb
app/controllers/help_controller.rb
+11
-0
app/views/help/_layout.html.haml
app/views/help/_layout.html.haml
+5
-5
app/views/help/index.html.haml
app/views/help/index.html.haml
+1
-1
app/views/help/show.html.haml
app/views/help/show.html.haml
+1
-0
config/routes.rb
config/routes.rb
+3
-13
No files found.
app/assets/stylesheets/sections/help.scss
View file @
fd476cf6
.documentation
{
padding-bottom
:
10px
;
p
{
padding
:
10px
;
margin
:
0
;
}
li
{
list-style-type
:
none
;
padding-left
:
10px
;
}
}
\ No newline at end of file
padding-bottom
:
10px
;
p
{
padding
:
10px
;
margin
:
0
;
}
li
{
list-style-type
:
none
;
padding-left
:
10px
;
}
}
This diff is collapsed.
Click to expand it.
app/controllers/help_controller.rb
View file @
fd476cf6
...
...
@@ -13,6 +13,17 @@ class HelpController < ApplicationController
end
end
def
show
@category
=
params
[
:category
]
@file
=
params
[
:file
]
if
File
.
exists?
(
Rails
.
root
.
join
(
'doc'
,
@category
,
@file
+
'.md'
))
render
'show'
else
not_found!
end
end
def
shortcuts
end
end
This diff is collapsed.
Click to expand it.
app/views/help/_layout.html.haml
View file @
fd476cf6
.row
.col-md-3
%h3
.page-title
Help
%ul
.nav.nav-pills.nav-stacked
-
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
}
-
links
.
each
do
|
title
,
path
|
%li
{
class:
current_page?
(
path
)
?
'active'
:
nil
}
=
link_to
title
,
path
/
%ul.nav.nav-pills.nav-stacked
/
- 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}
/
- links.each do |title,path|
/
%li{class: current_page?(path) ? 'active' : nil}
/
= link_to title, path
.col-md-9
.wiki
...
...
This diff is collapsed.
Click to expand it.
app/views/help/index.html.haml
View file @
fd476cf6
...
...
@@ -38,4 +38,4 @@
.title
Documentation
=
preserve
do
=
markdown
File
.
read
(
Rails
.
root
.
join
(
"doc"
,
"README.md"
))
\ No newline at end of file
=
markdown
File
.
read
(
Rails
.
root
.
join
(
"doc"
,
"README.md"
))
This diff is collapsed.
Click to expand it.
app/views/help/show.html.haml
0 → 100644
View file @
fd476cf6
=
markdown
File
.
read
(
Rails
.
root
.
join
(
'doc'
,
@category
,
@file
+
'.md'
))
This diff is collapsed.
Click to expand it.
config/routes.rb
View file @
fd476cf6
...
...
@@ -31,19 +31,9 @@ Gitlab::Application.routes.draw do
#
# Help
#
get
'help'
=>
'help#index'
get
'help/api'
=>
'help#api'
get
'help/api/:category'
=>
'help#api'
,
as:
'help_api_file'
get
'help/markdown'
=>
'help#markdown'
get
'help/permissions'
=>
'help#permissions'
get
'help/public_access'
=>
'help#public_access'
get
'help/raketasks'
=>
'help#raketasks'
get
'help/ssh'
=>
'help#ssh'
get
'help/system_hooks'
=>
'help#system_hooks'
get
'help/web_hooks'
=>
'help#web_hooks'
get
'help/workflow'
=>
'help#workflow'
get
'help/shortcuts'
get
'help/security'
get
'help'
=>
'help#index'
get
'help/:category/:file'
=>
'help#show'
#
# Global snippets
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment