From d709df722a4005520b41b536ecf27df1ff62560b Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Fri, 17 Jan 2025 22:36:49 +0100 Subject: [PATCH] implement fancy view counts in the conference listing, too --- app/views/frontend/events/show.html.haml | 2 +- app/views/frontend/shared/_event_metadata.haml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/frontend/events/show.html.haml b/app/views/frontend/events/show.html.haml index f17ec09d..86ba81be 100644 --- a/app/views/frontend/events/show.html.haml +++ b/app/views/frontend/events/show.html.haml @@ -131,7 +131,7 @@ %span.icon.icon-upload{title: 'release date'} = @event.release_date.to_date %li - %span.icon.icon-eye{title: "view count: #{delimited_views_count(@event.view_count)}"} + %span.icon.icon-eye{title: "#{delimited_views_count(@event.view_count)} views"} = human_readable_views_count(@event.view_count) - if @event.link.present? %li diff --git a/app/views/frontend/shared/_event_metadata.haml b/app/views/frontend/shared/_event_metadata.haml index 90e04f79..b7dafdfd 100644 --- a/app/views/frontend/shared/_event_metadata.haml +++ b/app/views/frontend/shared/_event_metadata.haml @@ -23,11 +23,11 @@ %span.icon.icon-calendar-o = event.display_date %li.view-count - %span.icon.icon-eye - = event.view_count + %span.icon.icon-eye{title: "#{delimited_views_count(event.view_count)} views"} + = human_readable_views_count(event.view_count) %li.persons = render partial: 'frontend/shared/event_persons', locals: { persons: event.persons } - if show_conference && event.conference.present? .conference %a{href: conference_path(acronym: event.conference.acronym)} - = event.conference.title \ No newline at end of file + = event.conference.title