Commit 68eb394824f6d7edd895d8175d16f281af68073a
1 parent
baf591cc
Exists in
master
and in
4 other branches
Green button when we create new item, blue when save or some primary action
Showing
4 changed files
with
9 additions
and
6 deletions
Show diff stats
app/views/issues/_form.html.haml
app/views/merge_requests/_form.html.haml
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | .row |
| 12 | 12 | .span5 |
| 13 | 13 | .mr_branch_box |
| 14 | - %h5 From (Head Branch) | |
| 14 | + %h5.cgray From (Head Branch) | |
| 15 | 15 | .body |
| 16 | 16 | .padded= f.select(:source_branch, @repository.heads.map(&:name), { include_blank: "Select branch" }, {class: 'chosen span4'}) |
| 17 | 17 | .mr_source_commit |
| ... | ... | @@ -20,7 +20,7 @@ |
| 20 | 20 | %center= image_tag "merge.png", class: 'mr_direction_tip' |
| 21 | 21 | .span5 |
| 22 | 22 | .mr_branch_box |
| 23 | - %h5 To (Base Branch) | |
| 23 | + %h5.cgray To (Base Branch) | |
| 24 | 24 | .body |
| 25 | 25 | .padded= f.select(:target_branch, @repository.heads.map(&:name), { include_blank: "Select branch" }, {class: 'chosen span4'}) |
| 26 | 26 | .mr_target_commit |
| ... | ... | @@ -50,7 +50,10 @@ |
| 50 | 50 | .control-group |
| 51 | 51 | |
| 52 | 52 | .form-actions |
| 53 | - = f.submit 'Save', class: "btn save-btn" | |
| 53 | + - if @merge_request.new_record? | |
| 54 | + = f.submit 'Submit merge request', class: "btn success" | |
| 55 | + -else | |
| 56 | + = f.submit 'Save changes', class: "save-btn btn" | |
| 54 | 57 | - if @merge_request.new_record? |
| 55 | 58 | = link_to project_merge_requests_path(@project), class: "btn cancel-btn" do |
| 56 | 59 | Cancel | ... | ... |
app/views/projects/_new_form.html.haml
| ... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 | Project name is |
| 8 | 8 | .input |
| 9 | 9 | = f.text_field :name, placeholder: "Example Project", class: "xxlarge" |
| 10 | - = f.submit 'Create project', class: "btn primary project-submit" | |
| 10 | + = f.submit 'Create project', class: "btn success project-submit" | |
| 11 | 11 | |
| 12 | 12 | - if current_user.several_namespaces? |
| 13 | 13 | .clearfix | ... | ... |
features/steps/project/project_merge_requests.rb
| ... | ... | @@ -54,7 +54,7 @@ class ProjectMergeRequests < Spinach::FeatureSteps |
| 54 | 54 | fill_in "merge_request_title", :with => "Wiki Feature" |
| 55 | 55 | select "master", :from => "merge_request_source_branch" |
| 56 | 56 | select "stable", :from => "merge_request_target_branch" |
| 57 | - click_button "Save" | |
| 57 | + click_button "Submit merge request" | |
| 58 | 58 | end |
| 59 | 59 | |
| 60 | 60 | Then 'I should see merge request "Wiki Feature"' do | ... | ... |