Skip to content

Commit

Permalink
Merge pull request #782 from voc/feat/readable_viewcounts_lists
Browse files Browse the repository at this point in the history
implement fancy view counts in the conference listing, too
  • Loading branch information
danimo authored Jan 17, 2025
2 parents 456a2da + c70e0d9 commit cfa0951
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/frontend/events/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions app/views/frontend/shared/_event_metadata.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
= event.conference.title

0 comments on commit cfa0951

Please sign in to comment.