i8n for usercards

main
psychobunny 9 years ago
parent 7e2afb9457
commit 5f66560361

@ -1,6 +1,6 @@
"use strict"; "use strict";
/*globals ajaxify, config, utils, templates, app, socket, Slideout, NProgress*/ /*globals ajaxify, config, utils, app, socket, Slideout, NProgress*/
$(document).ready(function() { $(document).ready(function() {
setupNProgress(); setupNProgress();
@ -176,7 +176,7 @@ $(document).ready(function() {
data = (ajaxify.data.topics || ajaxify.data.posts)[index].user; data = (ajaxify.data.topics || ajaxify.data.posts)[index].user;
socket.emit('user.isFollowing', {uid: data.uid}, function(err, isFollowing) { socket.emit('user.isFollowing', {uid: data.uid}, function(err, isFollowing) {
templates.parse('modules/usercard', data, function(html) { app.parseAndTranslate('modules/usercard', data, function(html) {
var card = $(html); var card = $(html);
avatar.parents('a').after(card.hide()); avatar.parents('a').after(card.hide());

@ -15,11 +15,11 @@
<div class="row usercard-info"> <div class="row usercard-info">
<div class="col-xs-4"> <div class="col-xs-4">
<small>Posts</small> <small>[[global:posts]]</small>
<span class="human-readable-number">{postcount}</span> <span class="human-readable-number">{postcount}</span>
</div> </div>
<div class="col-xs-4"> <div class="col-xs-4">
<small>Reputation</small> <small>[[global:reputation]]</small>
<span class="human-readable-number">{reputation}</span> <span class="human-readable-number">{reputation}</span>
</div> </div>

Loading…
Cancel
Save