Skip to content

Commit

Permalink
提出物が0の時を考慮しないようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
keiz1213 committed Aug 16, 2022
1 parent 75269c8 commit a723fb5
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions app/views/products/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,8 @@ header.page-header
#js-user-mentor-memo(data-user-id="#{@product.user.id}" data-products-mode="#{true}")
.side-tabs-contents__item#side-tabs-content-4
.card-list.a-card
- if @products.present?
- @products.each do |product|
= render partial: 'product', locals: { product: product }
- else
.card-list__message
.container
.o-empty-message
.o-empty-message__icon
i.fa-regular.fa-sad-tear
.o-empty-message__text
| 提出物はまだありません。
- @products.each do |product|
= render partial: 'product', locals: { product: product }

- if !current_user.adviser? && @product.practice.open_product?
.sticky-message
Expand Down

0 comments on commit a723fb5

Please sign in to comment.