mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 15:18:15 +00:00
are we plural
This commit is contained in:
parent
228a149880
commit
64a833329c
3 changed files with 3 additions and 3 deletions
|
|
@ -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?
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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!",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue