Growstuff/growstuff

View on GitHub
app/views/photos/_hero.html.haml

Summary

Maintainability
Test Coverage
.photo.hero.jumbotron
  .row
    .col-6
      = image_tag(photo.thumbnail_url, alt: photo.title, class: 'img img-responsive hero-photo')
    .col-6
      %h3= link_to photo.title, photo
      - if photo.date_taken
        Taken on #{I18n.l photo.date_taken}