summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Users.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-12-13 18:45:09 +0100
committerYorhel <git@yorhel.nl>2010-12-13 18:45:09 +0100
commitd4722b01f646ec85ae44895a468c0a717991e15c (patch)
tree690044dd961f323a0576a629e190c983e229718c /lib/VNDB/Handler/Users.pm
parent9000f60e314c9d19dd1be5e8028cfe26b236f31d (diff)
Removed /u+/tags and replaced/added links to /g/links?u=X
The new tag link browser has replaced the crappy old user-tags-browser.
Diffstat (limited to 'lib/VNDB/Handler/Users.pm')
-rw-r--r--lib/VNDB/Handler/Users.pm13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index a53a5193..46bd3489 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -86,7 +86,15 @@ sub userpage {
Tr ++$i % 2 ? (class => 'odd') : ();
td mt '_userpage_tags';
- td !$u->{c_tags} ? '-' : mt '_userpage_tags_item', $u->{c_tags}, $u->{tagcount}, $u->{tagvncount};
+ td;
+ if(!$u->{c_tags}) {
+ txt '-';
+ } else {
+ txt mt '_userpage_tags_item', $u->{c_tags}, $u->{tagcount}, $u->{tagvncount};
+ txt ' ';
+ a href => "/g/links?u=$uid"; lit mt('_userpage_tags_browse').' &raquo;'; end;
+ }
+ end;
end;
Tr ++$i % 2 ? (class => 'odd') : ();
@@ -527,7 +535,7 @@ sub list {
lit !$l->{c_changes} ? 0 : qq|<a href="/u$l->{id}/hist">$l->{c_changes}</a>|;
end;
td class => 'tc5';
- lit !$l->{c_tags} ? 0 : qq|<a href="/u$l->{id}/tags">$l->{c_tags}</a>|;
+ lit !$l->{c_tags} ? 0 : qq|<a href="/g/links?u=$l->{id}">$l->{c_tags}</a>|;
end;
end;
},
@@ -545,6 +553,7 @@ sub notifies {
my $f = $self->formValidate(
{ name => 'p', required => 0, default => 1, template => 'int' },
{ name => 'r', required => 0, default => 0, enum => [0,1] },
+
);
return 404 if $f->{_err};