Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-17 16:48:22 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-17 16:48:22 +0400
commitdcac37d9e41f21485822647b922ac952bf64358a (patch)
tree03dd05cd506b5512dadcb6d85a72d3630bb094c7
parent8587e3a357add7371b2286f3ab642c9ea8f58e2e (diff)
Restyle MR form page
-rw-r--r--app/assets/images/merge.pngbin593 -> 0 bytes
-rw-r--r--app/assets/stylesheets/sections/events.scss6
-rw-r--r--app/assets/stylesheets/sections/merge_requests.scss13
-rw-r--r--app/views/events/_event_last_push.html.haml3
-rw-r--r--app/views/projects/merge_requests/_form.html.haml77
5 files changed, 49 insertions, 50 deletions
diff --git a/app/assets/images/merge.png b/app/assets/images/merge.png
deleted file mode 100644
index 4a6bb2e154d..00000000000
--- a/app/assets/images/merge.png
+++ /dev/null
Binary files differ
diff --git a/app/assets/stylesheets/sections/events.scss b/app/assets/stylesheets/sections/events.scss
index 4bc8de4266e..d63746fc4b7 100644
--- a/app/assets/stylesheets/sections/events.scss
+++ b/app/assets/stylesheets/sections/events.scss
@@ -158,9 +158,3 @@
}
}
}
-
-.event-last-push .btn-create {
- position: relative;
- top: -3px;
- right: -30px;
-}
diff --git a/app/assets/stylesheets/sections/merge_requests.scss b/app/assets/stylesheets/sections/merge_requests.scss
index a84ef71e743..24efdf5f78d 100644
--- a/app/assets/stylesheets/sections/merge_requests.scss
+++ b/app/assets/stylesheets/sections/merge_requests.scss
@@ -82,10 +82,6 @@
}
}
-.mr_direction_tip {
- margin-top:40px
-}
-
.label-branch {
@include border-radius(4px);
padding: 2px 4px;
@@ -113,3 +109,12 @@
}
}
}
+
+.merge-request-angle {
+ text-align: center;
+ margin-top: 45px;
+}
+
+.merge-request-info {
+ padding: 15px 0;
+}
diff --git a/app/views/events/_event_last_push.html.haml b/app/views/events/_event_last_push.html.haml
index fe79ecd5885..de5634d3c55 100644
--- a/app/views/events/_event_last_push.html.haml
+++ b/app/views/events/_event_last_push.html.haml
@@ -1,5 +1,5 @@
- if show_last_push_widget?(event)
- .alert.alert-success.event-last-push
+ .event-last-push
%span You pushed to
= link_to project_commits_path(event.project, event.ref_name) do
%strong= truncate(event.ref_name, length: 28)
@@ -11,3 +11,4 @@
.pull-right
= link_to new_mr_path_from_push_event(event), title: "New Merge Request", class: "btn btn-create btn-small" do
Create Merge Request
+ %hr
diff --git a/app/views/projects/merge_requests/_form.html.haml b/app/views/projects/merge_requests/_form.html.haml
index b3da15608e4..9327f4689ae 100644
--- a/app/views/projects/merge_requests/_form.html.haml
+++ b/app/views/projects/merge_requests/_form.html.haml
@@ -5,49 +5,48 @@
- @merge_request.errors.full_messages.each do |msg|
%li= msg
- %fieldset
- %legend 1. Select Branches
+ %h3.page-title
+ %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
- .span5
- .mr_branch_box
- %h5.cgray From (Head Branch)
- .body
- .padded= f.select(:source_branch, @repository.branch_names, { include_blank: "Select branch" }, {class: 'chosen span4'})
- .mr_source_commit
+ .span2
+ %h1.merge-request-angle
+ %i.icon-angle-right
+ .span5
+ .light-well
+ %h5.cgray To (Base Branch)
+ = f.select(:target_branch, @repository.branch_names, { include_blank: "Select branch" }, {class: 'chosen span4'})
+ .mr_target_commit.prepend-top-10
- .span2
- %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
+ %hr
- %fieldset
- %legend 2. Fill info
+ %h3.page-title
+ %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
- if @merge_request.new_record?