Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
15093f91
Commit
15093f91
authored
7 years ago
by
Eugen Rochko
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Shorten display of large numbers on public profiles (#4711)
parent
f92d991e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/views/accounts/_header.html.haml
+3
-3
3 additions, 3 deletions
app/views/accounts/_header.html.haml
config/i18n-tasks.yml
+2
-2
2 additions, 2 deletions
config/i18n-tasks.yml
config/locales/en.yml
+11
-0
11 additions, 0 deletions
config/locales/en.yml
with
16 additions
and
5 deletions
app/views/accounts/_header.html.haml
+
3
−
3
View file @
15093f91
...
...
@@ -37,15 +37,15 @@
.details-counters
.counter
{
class:
active_nav_class
(
short_account_url
(
account
))
}
=
link_to
short_account_url
(
account
),
class:
'u-url u-uid'
do
%span
.counter-number
=
number_
with_delimiter
account
.
statuses_count
%span
.counter-number
=
number_
to_human
account
.
statuses_count
%span
.counter-label
=
t
(
'accounts.posts'
)
.counter
{
class:
active_nav_class
(
account_following_index_url
(
account
))
}
=
link_to
account_following_index_url
(
account
)
do
%span
.counter-number
=
number_
with_delimiter
account
.
following_count
%span
.counter-number
=
number_
to_human
account
.
following_count
%span
.counter-label
=
t
(
'accounts.following'
)
.counter
{
class:
active_nav_class
(
account_followers_url
(
account
))
}
=
link_to
account_followers_url
(
account
)
do
%span
.counter-number
=
number_
with_delimiter
account
.
followers_count
%span
.counter-number
=
number_
to_human
account
.
followers_count
%span
.counter-label
=
t
(
'accounts.followers'
)
This diff is collapsed.
Click to expand it.
config/i18n-tasks.yml
+
2
−
2
View file @
15093f91
...
...
@@ -36,7 +36,7 @@ ignore_missing:
-
'
activerecord.attributes.*'
-
'
activerecord.errors.*'
-
'
{devise,pagination,doorkeeper}.*'
-
'
{date,datetime,time}.*'
-
'
{date,datetime,time
,number
}.*'
-
'
simple_form.{yes,no}'
-
'
simple_form.{placeholders,hints,labels}.*'
-
'
simple_form.{error_notification,required}.:'
...
...
@@ -50,7 +50,7 @@ ignore_unused:
-
'
activerecord.attributes.*'
-
'
activerecord.errors.*'
-
'
{devise,pagination,doorkeeper}.*'
-
'
{date,datetime,time}.*'
-
'
{date,datetime,time
,number
}.*'
-
'
simple_form.{yes,no}'
-
'
simple_form.{placeholders,hints,labels}.*'
-
'
simple_form.{error_notification,required}.:'
...
...
This diff is collapsed.
Click to expand it.
config/locales/en.yml
+
11
−
0
View file @
15093f91
...
...
@@ -353,6 +353,17 @@ en:
reblog
:
body
:
'
Your
status
was
boosted
by
%{name}:'
subject
:
"
%{name}
boosted
your
status"
number
:
human
:
decimal_units
:
format
:
"
%n%u"
units
:
billion
:
B
million
:
M
quadrillion
:
Q
thousand
:
K
trillion
:
T
unit
:
'
'
pagination
:
next
:
Next
prev
:
Prev
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment