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
Boxiang Sun
gitlab-ce
Commits
dcac37d9
Commit
dcac37d9
authored
Jul 17, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle MR form page
parent
8587e3a3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
50 deletions
+49
-50
app/assets/images/merge.png
app/assets/images/merge.png
+0
-0
app/assets/stylesheets/sections/events.scss
app/assets/stylesheets/sections/events.scss
+0
-6
app/assets/stylesheets/sections/merge_requests.scss
app/assets/stylesheets/sections/merge_requests.scss
+9
-4
app/views/events/_event_last_push.html.haml
app/views/events/_event_last_push.html.haml
+2
-1
app/views/projects/merge_requests/_form.html.haml
app/views/projects/merge_requests/_form.html.haml
+38
-39
No files found.
app/assets/images/merge.png
deleted
100644 → 0
View file @
8587e3a3
593 Bytes
app/assets/stylesheets/sections/events.scss
View file @
dcac37d9
...
@@ -158,9 +158,3 @@
...
@@ -158,9 +158,3 @@
}
}
}
}
}
}
.event-last-push
.btn-create
{
position
:
relative
;
top
:
-3px
;
right
:
-30px
;
}
app/assets/stylesheets/sections/merge_requests.scss
View file @
dcac37d9
...
@@ -82,10 +82,6 @@
...
@@ -82,10 +82,6 @@
}
}
}
}
.mr_direction_tip
{
margin-top
:
40px
}
.label-branch
{
.label-branch
{
@include
border-radius
(
4px
);
@include
border-radius
(
4px
);
padding
:
2px
4px
;
padding
:
2px
4px
;
...
@@ -113,3 +109,12 @@
...
@@ -113,3 +109,12 @@
}
}
}
}
}
}
.merge-request-angle
{
text-align
:
center
;
margin-top
:
45px
;
}
.merge-request-info
{
padding
:
15px
0
;
}
app/views/events/_event_last_push.html.haml
View file @
dcac37d9
-
if
show_last_push_widget?
(
event
)
-
if
show_last_push_widget?
(
event
)
.
alert.alert-success.
event-last-push
.event-last-push
%span
You pushed to
%span
You pushed to
=
link_to
project_commits_path
(
event
.
project
,
event
.
ref_name
)
do
=
link_to
project_commits_path
(
event
.
project
,
event
.
ref_name
)
do
%strong
=
truncate
(
event
.
ref_name
,
length:
28
)
%strong
=
truncate
(
event
.
ref_name
,
length:
28
)
...
@@ -11,3 +11,4 @@
...
@@ -11,3 +11,4 @@
.pull-right
.pull-right
=
link_to
new_mr_path_from_push_event
(
event
),
title:
"New Merge Request"
,
class:
"btn btn-create btn-small"
do
=
link_to
new_mr_path_from_push_event
(
event
),
title:
"New Merge Request"
,
class:
"btn btn-create btn-small"
do
Create Merge Request
Create Merge Request
%hr
app/views/projects/merge_requests/_form.html.haml
View file @
dcac37d9
...
@@ -5,49 +5,48 @@
...
@@ -5,49 +5,48 @@
-
@merge_request
.
errors
.
full_messages
.
each
do
|
msg
|
-
@merge_request
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
%fieldset
%h3
.page-title
%legend
1. Select Branches
%i
.icon-code-fork
Branches
.merge-request-branches
.row
.span5
.light-well
%h5
.cgray
From (Head Branch)
=
f
.
select
(
:source_branch
,
@repository
.
branch_names
,
{
include_blank:
"Select branch"
},
{
class:
'chosen span4'
})
.mr_source_commit.prepend-top-10
.row
.span2
.span5
%h1
.merge-request-angle
.mr_branch_box
%i
.icon-angle-right
%h5
.cgray
From (Head Branch)
.span5
.body
.light-well
.padded
=
f
.
select
(
:source_branch
,
@repository
.
branch_names
,
{
include_blank:
"Select branch"
},
{
class:
'chosen span4'
})
%h5
.cgray
To (Base Branch)
.mr_source_commit
=
f
.
select
(
:target_branch
,
@repository
.
branch_names
,
{
include_blank:
"Select branch"
},
{
class:
'chosen span4'
})
.mr_target_commit.prepend-top-10
.span2
%hr
%center
=
image_tag
"merge.png"
,
class:
'mr_direction_tip'
.span5
.mr_branch_box
%h5
.cgray
To (Base Branch)
.body
.padded
=
f
.
select
(
:target_branch
,
@repository
.
branch_names
,
{
include_blank:
"Select branch"
},
{
class:
'chosen span4'
})
.mr_target_commit
%fieldset
%h3
.page-title
%legend
2. Fill info
%i
.icon-paper-clip
Details
.merge-request-info
.clearfix
=
f
.
label
:title
do
%strong
=
"Title *"
.input
=
f
.
text_field
:title
,
class:
"input-xxlarge pad js-gfm-input"
,
maxlength:
255
,
rows:
5
,
required:
true
.clearfix
.left
=
f
.
label
:assignee_id
do
%i
.icon-user
Assign to
.input
=
f
.
select
(
:assignee_id
,
@project
.
team
.
members
.
sort_by
(
&
:name
).
map
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select user"
},
{
class:
'chosen span3'
})
.left
=
f
.
label
:milestone_id
do
%i
.icon-time
Milestone
.input
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
map
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
include_blank:
"Select milestone"
},
{
class:
'chosen'
})
.ui-box.ui-box-show
.ui-box-head
.clearfix
=
f
.
label
:title
do
%strong
=
"Title *"
.input
=
f
.
text_field
:title
,
class:
"input-xxlarge pad js-gfm-input"
,
maxlength:
255
,
rows:
5
,
required:
true
.ui-box-body
.clearfix
.left
=
f
.
label
:assignee_id
do
%i
.icon-user
Assign to
.input
=
f
.
select
(
:assignee_id
,
@project
.
team
.
members
.
sort_by
(
&
:name
).
map
{
|
p
|
[
p
.
name
,
p
.
id
]
},
{
include_blank:
"Select user"
},
{
class:
'chosen span3'
})
.left
=
f
.
label
:milestone_id
do
%i
.icon-time
Milestone
.input
=
f
.
select
(
:milestone_id
,
@project
.
milestones
.
active
.
all
.
map
{
|
p
|
[
p
.
title
,
p
.
id
]
},
{
include_blank:
"Select milestone"
},
{
class:
'chosen'
})
.control-group
.form-actions
.form-actions
-
if
@merge_request
.
new_record?
-
if
@merge_request
.
new_record?
...
...
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