Skip to content

Node.js based forum software built for the modern web

human readable profile page numbers

Baris Soner Usakli8ef9d787f56e
diff --git a/public/src/forum/account.js b/public/src/forum/account.js
index f02cb17f29..efb200c896 100644
--- a/public/src/forum/account.js
+++ b/public/src/forum/account.js
@@ -13,6 +13,7 @@ define(['forum/accountheader'], function(header) {
app.enterRoom('user/' + theirid);
app.addCommasToNumbers();
+ app.makeNumbersHumanReadable($('.account .human-readable-number'));
$('.user-recent-posts img').addClass('img-responsive');
var followBtn = $('#follow-btn');
diff --git a/public/templates/account.tpl b/public/templates/account.tpl
index 2906d2b910..efdc406c7c 100644
--- a/public/templates/account.tpl
+++ b/public/templates/account.tpl
@@ -38,17 +38,17 @@
<div class="text-center account-stats panel panel-default">
<div class="panel-body">
<div class="inline-block text-center">
- <div class="formatted-number">{reputation}</div>
+ <div class="human-readable-number" title="{reputation}">{reputation}</div>
<div class="account-bio-label">[[user:reputation]]</div>
</div>
<div class="inline-block text-center">
- <div class="formatted-number">{postcount}</div>
+ <div class="human-readable-number" title="{postcount}">{postcount}</div>
<div class="account-bio-label">[[user:posts]]</div>
</div>
<div class="inline-block text-center">
- <div class="formatted-number">{profileviews}</div>
+ <div class="human-readable-number" title="{profileviews}">{profileviews}</div>
<div class="account-bio-label">[[user:profile_views]]</div>
</div>
</div>
@@ -84,10 +84,10 @@
<span class="account-bio-label">[[user:followers]]</span>
- <span class="formatted-number account-bio-value">{followerCount}</span>
+ <span class="human-readable-number account-bio-value" title="{followerCount}">{followerCount}</span>
<span class="account-bio-label">[[user:following]]</span>
- <span class="formatted-number account-bio-value">{followingCount}</span>
+ <span class="human-readable-number account-bio-value" title="{followingCount}">{followingCount}</span>
<span class="account-bio-label">[[user:joined]]</span>
<span class="timeago account-bio-value" title="{joindate}"></span>