mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-06-06 15:17:19 -04:00
* Add GBIF cient * Add lookup * Add autocomplete for GBIF lookup * Add extra detail to scientific names * Autocomplete * Add routes * Rmeove mapping * Add autocomplete * Update GBIF data on save * db/schema * Style * Extract service * Add concern * Add concern * Save photos * Initial coverage * Coverage * Add coverage * Shut up, codeclimate * Shut up, codeclimate * Unused * Shut up, codeclimate * Apply suggestions from code review * Remove localhost * Fix rubocop * Fix rubocop * Add UI links * Add rake * Indent * Update Gemfile.lock * Update lib/tasks/gbif.rake * Update app/views/crops/_scientific_names.html.haml * Rubocop * Expand edit photo form * Fix error * Add model validations * Skip photos without backlinks * Fix tests * Add photo words * Allow blank * Rubocop and handle invalid legacy data * Apply suggestions from code review * Update lib/tasks/gbif.rake
14 lines
597 B
Plaintext
14 lines
597 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
|