mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-30 04:01:00 -05:00
Tidy up where badges appear
This commit is contained in:
@@ -5,10 +5,8 @@
|
||||
.panel-body
|
||||
.row
|
||||
.col-md-2.col-xs-12.garden-info
|
||||
.row
|
||||
.col-md-12.col-xs-6
|
||||
= render 'gardens/photo', garden: garden
|
||||
.col-md-12.col-xs-6= display_garden_description(garden)
|
||||
%p= render 'gardens/photo', garden: garden
|
||||
%p= display_garden_description(garden)
|
||||
.col-md-10
|
||||
- if garden.plantings.current.size.positive?
|
||||
.row
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
- elsif planting.late?
|
||||
.badge.badge-late= t('.late_finishing')
|
||||
- else
|
||||
.badge{'data-toggle': "tooltip", 'data-placement': "top", title: 'Days until planting is finished'}
|
||||
.badge{'data-toggle': "tooltip", 'data-placement': "top", title: 'Predicted days until planting is finished'}
|
||||
= finished_icon
|
||||
= t('label.days_until_finished', number: days_from_now_to_finished(planting))
|
||||
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
.planting
|
||||
= render 'plantings/badges', planting: planting
|
||||
.planting-thumbnail
|
||||
= render 'plantings/quick_actions', planting: planting
|
||||
= link_to planting do
|
||||
= image_tag(planting_image_path(planting),
|
||||
class: 'img-responsive planting-thumbnail-photo',
|
||||
alt: planting)
|
||||
= render 'plantings/badges', planting: planting
|
||||
.planting-thumbnail-image
|
||||
= link_to planting do
|
||||
= image_tag(planting_image_path(planting),
|
||||
class: 'img-responsive planting-thumbnail-photo',
|
||||
alt: planting)
|
||||
|
||||
= render 'plantings/progress', planting: planting, show_explanation: false
|
||||
.planting-name= link_to planting.crop.name, planting
|
||||
|
||||
Reference in New Issue
Block a user