diff options
author | Yorhel <git@yorhel.nl> | 2009-02-21 18:42:46 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-02-21 18:42:46 +0100 |
commit | c8e759f0ea8b54a21822481458ddb00a3373bc08 (patch) | |
tree | 787c3dd8df83563edc20fee07349f86e3233732b /lib/VNDB/Util/CommonHTML.pm | |
parent | 100f2e3e63f34a69832a71a85a1b560aee0e2474 (diff) |
Made a start on the VN/tag linking
...a *very* basic start. As in, there's nothing at all to be seen.
Diffstat (limited to 'lib/VNDB/Util/CommonHTML.pm')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index 5477fae3..ca87e599 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -49,6 +49,12 @@ sub htmlMainTabs { end; } + if($type eq 'v' && $self->authCan('tag')) { + li $sel eq 'tagmod' ? (class => 'tabselected') : (); + a href => "/$id/tagmod", 'modify tags'; + end; + } + if( $type eq 'u' && ($self->authInfo->{id} && $obj->{id} == $self->authInfo->{id} || $self->authCan('usermod')) || $type =~ /[vrp]/ && $self->authCan('edit') && (!$obj->{locked} || $self->authCan('lock')) && (!$obj->{hidden} || $self->authCan('del')) || $type eq 'g' && $self->authCan('tagmod') |