mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-30 20:51:23 -04:00
Tidied up the planting actions on gardens#index
This commit is contained in:
@@ -132,11 +132,13 @@ p.stats
|
||||
padding: 0
|
||||
border: 1px solid darken($beige, 10%)
|
||||
border-radius: 4px
|
||||
.planting-actions
|
||||
top: -8em
|
||||
.planting-name
|
||||
position: relative
|
||||
top: -1em
|
||||
.planting-quick-actions
|
||||
position: absolute
|
||||
top: 0
|
||||
right: 2em
|
||||
|
||||
dl.planting-attributes
|
||||
dt
|
||||
|
||||
@@ -1,13 +1,20 @@
|
||||
.planting
|
||||
.planting-badges
|
||||
= render 'plantings/badges', planting: planting
|
||||
.hover-wrapper
|
||||
.thumbnail
|
||||
.planting-thumbnail{ class: planting_classes(planting) }
|
||||
= link_to image_tag(planting_image_path(planting),
|
||||
alt: planting.crop.name, class: 'img'), planting_path(planting)
|
||||
= render 'plantings/progress', planting: planting, show_explanation: false
|
||||
.planting-name
|
||||
= link_to planting.crop.name, planting
|
||||
.text
|
||||
.planting-actions= render 'plantings/actions', planting: planting
|
||||
|
||||
.planting-quick-actions.pull-right
|
||||
%a.btn.btn-default.btn-xs#actionsMenu.nav-link.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", href: "#"}
|
||||
=icon('fas', 'bars')
|
||||
.dropdown-menu{"aria-labelledby" => "actionsMenu"}
|
||||
%p= render 'plantings/actions', planting: planting
|
||||
|
||||
.thumbnail
|
||||
|
||||
.planting-thumbnail{ class: planting_classes(planting) }
|
||||
= link_to image_tag(planting_image_path(planting),
|
||||
alt: planting.crop.name, class: 'img'), planting_path(planting)
|
||||
= render 'plantings/progress', planting: planting, show_explanation: false
|
||||
|
||||
.planting-name
|
||||
= link_to planting.crop.name, planting
|
||||
|
||||
|
||||
Reference in New Issue
Block a user