Merge branch 'dev' into following-page

This commit is contained in:
Brenda Wallace
2019-07-08 16:44:03 +12:00
committed by GitHub
10 changed files with 14 additions and 8 deletions

View File

Binary file not shown.

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

View File

@@ -13,6 +13,7 @@
@import 'members';
@import 'harvests';
@import 'seeds';
@import 'posts';
@import 'crops';
@import 'homepage';

View File

@@ -0,0 +1,5 @@
.post-content {
img {
max-width: 100%;
}
}

View File

@@ -35,6 +35,6 @@ module PhotosHelper
end
def placeholder_image
'placeholder_150.png'
'placeholder_600.png'
end
end

View File

@@ -28,7 +28,7 @@
.row
.col-md-8
= f.collection_radio_buttons(:garden_id, @planting.owner.gardens,
= f.collection_radio_buttons(:garden_id, @planting.owner.gardens.active,
:id, :name, required: true,
label: 'Where did you plant it?')
= link_to "Add a garden.", new_garden_path

View File

@@ -39,7 +39,7 @@
= @post.subject
= render 'posts/actions', post: @post
.card-body
= render 'posts/single', post: @post
.post-content= render 'posts/single', post: @post
.card-footer
= render 'posts/likes', post: @post

View File

@@ -16,7 +16,7 @@ describe PhotosHelper do
describe "crops" do
subject { crop_image_path(crop) }
it { is_expected.to eq 'placeholder_150.png' }
it { is_expected.to eq 'placeholder_600.png' }
describe "with a planting" do
before { planting.photos << planting_photo }
@@ -46,7 +46,7 @@ describe PhotosHelper do
describe "gardens" do
subject { garden_image_path(garden) }
it { is_expected.to eq 'placeholder_150.png' }
it { is_expected.to eq 'placeholder_600.png' }
describe "uses garden's own photo" do
before { garden.photos << garden_photo }
@@ -58,7 +58,7 @@ describe PhotosHelper do
describe 'plantings' do
subject { planting_image_path(planting) }
it { is_expected.to eq 'placeholder_150.png' }
it { is_expected.to eq 'placeholder_600.png' }
describe "uses planting's own photo" do
before { planting.photos << planting_photo }
@@ -69,7 +69,7 @@ describe PhotosHelper do
describe 'harvests' do
subject { harvest_image_path(harvest) }
it { is_expected.to eq 'placeholder_150.png' }
it { is_expected.to eq 'placeholder_600.png' }
describe "uses harvest's own photo" do
before { harvest.photos << harvest_photo }
@@ -80,7 +80,7 @@ describe PhotosHelper do
describe 'seeds' do
subject { seed_image_path(seed) }
it { is_expected.to eq 'placeholder_150.png' }
it { is_expected.to eq 'placeholder_600.png' }
describe "uses seed's own photo" do
before { seed.photos << seed_photo }