Skip to content

Commit

Permalink
コードの書き方をシンプルにした
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-24 committed Nov 17, 2024
1 parent bb9c1c9 commit d223b75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/courses/books/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ header.page-header
= book.title
.card-books-item__row
p.card-books-item__price
= "#{book.price.to_s(:delimited)}円(税込)"
| #{book.price.to_s(:delimited)}円(税込)
- if book.description.present?
.card-books-item__row
.card-books-item__description
Expand All @@ -69,7 +69,7 @@ header.page-header
li.tag-links__item
= link_to practice.title, practice_path(practice), class: 'tag-links__item-link'
hr.a-border-tint
- if current_user.admin? || current_user.mentor?
- if current_user.admin_or_mentor?
footer.card-footer.is-only-mentor
.card-main-actions
ul.card-main-actions__items
Expand Down

0 comments on commit d223b75

Please sign in to comment.