Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
8e900113
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,发现更多精彩内容 >>
未验证
提交
8e900113
编写于
1月 01, 2014
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Restyle wiki for for twbs3
Signed-off-by:
N
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
上级
eaec2350
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
30 addition
and
27 deletion
+30
-27
app/views/projects/edit_tree/show.html.haml
app/views/projects/edit_tree/show.html.haml
+1
-1
app/views/projects/wikis/_form.html.haml
app/views/projects/wikis/_form.html.haml
+24
-23
app/views/projects/wikis/_nav.html.haml
app/views/projects/wikis/_nav.html.haml
+1
-1
app/views/projects/wikis/edit.html.haml
app/views/projects/wikis/edit.html.haml
+4
-2
未找到文件。
app/views/projects/edit_tree/show.html.haml
浏览文件 @
8e900113
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
=
label_tag
'commit_message'
,
class:
"control-label"
do
=
label_tag
'commit_message'
,
class:
"control-label"
do
Commit message
Commit message
.col-sm-10
.col-sm-10
=
text_area_tag
'commit_message'
,
''
,
placeholder:
"Update
#{
@blob
.
name
}
"
,
required:
true
,
rows:
3
=
text_area_tag
'commit_message'
,
''
,
placeholder:
"Update
#{
@blob
.
name
}
"
,
required:
true
,
rows:
3
,
class:
'form-control'
.form-actions
.form-actions
=
hidden_field_tag
'last_commit'
,
@last_commit
=
hidden_field_tag
'last_commit'
,
@last_commit
=
hidden_field_tag
'content'
,
''
,
id:
"file-content"
=
hidden_field_tag
'content'
,
''
,
id:
"file-content"
...
...
app/views/projects/wikis/_form.html.haml
浏览文件 @
8e900113
=
form_for
[
@project
,
@wiki
],
method:
@wiki
.
persisted?
?
:put
:
:post
do
|
f
|
=
form_for
[
@project
,
@wiki
],
method:
@wiki
.
persisted?
?
:put
:
:post
,
html:
{
class:
'form-horizontal'
}
do
|
f
|
-
if
@wiki
.
errors
.
any?
-
if
@wiki
.
errors
.
any?
#error_explanation
#error_explanation
%h2
=
"
#{
pluralize
(
@wiki
.
errors
.
count
,
"error"
)
}
prohibited this wiki from being saved:"
%h2
=
"
#{
pluralize
(
@wiki
.
errors
.
count
,
"error"
)
}
prohibited this wiki from being saved:"
...
@@ -6,29 +6,30 @@
...
@@ -6,29 +6,30 @@
-
@wiki
.
errors
.
full_messages
.
each
do
|
msg
|
-
@wiki
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.issue-box
%h3
.title
.edit-wiki-header
=
@wiki
.
title
.
titleize
=
f
.
hidden_field
:title
,
value:
@wiki
.
title
=
f
.
hidden_field
:title
,
value:
@wiki
.
title
=
f
.
select
:format
,
options_for_select
(
GollumWiki
::
MARKUPS
,
{
selected:
@wiki
.
format
}),
{},
class:
"pull-right input-medium"
.form-group
=
f
.
label
:format
,
class:
"pull-right"
,
style:
"padding-right: 20px;"
=
f
.
label
:format
,
class:
'control-label'
.context
.col-sm-10
=
f
.
select
:format
,
options_for_select
(
GollumWiki
::
MARKUPS
,
{
selected:
@wiki
.
format
}),
{},
class:
"form-control"
.row
.col-sm-2
.col-sm-10
.col-sm-10
%span
.cgray
%p
.cgray
Wiki content is parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
Wiki content is parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
To link to a (new) page you can just type
To link to a (new) page you can just type
%code
[Link Title](page-slug)
%code
[Link Title](page-slug)
\.
\.
.description
.form-group
.form-group
=
f
.
label
:content
=
f
.
label
:content
,
class:
'control-label'
.col-sm-10
=
f
.
text_area
:content
,
class:
'span8 js-gfm-input'
,
rows:
18
.col-sm-10
.description
=
f
.
text_area
:content
,
class:
'form-control js-gfm-input'
,
rows:
18
.form-group
.form-group
=
f
.
label
:commit_message
=
f
.
label
:commit_message
,
class:
'control-label'
.col-sm-10
=
f
.
text_field
:message
,
class:
'span8'
,
rows:
18
.col-sm-10
=
f
.
text_field
:message
,
class:
'form-control'
,
rows:
18
.form-actions
.form-actions
-
if
@wiki
&&
@wiki
.
persisted?
-
if
@wiki
&&
@wiki
.
persisted?
=
f
.
submit
'Save changes'
,
class:
"btn-save btn"
=
f
.
submit
'Save changes'
,
class:
"btn-save btn"
...
...
app/views/projects/wikis/_nav.html.haml
浏览文件 @
8e900113
%ul
.nav.nav-tabs
%ul
.nav.nav-tabs
.append-bottom-20
=
nav_link
(
html_options:
{
class:
params
[
:id
]
==
'home'
?
'active'
:
''
})
do
=
nav_link
(
html_options:
{
class:
params
[
:id
]
==
'home'
?
'active'
:
''
})
do
=
link_to
'Home'
,
project_wiki_path
(
@project
,
:home
)
=
link_to
'Home'
,
project_wiki_path
(
@project
,
:home
)
...
...
app/views/projects/wikis/edit.html.haml
浏览文件 @
8e900113
=
render
'nav'
=
render
'nav'
%h3
.page-title
%h3
.page-title
Editing page
Editing -
=
render
'main_links'
%span
.light
#{
@wiki
.
title
.
titleize
}
=
render
'main_links'
%hr
=
render
'form'
=
render
'form'
.pull-right
.pull-right
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录