Use async_count in more view locations (#32086)

This commit is contained in:
Matt Jankowski 2024-10-04 08:29:43 -04:00 committed by GitHub
commit 4fe7f213a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 8 additions and 4 deletions

View file

@ -9,7 +9,7 @@
%strong= t('admin.relays.status')
%ul
%li= filter_link_to t('generic.all'), published: nil, unpublished: nil
%li= filter_link_to safe_join([t('admin.announcements.live'), "(#{number_with_delimiter(Announcement.published.count)})"], ' '), published: '1', unpublished: nil
%li= filter_link_to safe_join([t('admin.announcements.live'), "(#{number_with_delimiter(@published_announcements_count.value)})"], ' '), published: '1', unpublished: nil
- if @announcements.empty?
.muted-hint.center-text