mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-27 11:14:31 -04:00
extracted crop thumbnail into a partial
This commit is contained in:
9
app/views/crops/_thumbnail.html.haml
Normal file
9
app/views/crops/_thumbnail.html.haml
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
.thumbnail(style='height: 200px')
|
||||
= image_tag('http://placehold.it/150x150', :alt => '', :class => 'img-rounded')
|
||||
%p= link_to crop.system_name, crop
|
||||
- if crop.scientific_names.count > 0
|
||||
%p
|
||||
%i
|
||||
%small
|
||||
= crop.scientific_names.first.scientific_name
|
||||
Reference in New Issue
Block a user