From a8fc33e3689c16c432dbd050e6fffa896d4b4a6b Mon Sep 17 00:00:00 2001 From: Paul Arterburn Date: Fri, 13 Dec 2024 18:29:37 -0700 Subject: [PATCH] fix link for sentiment --- app/views/entries/review.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/entries/review.html.haml b/app/views/entries/review.html.haml index 6e2385dd..a1c86b1c 100644 --- a/app/views/entries/review.html.haml +++ b/app/views/entries/review.html.haml @@ -37,10 +37,13 @@ .s-entry-date %h2 Sentiment %h3 - %span= link_to "#{pluralize(@entries_with_sentiment.size, 'entry')} tagged", group_entries_path("emotion", @year) + %span= "#{pluralize(@entries_with_sentiment.size, 'entry')} tagged" .s-review-details = 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) .col-md-8.col-md-offset-2.well .center{class: add_class}