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
0
Merge Requests
0
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
Kazuhiko Shiozaki
gitlab-ce
Commits
a9580a15
Commit
a9580a15
authored
May 28, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the correct links, replace in search.
parent
59797b2f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
17 deletions
+11
-17
app/helpers/search_helper.rb
app/helpers/search_helper.rb
+9
-9
app/views/help/_layout.html.haml
app/views/help/_layout.html.haml
+0
-6
app/views/projects/_visibility_level.html.haml
app/views/projects/_visibility_level.html.haml
+1
-1
config/routes.rb
config/routes.rb
+1
-1
No files found.
app/helpers/search_helper.rb
View file @
a9580a15
...
@@ -33,15 +33,15 @@ module SearchHelper
...
@@ -33,15 +33,15 @@ module SearchHelper
# Autocomplete results for internal help pages
# Autocomplete results for internal help pages
def
help_autocomplete
def
help_autocomplete
[
[
{
label:
"help: API Help"
,
url:
help_
api_path
},
{
label:
"help: API Help"
,
url:
help_
page_path
(
"api"
,
"README"
)
},
{
label:
"help: Markdown Help"
,
url:
help_
markdown_path
},
{
label:
"help: Markdown Help"
,
url:
help_
page_path
(
"markdown"
,
"markdown"
)
},
{
label:
"help: Permissions Help"
,
url:
help_p
ermissions_path
},
{
label:
"help: Permissions Help"
,
url:
help_p
age_path
(
"permissions"
,
"permissions"
)
},
{
label:
"help: Public Access Help"
,
url:
help_p
ublic_access_path
},
{
label:
"help: Public Access Help"
,
url:
help_p
age_path
(
"public_access"
,
"public_access"
)
},
{
label:
"help: Rake Tasks Help"
,
url:
help_
raketasks_path
},
{
label:
"help: Rake Tasks Help"
,
url:
help_
page_path
(
"raketasks"
,
"README"
)
},
{
label:
"help: SSH Keys Help"
,
url:
help_
ssh_path
},
{
label:
"help: SSH Keys Help"
,
url:
help_
page_path
(
"ssh"
,
"README"
)
},
{
label:
"help: System Hooks Help"
,
url:
help_
system_hooks_path
},
{
label:
"help: System Hooks Help"
,
url:
help_
page_path
(
"system_hooks"
,
"system_hooks"
)
},
{
label:
"help: Web Hooks Help"
,
url:
help_
web_hooks_path
},
{
label:
"help: Web Hooks Help"
,
url:
help_
page_path
(
"web_hooks"
,
"web_hooks"
)
},
{
label:
"help: Workflow Help"
,
url:
help_
workflow_path
},
{
label:
"help: Workflow Help"
,
url:
help_
page_path
(
"workflow"
,
"README"
)
},
]
]
end
end
...
...
app/views/help/_layout.html.haml
View file @
a9580a15
.row
.row
.col-md-3
.col-md-3
%h3
.page-title
Help
%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
.col-md-9
.col-md-9
.wiki
.wiki
=
yield
=
yield
app/views/projects/_visibility_level.html.haml
View file @
a9580a15
.form-group.project-visibility-level-holder
.form-group.project-visibility-level-holder
=
f
.
label
:visibility_level
,
class:
'control-label'
do
=
f
.
label
:visibility_level
,
class:
'control-label'
do
Visibility Level
Visibility Level
=
link_to
"(?)"
,
help_p
ublic_access_path
=
link_to
"(?)"
,
help_p
age_path
(
"public_access"
,
"public_access"
)
.col-sm-10
.col-sm-10
-
if
can_change_visibility_level
-
if
can_change_visibility_level
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
-
Gitlab
::
VisibilityLevel
.
values
.
each
do
|
level
|
...
...
config/routes.rb
View file @
a9580a15
...
@@ -33,7 +33,7 @@ Gitlab::Application.routes.draw do
...
@@ -33,7 +33,7 @@ Gitlab::Application.routes.draw do
#
#
get
'help'
=>
'help#index'
get
'help'
=>
'help#index'
get
'help/:category/:file'
=>
'help#show'
get
'help/:category/:file'
=>
'help#show'
,
as: :help_page
#
#
# Global snippets
# Global snippets
...
...
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