Merge branch 'dev' into following-page

This commit is contained in:
Brenda Wallace authored and GitHub committed 2019-07-08 16:44:03 +12:00
commit 253c0cb939
10 files changed
+14 -8

No files matched your search

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

+1
View File
@@ -13,6 +13,7 @@
@import 'members';
@import 'harvests';
@import 'seeds';
@import 'posts';
@import 'crops';
@import 'homepage';
+5
View File
@@ -0,0 +1,5 @@
.post-content {
img {
max-width: 100%;
}
}
+1 -1
View File
@@ -35,6 +35,6 @@ module PhotosHelper
end
def placeholder_image
'placeholder_150.png'
'placeholder_600.png'
end
end
+1 -1
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
+1 -1
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
+5 -5
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 }