From b7c36af49700c9d42f5a240bd2e0a88259542dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Mon, 16 Nov 2020 23:07:37 +0800 Subject: [PATCH] display comment acount on front page --- app/views/announcements/show.html.erb | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/app/views/announcements/show.html.erb b/app/views/announcements/show.html.erb index fae189c..3c58a90 100644 --- a/app/views/announcements/show.html.erb +++ b/app/views/announcements/show.html.erb @@ -79,8 +79,8 @@ hover_color = '#0095CF' if hover_color.blank? bg_color = site.orbit_bar_background_color rescue nil bg_color = bg_color.blank? ? '#3a3b3c' : lighten_color(bg_color,-40) - color1 = complementaryColor(bg_color) - color2 = lighten_color(color1,30) + color1 = lighten_color(bg_color,-40) + color2 = lighten_color(complementaryColor(bg_color),40) %>