From 45b73cc601a1c784c6b9c9331386217910578cdc Mon Sep 17 00:00:00 2001 From: rjtt17 Date: Tue, 20 Jul 2021 09:38:19 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=20>=20?= =?UTF-8?q?=E8=B3=AA=E5=95=8F=E4=B8=80=E8=A6=A7=20=E3=81=AB=E8=B3=AA?= =?UTF-8?q?=E5=95=8F=E3=81=8C=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88=E3=81=AE?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/questions/index.html.slim | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/views/users/questions/index.html.slim b/app/views/users/questions/index.html.slim index adfb269774a..8024e8ce8b5 100644 --- a/app/views/users/questions/index.html.slim +++ b/app/views/users/questions/index.html.slim @@ -14,5 +14,12 @@ header.page-header .page-body .container - .thread-list.a-card - = render partial: 'questions/question', collection: @questions, as: :question + - if @questions.present? + .thread-list.a-card + = render partial: 'questions/question', collection: @questions, as: :question + - else + .o-empty-message + .o-empty-message__icon + i.far.fa-sad-tear + p.o-empty-message__text + | 質問はまだありません。 From 7fd9462496aaf1d641a1b8c0d8154e58069659f6 Mon Sep 17 00:00:00 2001 From: rjtt17 Date: Tue, 20 Jul 2021 21:53:13 +0900 Subject: [PATCH 2/3] =?UTF-8?q?lint=E3=81=AE=E6=8C=87=E6=91=98=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/questions/index.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/questions/index.html.slim b/app/views/users/questions/index.html.slim index 8024e8ce8b5..83e7e7dbc5b 100644 --- a/app/views/users/questions/index.html.slim +++ b/app/views/users/questions/index.html.slim @@ -22,4 +22,4 @@ header.page-header .o-empty-message__icon i.far.fa-sad-tear p.o-empty-message__text - | 質問はまだありません。 + | 質問はまだありません。 From 13dcffbc843d9c8bf36d839ec6862bf26d34b3a5 Mon Sep 17 00:00:00 2001 From: rjtt17 Date: Tue, 20 Jul 2021 23:14:33 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=87=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/questions/index.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/questions/index.html.slim b/app/views/users/questions/index.html.slim index 83e7e7dbc5b..fdd618a3603 100644 --- a/app/views/users/questions/index.html.slim +++ b/app/views/users/questions/index.html.slim @@ -22,4 +22,4 @@ header.page-header .o-empty-message__icon i.far.fa-sad-tear p.o-empty-message__text - | 質問はまだありません。 + | 質問はまだありません。