Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
a9fba2cd
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,发现更多精彩内容 >>
未验证
提交
a9fba2cd
编写于
1月 01, 2014
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix modal dialogs
Signed-off-by:
N
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
上级
42fc32d8
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
109 addition
and
117 deletion
+109
-117
app/assets/stylesheets/generic/common.scss
app/assets/stylesheets/generic/common.scss
+4
-0
app/assets/stylesheets/sections/merge_requests.scss
app/assets/stylesheets/sections/merge_requests.scss
+1
-21
app/views/help/_shortcuts.html.haml
app/views/help/_shortcuts.html.haml
+30
-28
app/views/projects/blob/_remove.html.haml
app/views/projects/blob/_remove.html.haml
+20
-18
app/views/projects/merge_requests/show/_how_to_merge.html.haml
...iews/projects/merge_requests/show/_how_to_merge.html.haml
+40
-38
app/views/projects/merge_requests/show/_mr_accept.html.haml
app/views/projects/merge_requests/show/_mr_accept.html.haml
+1
-1
app/views/projects/wikis/_new.html.haml
app/views/projects/wikis/_new.html.haml
+13
-11
未找到文件。
app/assets/stylesheets/generic/common.scss
浏览文件 @
a9fba2cd
...
...
@@ -96,6 +96,10 @@ pre.well-pre {
color
:
#999
;
text-shadow
:
none
;
}
&
.label-inverse
{
background-color
:
#333333
;
}
}
/** Big Labels **/
...
...
app/assets/stylesheets/sections/merge_requests.scss
浏览文件 @
a9fba2cd
...
...
@@ -15,29 +15,9 @@
}
}
.accept_group
{
float
:
left
;
border
:
1px
solid
#ADA
;
padding
:
2px
;
@include
border-radius
(
5px
);
background
:
#CEB
;
.accept_merge_request
{
font-size
:
13px
;
float
:
left
;
}
.remove_branch_holder
{
margin-left
:
20px
;
margin-right
:
10px
;
float
:
left
;
}
label
{
color
:
#444
;
text-align
:
left
}
.accept-group
{
}
.how_to_merge_link
{
@extend
.primary
;
}
...
...
app/views/help/_shortcuts.html.haml
浏览文件 @
a9fba2cd
#modal-shortcuts
.modal.hide
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
Keyboard Shortcuts
.modal-body
%h5
Global Shortcuts
%p
%span
.label.label-inverse
s
–
Focus Search
%p
%span
.label.label-inverse
?
–
Show this dialog
.modal-dialog
.modal-content
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
Keyboard Shortcuts
.modal-body
%h5
Global Shortcuts
%p
%span
.label.label-inverse
s
–
Focus Search
%p
%span
.label.label-inverse
?
–
Show this dialog
%h5
Project Files browsing
%p
%span
.label.label-inverse
%i
.icon-arrow-up
–
Move selection up
%p
%span
.label.label-inverse
%i
.icon-arrow-down
–
Move selection down
%p
%span
.label.label-inverse
Enter
–
Open selection
%h5
Project Files browsing
%p
%span
.label.label-inverse
%i
.icon-arrow-up
–
Move selection up
%p
%span
.label.label-inverse
%i
.icon-arrow-down
–
Move selection down
%p
%span
.label.label-inverse
Enter
–
Open selection
app/views/projects/blob/_remove.html.haml
浏览文件 @
a9fba2cd
%div
#modal-remove-blob
.modal.hide
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
.page-title
Remove
#{
@blob
.
name
}
%p
.light
From branch
%strong
=
@ref
#modal-remove-blob
.modal.hide
.modal-dialog
.modal-content
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
.page-title
Remove
#{
@blob
.
name
}
%p
.light
From branch
%strong
=
@ref
.modal-body
=
form_tag
project_blob_path
(
@project
,
@id
),
method: :delete
do
.form-group.commit_message-group
=
label_tag
'commit_message'
,
class:
"control-label"
do
Commit message
.col-sm-10
=
text_area_tag
'commit_message'
,
params
[
:commit_message
],
placeholder:
"Removed this file because..."
,
required:
true
,
rows:
3
.form-group
.col-sm-10
=
submit_tag
'Remove file'
,
class:
'btn btn-remove'
=
link_to
"Cancel"
,
'#'
,
class:
"btn btn-cancel"
,
"data-dismiss"
=>
"modal"
.modal-body
=
form_tag
project_blob_path
(
@project
,
@id
),
method: :delete
do
.form-group.commit_message-group
=
label_tag
'commit_message'
,
class:
"control-label"
do
Commit message
.col-sm-10
=
text_area_tag
'commit_message'
,
params
[
:commit_message
],
placeholder:
"Removed this file because..."
,
required:
true
,
rows:
3
.form-group
.col-sm-10
=
submit_tag
'Remove file'
,
class:
'btn btn-remove'
=
link_to
"Cancel"
,
'#'
,
class:
"btn btn-cancel"
,
"data-dismiss"
=>
"modal"
app/views/projects/merge_requests/show/_how_to_merge.html.haml
浏览文件 @
a9fba2cd
%div
#modal_merge_info
.modal.hide
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
How to merge
.modal-body
-
if
@merge_request
.
for_fork?
-
source_remote
=
@merge_request
.
source_project
.
namespace
.
nil?
?
"source"
:
@merge_request
.
source_project
.
namespace
.
path
-
target_remote
=
@merge_request
.
target_project
.
namespace
.
nil?
?
"target"
:
@merge_request
.
target_project
.
namespace
.
path
%p
%strong
Step 1.
Checkout target branch and get recent objects from GitLab
Assuming remote for
#{
@merge_request
.
target_project
.
path_with_namespace
}
is called
#{
target_remote
}
remote for
#{
@merge_request
.
source_project_path
}
is called
#{
source_remote
}
%pre
.dark
:preserve
git checkout
#{
target_remote
}
#{
@merge_request
.
target_branch
}
git fetch
#{
source_remote
}
%p
%strong
Step 2.
Merge source branch into target branch and push changes to GitLab
%pre
.dark
:preserve
git merge
#{
source_remote
}
/
#{
@merge_request
.
source_branch
}
git push
#{
target_remote
}
#{
@merge_request
.
target_branch
}
-
else
%p
%strong
Step 1.
Checkout target branch and get recent objects from GitLab
%pre
.dark
:preserve
git checkout
#{
@merge_request
.
target_branch
}
git fetch origin
%p
%strong
Step 2.
Merge source branch into target branch and push changes to GitLab
%pre
.dark
:preserve
git merge origin/
#{
@merge_request
.
source_branch
}
git push origin
#{
@merge_request
.
target_branch
}
.modal-dialog
.modal-content
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
How to merge
.modal-body
-
if
@merge_request
.
for_fork?
-
source_remote
=
@merge_request
.
source_project
.
namespace
.
nil?
?
"source"
:
@merge_request
.
source_project
.
namespace
.
path
-
target_remote
=
@merge_request
.
target_project
.
namespace
.
nil?
?
"target"
:
@merge_request
.
target_project
.
namespace
.
path
%p
%strong
Step 1.
Checkout target branch and get recent objects from GitLab
Assuming remote for
#{
@merge_request
.
target_project
.
path_with_namespace
}
is called
#{
target_remote
}
remote for
#{
@merge_request
.
source_project_path
}
is called
#{
source_remote
}
%pre
.dark
:preserve
git checkout
#{
target_remote
}
#{
@merge_request
.
target_branch
}
git fetch
#{
source_remote
}
%p
%strong
Step 2.
Merge source branch into target branch and push changes to GitLab
%pre
.dark
:preserve
git merge
#{
source_remote
}
/
#{
@merge_request
.
source_branch
}
git push
#{
target_remote
}
#{
@merge_request
.
target_branch
}
-
else
%p
%strong
Step 1.
Checkout target branch and get recent objects from GitLab
%pre
.dark
:preserve
git checkout
#{
@merge_request
.
target_branch
}
git fetch origin
%p
%strong
Step 2.
Merge source branch into target branch and push changes to GitLab
%pre
.dark
:preserve
git merge origin/
#{
@merge_request
.
source_branch
}
git push origin
#{
@merge_request
.
target_branch
}
:javascript
...
...
app/views/projects/merge_requests/show/_mr_accept.html.haml
浏览文件 @
a9fba2cd
...
...
@@ -14,7 +14,7 @@
%strong
=
link_to
"click here"
,
"#modal_merge_info"
,
class:
"how_to_merge_link vlink"
,
title:
"How To Merge"
,
"data-toggle"
=>
"modal"
for instructions
.accept
_
group
.accept
-
group
=
f
.
submit
"Accept Merge Request"
,
class:
"btn btn-create accept_merge_request"
-
unless
@merge_request
.
disallow_source_branch_removal?
.remove_branch_holder
...
...
app/views/projects/wikis/_new.html.haml
浏览文件 @
a9fba2cd
%div
#modal-new-wiki
.modal.hide
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
.page-title
New Wiki Page
.modal-body
=
label_tag
:new_wiki_path
do
%span
Page slug
=
text_field_tag
:new_wiki_path
,
nil
,
placeholder:
'how-to-setup'
,
class:
'input-lg'
,
required:
true
,
:'data-wikis-path'
=>
project_wikis_path
(
@project
)
%p
.hint
Please don't use spaces and slashes
.modal-footer
=
link_to
'Build'
,
'#'
,
class:
'build-new-wiki btn btn-create'
.modal-dialog
.modal-content
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h3
.page-title
New Wiki Page
.modal-body
=
label_tag
:new_wiki_path
do
%span
Page slug
=
text_field_tag
:new_wiki_path
,
nil
,
placeholder:
'how-to-setup'
,
class:
'input-lg'
,
required:
true
,
:'data-wikis-path'
=>
project_wikis_path
(
@project
)
%p
.hint
Please don't use spaces and slashes
.modal-footer
=
link_to
'Build'
,
'#'
,
class:
'build-new-wiki btn btn-create'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录