Commit b00d36c5 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Resolve conflicts I understand

parent 89865601
...@@ -68,7 +68,6 @@ ...@@ -68,7 +68,6 @@
- elsif @build.runner - elsif @build.runner
\##{@build.runner.id} \##{@build.runner.id}
.btn-group.btn-group-justified{ role: :group } .btn-group.btn-group-justified{ role: :group }
<<<<<<< HEAD:app/views/projects/jobs/_sidebar.html.haml
- if @build.has_trace? - if @build.has_trace?
= link_to 'Raw', raw_namespace_project_job_path(@project.namespace, @project, @build), class: 'btn btn-sm btn-default' = link_to 'Raw', raw_namespace_project_job_path(@project.namespace, @project, @build), class: 'btn btn-sm btn-default'
- if @build.active? - if @build.active?
...@@ -78,10 +77,6 @@ ...@@ -78,10 +77,6 @@
class: "btn btn-sm btn-default", method: :post, class: "btn btn-sm btn-default", method: :post,
data: { confirm: "Are you sure you want to erase this build?" } do data: { confirm: "Are you sure you want to erase this build?" } do
Erase Erase
=======
- if @build.active?
= link_to "Cancel", cancel_namespace_project_job_path(@project.namespace, @project, @build), class: 'btn btn-sm btn-default', method: :post
>>>>>>> upstream/master:app/views/projects/jobs/_sidebar.html.haml
- if @build.trigger_request - if @build.trigger_request
.build-widget .build-widget
......
...@@ -64,11 +64,6 @@ ...@@ -64,11 +64,6 @@
Showing last Showing last
%span.js-truncated-info-size.truncated-info-size>< %span.js-truncated-info-size.truncated-info-size><
KiB of log - KiB of log -
<<<<<<< HEAD:app/views/projects/jobs/show.html.haml
%a.js-raw-link.raw-link{ :href => raw_namespace_project_job_path(@project.namespace, @project, @build) }>< Complete Raw
%code.bash.js-build-output
.build-loader-animation.js-build-refresh
=======
%a.js-raw-link.raw-link{ href: raw_namespace_project_job_path(@project.namespace, @project, @build) }>< Complete Raw %a.js-raw-link.raw-link{ href: raw_namespace_project_job_path(@project.namespace, @project, @build) }>< Complete Raw
.controllers .controllers
- if @build.has_trace? - if @build.has_trace?
...@@ -85,7 +80,6 @@ ...@@ -85,7 +80,6 @@
title: 'Erase Build', title: 'Erase Build',
class: 'has-tooltip js-erase-link' do class: 'has-tooltip js-erase-link' do
= icon('trash') = icon('trash')
>>>>>>> upstream/master:app/views/projects/jobs/show.html.haml
%button.js-scroll-up.btn-scroll.btn-transparent.btn-blank.has-tooltip{ type: 'button', %button.js-scroll-up.btn-scroll.btn-transparent.btn-blank.has-tooltip{ type: 'button',
disabled: true, disabled: true,
......
...@@ -22,7 +22,15 @@ module Gitlab ...@@ -22,7 +22,15 @@ module Gitlab
nil nil
end end
<<<<<<< HEAD def boolean_to_yes_no(bool)
if bool
'Yes'
else
'No'
end
end
# EE below
def try_megabytes_to_bytes(size) def try_megabytes_to_bytes(size)
Integer(size).megabytes Integer(size).megabytes
rescue ArgumentError rescue ArgumentError
...@@ -44,14 +52,6 @@ module Gitlab ...@@ -44,14 +52,6 @@ module Gitlab
end end
nil nil
=======
def boolean_to_yes_no(bool)
if bool
'Yes'
else
'No'
end
>>>>>>> upstream/master
end end
end end
end end
...@@ -416,11 +416,7 @@ feature 'Jobs', :feature do ...@@ -416,11 +416,7 @@ feature 'Jobs', :feature do
Capybara.current_session.driver.headers = { 'X-Sendfile-Type' => 'X-Sendfile' } Capybara.current_session.driver.headers = { 'X-Sendfile-Type' => 'X-Sendfile' }
build.run! build.run!
visit namespace_project_job_path(project.namespace, project, build) visit namespace_project_job_path(project.namespace, project, build)
<<<<<<< HEAD:spec/features/projects/jobs_spec.rb
page.within('.js-build-sidebar') { click_link 'Raw' }
=======
find('.js-raw-link-controller').click() find('.js-raw-link-controller').click()
>>>>>>> upstream/master:spec/features/projects/jobs_spec.rb
end end
it 'sends the right headers' do it 'sends the right headers' do
......
require 'spec_helper' require 'spec_helper'
describe Gitlab::Utils, lib: true do describe Gitlab::Utils, lib: true do
<<<<<<< HEAD
delegate :to_boolean, :which, to: :described_class
=======
delegate :to_boolean, :boolean_to_yes_no, to: :described_class delegate :to_boolean, :boolean_to_yes_no, to: :described_class
>>>>>>> upstream/master
# EE
delegate :which, to: :described_class
describe '.to_boolean' do describe '.to_boolean' do
it 'accepts booleans' do it 'accepts booleans' do
...@@ -37,18 +36,19 @@ describe Gitlab::Utils, lib: true do ...@@ -37,18 +36,19 @@ describe Gitlab::Utils, lib: true do
end end
end end
<<<<<<< HEAD describe '.boolean_to_yes_no' do
it 'converts booleans to Yes or No' do
expect(boolean_to_yes_no(true)).to eq('Yes')
expect(boolean_to_yes_no(false)).to eq('No')
end
end
# EE
describe '.which' do describe '.which' do
it 'finds the full path to an executable binary' do it 'finds the full path to an executable binary' do
expect(File).to receive(:executable?).with('/bin/sh').and_return(true) expect(File).to receive(:executable?).with('/bin/sh').and_return(true)
expect(which('sh', 'PATH' => '/bin')).to eq('/bin/sh') expect(which('sh', 'PATH' => '/bin')).to eq('/bin/sh')
=======
describe '.boolean_to_yes_no' do
it 'converts booleans to Yes or No' do
expect(boolean_to_yes_no(true)).to eq('Yes')
expect(boolean_to_yes_no(false)).to eq('No')
>>>>>>> upstream/master
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment