fix mobile display

This commit is contained in:
Brenda Wallace
2019-11-19 14:25:14 +13:00
parent 72e348cdf6
commit cf0485c448
5 changed files with 8 additions and 11 deletions

View File

@@ -7,10 +7,5 @@
%strong
= link_to harvest.crop, harvest
%span.badge.badge-pill= harvest.plant_part
- if harvest.planting.present?
%p.card-text
%small.text-muted
Harvested from
= link_to harvest.planting, harvest.planting
.card-footer
.float-right=render 'members/tiny', member: harvest.owner

View File

@@ -14,7 +14,7 @@
#{ENV['GROWSTUFF_SITE_NAME']} helps you track what you're
harvesting from your home garden and see how productive it is.
.row
.col-2
.col-md-2
= render 'layouts/nav', model: Harvest
- if @owner
= render @owner
@@ -27,7 +27,7 @@
= icon 'fas', format.to_s
= format.upcase
.badge.badge-success= link_to 'API Methods', '/api-docs'
.col-10
.col-md-10
%section
%h2
= page_entries_info @harvests

View File

@@ -22,3 +22,5 @@
%h4= planting.crop
.text-center= render 'plantings/badges', planting: planting
= render 'plantings/progress', planting: planting
.card-footer
.float-right=render 'members/tiny', member: planting.owner

View File

@@ -12,7 +12,7 @@
= title('plantings', @owner, @crop, @planting)
.row
.col-2
.col-md-2
= render 'layouts/nav', model: Planting
%hr/
= link_to show_inactive_tickbox_path('plantings', owner: @owner, crop: @crop, show_all: @show_all) do
@@ -34,7 +34,7 @@
= format.upcase
.badge.badge-success= link_to 'API Methods', '/api-docs'
.col-10
.col-md-10
%section
%h2= page_entries_info @plantings

View File

@@ -11,7 +11,7 @@
= title('seeds', @owner, @crop, @planting)
.row
.col-2
.col-md-2
= render 'layouts/nav', model: Seed
%hr/
= link_to show_inactive_tickbox_path('seeds', owner: @owner, crop: @crop, show_all: @show_all) do
@@ -32,7 +32,7 @@
= icon 'fas', format.to_s
= format.upcase
.badge.badge-success= link_to 'API Methods', '/api-docs'
.col-10
.col-md-10
%section
%h2= page_entries_info @seeds
= will_paginate @seeds