From 0258ab471b35ef7419c69fb1cfac9dd7b0d30072 Mon Sep 17 00:00:00 2001 From: Paul Arterburn Date: Fri, 13 Dec 2024 18:47:44 -0700 Subject: [PATCH] Better tagging --- app/views/entries/review.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/entries/review.html.haml b/app/views/entries/review.html.haml index a1c86b1c..6c397af6 100644 --- a/app/views/entries/review.html.haml +++ b/app/views/entries/review.html.haml @@ -42,8 +42,7 @@ = pie_chart(@sentiment_count, height: "230px", library: {backgroundColor: "#ffffff"}) .clearfix - @entries_with_sentiment.pluck(:sentiment).flatten.uniq.sort.each do |sentiment| - %div{style: "margin-top: 4px;"} - = link_to "View entries tagged #{sentiment}", entries_emotion_path(sentiment) + = link_to "#{Entry::AiTagger::EMOTIONS[sentiment]}", entries_emotion_path(sentiment), style: "text-decoration: none; margin-left: 2px; margin-right: 2px;", title: "View entries tagged with #{sentiment}" .col-md-8.col-md-offset-2.well .center{class: add_class}