Removed the '#' column on plantings/_thumbnail partial.

This commit is contained in:
AELOGICA
2015-07-08 10:30:37 +08:00
parent 43d7c36fc5
commit 01e676678c
5 changed files with 14 additions and 27 deletions

View File

@@ -47,15 +47,13 @@
- if @garden.plantings.current.size > 0
.container
.row
.col-md-1
%b #
.col-md-3
.col-md-4
%b Photo
.col-md-6
%b Planting Details
.col-md-2
- @garden.plantings.current.each.with_index do |planting_current, index_current|
= render partial: "plantings/thumbnail", locals: {:planting => planting_current, :index => index_current}
= render partial: "plantings/thumbnail", locals: {:planting => planting_current}
- else
%p
Nothing is currently planted here.
@@ -64,15 +62,13 @@
- if @garden.plantings.finished.size > 0
.container
.row
.col-md-1
%b #
.col-md-3
.col-md-4
%b Photo
.col-md-6
%b Planting Details
.col-md-2
- @garden.plantings.finished.each.with_index do |planting_finished, index_finished|
= render partial: "plantings/thumbnail", locals: {:planting => planting_finished, :index => index_finished}
- @garden.plantings.finished.each.with_index do |planting_finished|
= render partial: "plantings/thumbnail", locals: {:planting => planting_finished}
.col-md-3
%h4 About this garden

View File

@@ -37,15 +37,13 @@
- if g.featured_plantings.size > 0
.container
.row
.col-md-1
%b #
.col-md-3
.col-md-4
%b Photo
.col-md-6
%b Planting Details
.col-md-2
- g.featured_plantings.each.with_index do |planting, index|
= render partial: "plantings/thumbnail", locals: {:planting => planting, :index => index}
- g.featured_plantings.each.with_index do |planting|
= render partial: "plantings/thumbnail", locals: {:planting => planting}
%p
= link_to "More about this garden...", url_for(g)

View File

@@ -36,9 +36,7 @@
- plantings << planting
- if !plantings.blank?
.row
.col-md-1
%b #
.col-md-3
.col-md-4
%b Photo
.col-md-6
%b Planting Details

View File

@@ -1,7 +1,5 @@
.row
.col-md-1
= "##{index+1}"
.col-md-3
.col-md-4
= link_to image_tag((planting.default_photo ? planting.default_photo.thumbnail_url : 'placeholder_150.png'), :alt => planting.crop_id, :class => 'img'), planting
.col-md-6
%dl.dl-horizontal
@@ -29,8 +27,7 @@
- if can? :destroy, planting
%li= link_to 'Delete', planting, method: :delete, data: { confirm: 'Are you sure?' }, :class => 'btn btn-default btn-xs'
.row
.col-md-1
.col-md-3
.col-md-4
%ul{:style => "list-style-type:none"}
%li
%b Crop name:

View File

@@ -20,15 +20,13 @@
- if @plantings.size > 0
.row
.col-md-1
%b #
.col-md-3
.col-md-4
%b Photo
.col-md-6
%b Planting Details
.col-md-2
- @plantings.each.with_index do |planting, index|
= render partial: "plantings/thumbnail", locals: {:planting => planting, :index => index}
- @plantings.each.with_index do |planting|
= render partial: "plantings/thumbnail", locals: {:planting => planting}
%div.pagination
= page_entries_info @plantings, :model => "plantings"