Skip to content

Commit

Permalink
Merge pull request #7140 from fjordllc/condition-ruby
Browse files Browse the repository at this point in the history
条件分岐の書き方修正
  • Loading branch information
machida authored Dec 16, 2023
2 parents 0c7160f + 4fb334d commit d16cefb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/users/comments/_comment.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
.card-list-item(class="is-#{commentable.class.to_s.tableize.singularize}")
.card-list-item__inner
.card-list-item__label
case commentable.class.to_s
when 'Event'
- case commentable.class.to_s
- when 'Event'
span.card-list-item__label-inner.is-sm
| 特別<br>イベント
when 'RegularEvent'
- when 'RegularEvent'
span.card-list-item__label-inner.is-sm
| 定期<br>イベント
else
- else
span.card-list-item__label-inner
= t("activerecord.models.#{commentable.class.to_s.tableize.singularize}")
.card-list-item__rows
Expand Down

0 comments on commit d16cefb

Please sign in to comment.