are we plural

This commit is contained in:
24c02 2026-01-30 15:10:35 -05:00
parent 228a149880
commit 64a833329c
3 changed files with 3 additions and 3 deletions

View file

@ -105,7 +105,7 @@ class Components::Admin::Search::Index < Components::Base
end
div(style: "display: flex; align-items: center; gap: 16px;") do
div(style: "text-align: right; font-size: 12px; color: var(--fgColor-muted);") do
div { "#{user.total_files} files" }
div { pluralize(user.total_files, "file") }
div { user.total_storage_formatted }
end
if user.is_admin?

View file

@ -31,7 +31,7 @@ class Components::Uploads::Index < Components::Base
h1(style: "font-size: 2rem; font-weight: 600; margin: 0;") { "Your Uploads" }
p(style: "color: var(--fgColor-muted, #656d76); margin: 8px 0 0; font-size: 14px;") do
count = uploads.respond_to?(:total_count) ? uploads.total_count : uploads.size
plain "#{count} file#{count == 1 ? '' : 's'}"
plain pluralize(count, "file")
end
end

View file

@ -167,7 +167,7 @@ class FlavorTextService
"low-sodium edition",
'we put the ":3" in "S3"!',
"do not adjust your monitor.",
"only #{@random.rand(5..50)} missing #{[ "file", "files" ].sample(random: @random)}!",
"only #{@random.rand(5..50)} missing files!",
"why are you reading these",
"go outside",
"posture check!",