From 1e824315052f799b001b8c111be0ffdd5478170e Mon Sep 17 00:00:00 2001 From: unikounio Date: Tue, 12 Mar 2024 12:14:21 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC?= =?UTF-8?q?=E5=80=8B=E5=88=A5=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=AE=E3=82=AB?= =?UTF-8?q?=E3=82=A6=E3=83=B3=E3=83=88=E6=95=B0=E4=B8=80=E8=A6=A7=E3=81=AB?= =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=88=E3=83=95=E3=82=A9=E3=83=AA=E3=82=AA?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_activity_counts.html.slim | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/app/views/users/_activity_counts.html.slim b/app/views/users/_activity_counts.html.slim index 007c1b7ab6c..57b89a0f01e 100644 --- a/app/views/users/_activity_counts.html.slim +++ b/app/views/users/_activity_counts.html.slim @@ -4,28 +4,34 @@ dl.card-counts__items dt.card-counts__item-label | 日報 dd.card-counts__item-value - = link_to user.reports.count, user_reports_path(user) + = link_to 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_to user.products.count, user_products_path(user) + = link_to 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_to user.comments.count, user_comments_path(user) + = link_to 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_to user.questions.count, user_questions_path(user) + = link_to 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_to user.answers.count, user_answers_path(user) + = link_to 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_to user.works.size, user_portfolio_path(user) From 9541c33cf7b9688ca3d3513d6ce23c657fb2280a Mon Sep 17 00:00:00 2001 From: unikounio Date: Tue, 12 Mar 2024 12:14:52 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC?= =?UTF-8?q?=E4=B8=80=E8=A6=A7=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=AE=E3=82=AB?= =?UTF-8?q?=E3=82=A6=E3=83=B3=E3=83=88=E6=95=B0=E4=B8=80=E8=A6=A7=E3=81=AB?= =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=88=E3=83=95=E3=82=A9=E3=83=AA=E3=82=AA?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/javascript/components/user-activity-counts.vue | 4 ++++ app/views/api/users/_list_user.json.jbuilder | 1 + 2 files changed, 5 insertions(+) diff --git a/app/javascript/components/user-activity-counts.vue b/app/javascript/components/user-activity-counts.vue index a17612733e3..bb4ed9c9445 100644 --- a/app/javascript/components/user-activity-counts.vue +++ b/app/javascript/components/user-activity-counts.vue @@ -21,6 +21,10 @@ activity-name='回答', :activity-count='user.answer_count', :activity-url='`${user.url}/answers`') + user-activity-count( + activity-name='ポートフォリオ', + :activity-count='user.work_count', + :activity-url='`${user.url}/portfolio`')