Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
fd476cf6
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
fd476cf6
编写于
4月 18, 2014
作者:
J
Job van der Voort
提交者:
Marin Jankovski
5月 29, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
render items from doc
上级
e61e3eaa
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
31 addition
and
29 deletion
+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
未找到文件。
app/assets/stylesheets/sections/help.scss
浏览文件 @
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
;
}
}
app/controllers/help_controller.rb
浏览文件 @
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
app/views/help/_layout.html.haml
浏览文件 @
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
...
...
app/views/help/index.html.haml
浏览文件 @
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"
))
app/views/help/show.html.haml
0 → 100644
浏览文件 @
fd476cf6
=
markdown
File
.
read
(
Rails
.
root
.
join
(
'doc'
,
@category
,
@file
+
'.md'
))
config/routes.rb
浏览文件 @
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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录