summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Users.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2016-01-19 18:54:40 +0100
committerYorhel <git@yorhel.nl>2016-01-19 18:58:22 +0100
commit0caed2e7674e8ee7419365e76f86d06c33b8c8aa (patch)
tree02d81be9cd5fa78897796e57b699963994c817d9 /lib/VNDB/Handler/Users.pm
parentf7f096f2a07658381c4f98aef81c4991d997d19f (diff)
Move some VNDB::L10N stuff to VNDB::Func + intern VNDB::Func
Diffstat (limited to 'lib/VNDB/Handler/Users.pm')
-rw-r--r--lib/VNDB/Handler/Users.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index e7fd9a4f..8c72ba82 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -54,7 +54,7 @@ sub userpage {
Tr;
td mt '_userpage_registered';
- td $self->{l10n}->date($u->{registered});
+ td fmtdate $u->{registered};
end;
Tr;
@@ -504,7 +504,7 @@ sub posts {
Tr;
td class => 'tc1'; a href => "/t$l->{tid}.$l->{num}", 't'.$l->{tid}; end;
td class => 'tc2'; a href => "/t$l->{tid}.$l->{num}", '.'.$l->{num}; end;
- td class => 'tc3', $self->{l10n}->date($l->{date});
+ td class => 'tc3', fmtdate $l->{date};
td class => 'tc4';
a href => "/t$l->{tid}.$l->{num}", $l->{title};
b class => 'grayedout'; lit bb2html $l->{msg}, 150; end;
@@ -613,7 +613,7 @@ sub list {
td class => 'tc1';
a href => '/u'.$l->{id}, $l->{username};
end;
- td class => 'tc2', $self->{l10n}->date($l->{registered});
+ td class => 'tc2', fmtdate $l->{registered};
td class => 'tc3'.($l->{hide_list} && $self->authCan('usermod') ? ' linethrough' : '');
lit $l->{hide_list} && !$self->authCan('usermod') ? '-' : !$l->{c_votes} ? 0 :
qq|<a href="/u$l->{id}/votes">$l->{c_votes}</a>|;
@@ -714,7 +714,7 @@ sub notifies {
input type => 'checkbox', name => 'notifysel', value => "$l->{id}";
end;
td class => 'tc2', mt "_usern_type_$l->{ntype}";
- td class => 'tc3', $self->{l10n}->age($l->{date});
+ td class => 'tc3', fmtage $l->{date};
td class => 'tc4';
a href => "/u$uid/notify/$l->{id}", "$l->{ltype}$l->{iid}".($l->{subid}?".$l->{subid}":'');
end;