Skip to content

Commit

Permalink
ユーザー個別ページ、一覧ページのカウント数一覧で用いるメソッドをsizeに統一
Browse files Browse the repository at this point in the history
統一するメソッドは実行効率の観点からsizeとした。
  • Loading branch information
unikounio committed Mar 12, 2024
1 parent 1c14f1b commit 85180cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/views/users/_activity_counts.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@
dt.card-counts__item-label
| 日報
dd.card-counts__item-value
= link_or_text_for_count(user.reports.count, user_reports_path(user))
= link_or_text_for_count(user.reports.size, user_reports_path(user))
.card-counts__item
.card-counts__item-inner
dt.card-counts__item-label
| 提出物
dd.card-counts__item-value
= link_or_text_for_count(user.products.count, user_products_path(user))
= link_or_text_for_count(user.products.size, user_products_path(user))
.card-counts__item
.card-counts__item-inner
dt.card-counts__item-label
| コメント
dd.card-counts__item-value
= link_or_text_for_count(user.comments.count, user_comments_path(user))
= link_or_text_for_count(user.comments.size, user_comments_path(user))
.card-counts__item
.card-counts__item-inner
dt.card-counts__item-label
| 質問
dd.card-counts__item-value
= link_or_text_for_count(user.questions.count, user_questions_path(user))
= link_or_text_for_count(user.questions.size, user_questions_path(user))
.card-counts__item
.card-counts__item-inner
dt.card-counts__item-label
| 回答
dd.card-counts__item-value
= link_or_text_for_count(user.answers.count, user_answers_path(user))
= link_or_text_for_count(user.answers.size, user_answers_path(user))
.card-counts__item
.card-counts__item-inner
dt.card-counts__item-label
| ポートフォリオ
dd.card-counts__item-value
= link_or_text_for_count(user.works.count, user_portfolio_path(user))
= link_or_text_for_count(user.works.size, user_portfolio_path(user))

0 comments on commit 85180cf

Please sign in to comment.