Skip to content

Commit

Permalink
動画一覧ページに表示する情報の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
a-terumoto-gs committed Mar 22, 2024
1 parent 93d2d09 commit 9e3d5a4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/views/movies/_movie_for_index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
.thumbnail-card.a-card
.thumbnail-card__inner
.thumbnail-card__row
- if movie.thumbnail.attached?
= image_tag movie.thumbnail.variant(resize_to_limit: [1200, 630]), class: 'thumbnail-card__image'
- else
= image_tag('work-blank.svg', class: 'thumbnail-card__image')
= image_tag movie.thumbnail.variant(resize_to_limit: [1200, 630]), class: 'thumbnail-card__image'
.thumbnail-card__row
h2.thumbnail-card__title
= link_to movie, class: 'movie-item__image-link' do
Expand All @@ -22,5 +19,5 @@
= link_to movie.user.name, user_path(movie.user), class: 'a-user-name'
.thumbnail-card__metas
.thumbnail-card__meta
.thumbnail-card__date
= l(movie.created_at)
.thumbnail-card__tag
= movie.tag_list

0 comments on commit 9e3d5a4

Please sign in to comment.