Growstuff/growstuff

View on GitHub
app/views/seeds/_thumbnail.html.haml

Summary

Maintainability
Test Coverage
.thumbnail
  .seed-thumbnail
    = link_to image_tag(seed_image_path(seed),
              alt: seed.crop.name, class: 'img'),
              seed_path(seed)
    .seedinfo
      .seed-name
        = link_to seed.crop, seed_path(seed)
- if seed.saved_at.present?
  %span= I18n.l(seed.saved_at.to_date)