mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 01:05:01 -04:00
Merge branch 'dev' into following-page
This commit is contained in:
BIN
app/assets/images/placeholder.xcf
Normal file
BIN
app/assets/images/placeholder.xcf
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 KiB |
BIN
app/assets/images/placeholder_600.png
Normal file
BIN
app/assets/images/placeholder_600.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6.5 KiB |
@@ -13,6 +13,7 @@
|
||||
@import 'members';
|
||||
@import 'harvests';
|
||||
@import 'seeds';
|
||||
@import 'posts';
|
||||
@import 'crops';
|
||||
|
||||
@import 'homepage';
|
||||
|
||||
5
app/assets/stylesheets/posts.scss
Normal file
5
app/assets/stylesheets/posts.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
.post-content {
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,6 @@ module PhotosHelper
|
||||
end
|
||||
|
||||
def placeholder_image
|
||||
'placeholder_150.png'
|
||||
'placeholder_600.png'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user