Skip to content

Commit

Permalink
fix link for sentiment
Browse files Browse the repository at this point in the history
  • Loading branch information
parterburn committed Dec 14, 2024
1 parent 2879cf4 commit a8fc33e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/entries/review.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit a8fc33e

Please sign in to comment.