From 0b4f6344601aeb4a0c809c9a7792b9b0a62b3b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Thu, 14 Sep 2023 10:36:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9feed=E6=8A=93=E4=B8=8D?= =?UTF-8?q?=E5=88=B0title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/announcements/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/announcements/show.html.erb b/app/views/announcements/show.html.erb index d10b751..df5beb2 100644 --- a/app/views/announcements/show.html.erb +++ b/app/views/announcements/show.html.erb @@ -33,12 +33,12 @@ if now_index != 0 prev_result = sorted[now_index-1] prev_url = params['url'] + '/' + prev_result.to_param - prev_content = "" + prev_content = "" end if now_index != sorted.length-1 next_result = sorted[now_index+1] next_url = params['url'] + '/' + next_result.to_param - next_content = "" + next_content = "" end if prev_content != '' || next_content != '' content = "
#{prev_content}#{next_content}
".html_safe