summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Traits.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/Traits.pm
parentf7f096f2a07658381c4f98aef81c4991d997d19f (diff)
Move some VNDB::L10N stuff to VNDB::Func + intern VNDB::Func
Diffstat (limited to 'lib/VNDB/Handler/Traits.pm')
-rw-r--r--lib/VNDB/Handler/Traits.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VNDB/Handler/Traits.pm b/lib/VNDB/Handler/Traits.pm
index 8d689581..4b106fa2 100644
--- a/lib/VNDB/Handler/Traits.pm
+++ b/lib/VNDB/Handler/Traits.pm
@@ -215,7 +215,7 @@ sub traitedit {
[ input => short => 'name', name => mt '_traite_frm_name' ],
$self->authCan('tagmod') ? (
$t ?
- [ static => label => mt('_traite_frm_by'), content => $self->{l10n}->userstr($t->{addedby}, $t->{username}) ] : (),
+ [ static => label => mt('_traite_frm_by'), content => fmtuser($t->{addedby}, $t->{username}) ] : (),
[ select => short => 'state', name => mt('_traite_frm_state'), options => [
map [$_, mt '_traite_frm_state'.$_], 0..2 ] ],
[ checkbox => short => 'meta', name => mt '_traite_frm_meta' ]
@@ -302,7 +302,7 @@ sub traitlist {
row => sub {
my($s, $n, $l) = @_;
Tr;
- td class => 'tc1', $self->{l10n}->age($l->{added});
+ td class => 'tc1', fmtage $l->{added};
td class => 'tc3';
if($l->{group}) {
b class => 'grayedout', $l->{groupname}.' / ';
@@ -347,7 +347,7 @@ sub traitindex {
ul;
for (@$r) {
li;
- txt $self->{l10n}->age($_->{added});
+ txt fmtage $_->{added};
txt ' ';
b class => 'grayedout', $_->{groupname}.' / ' if $_->{group};
a href => "/i$_->{id}", $_->{name};
@@ -379,7 +379,7 @@ sub traitindex {
li mt '_traiti_queue_empty' if !@$r;
for (@$r) {
li;
- txt $self->{l10n}->age($_->{added});
+ txt fmtage $_->{added};
txt ' ';
b class => 'grayedout', $_->{groupname}.' / ' if $_->{group};
a href => "/i$_->{id}", $_->{name};