mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-01 18:59:13 -05:00
16 lines
702 B
Plaintext
16 lines
702 B
Plaintext
.card.photo-card{id: "photo-#{photo.id}"}
|
|
= link_to photo_path(id: photo.id) do
|
|
= image_tag(photo.source == 'flickr' ? photo.fullsize_url : photo.thumbnail_url, alt: photo.title, class: 'img img-card')
|
|
.card-body
|
|
%h5.ellipsis
|
|
= photo_icon
|
|
= link_to photo.title, photo_path(id: photo.id)
|
|
- if photo.owner_slug
|
|
%i by #{link_to photo.owner_login_name, member_path(slug: photo.owner_slug)}
|
|
- if photo.date_taken.present?
|
|
%small.text-muted
|
|
%time{datetime: photo.date_taken}= I18n.l(photo.date_taken.to_date)
|
|
= render 'photos/likes', photo: photo
|
|
- if local_assigns[:item].is_a?(Seed)
|
|
= render 'photos/packet_label', photo: photo, seed: item
|