Use async_count in more view locations (#32086)
This commit is contained in:
parent
77f5b127fa
commit
4fe7f213a6
8 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue