From 992c95ff255ac05ddf5f71d1f3217f89aedfc5bb Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Thu, 23 Aug 2018 14:57:43 -0400 Subject: [PATCH] Add healthy debate flare tag and sidebar widget (#449) --- app/labor/flare_tag.rb | 4 +++- app/views/articles/_sidebar_additional.html.erb | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/app/labor/flare_tag.rb b/app/labor/flare_tag.rb index c1bdbe295..e469093f5 100644 --- a/app/labor/flare_tag.rb +++ b/app/labor/flare_tag.rb @@ -5,12 +5,14 @@ class FlareTag end def tag - Rails.cache.fetch("article_flare_tag-#{article.id}-#{article.updated_at}", expires_in: 12.hours) do + Rails.cache. + fetch("article_flare_tag-#{article.id}-#{article.updated_at}", expires_in: 12.hours) do flares = ["explainlikeimfive", "ama", "techtalks", "help", "news", + "healthydebate", "showdev", "challenge", "anonymous", diff --git a/app/views/articles/_sidebar_additional.html.erb b/app/views/articles/_sidebar_additional.html.erb index e4a0f70fa..0a45dbe90 100644 --- a/app/views/articles/_sidebar_additional.html.erb +++ b/app/views/articles/_sidebar_additional.html.erb @@ -204,6 +204,20 @@ ASK FOR AN EXPLANATION +
+
+ #healthydebate +
+
+ + START A DEBATE +
+
<% if user_signed_in? %>