diff options
author | morkt <> | 2014-12-22 11:14:18 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2014-12-22 11:20:39 +0100 |
commit | ac784a64d0f74f9e04ac41890075c411e50ca823 (patch) | |
tree | f527926f531975751563e3d9286ce02212152850 /lib/VNDB/Util | |
parent | df383d117908160d1a84ce4519edc0c9bcf08c3b (diff) |
Initial implementation of a staff/seiyuu database
Diffstat (limited to 'lib/VNDB/Util')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 9 | ||||
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index d4bba99f..8474f9c7 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -27,7 +27,7 @@ sub htmlMainTabs { return if $type eq 'g' && !$self->authCan('tagmod'); ul class => 'maintabs'; - if($type =~ /[uvrpc]/) { + if($type =~ /[uvrpcs]/) { li $sel eq 'hist' ? (class => 'tabselected') : (); a href => "/$id/hist", mt '_mtabs_hist'; end; @@ -73,7 +73,7 @@ sub htmlMainTabs { } if( $type eq 'u' && ($self->authInfo->{id} && $obj->{id} == $self->authInfo->{id} || $self->authCan('usermod')) - || $type =~ /[vrpc]/ && $self->authCan('edit') && ((!$obj->{locked} && !$obj->{hidden}) || $self->authCan('dbmod')) + || $type =~ /[vrpcs]/ && $self->authCan('edit') && ((!$obj->{locked} && !$obj->{hidden}) || $self->authCan('dbmod')) || $type =~ /[gi]/ && $self->authCan('tagmod') ) { li $sel eq 'edit' ? (class => 'tabselected') : (); @@ -284,8 +284,8 @@ sub revdiff { # Arguments: v/r/p, obj sub htmlEditMessage { my($self, $type, $obj, $title, $copy) = @_; - my $num = {v => 0, r => 1, p => 2, c => 3}->{$type}; - my $guidelines = {v => 2, r => 3, p => 4, c => 12}->{$type}; + my $num = {v => 0, r => 1, p => 2, c => 3, 's' => 4}->{$type}; + my $guidelines = {v => 2, r => 3, p => 4, c => 12, 's' => 16}->{$type}; div class => 'mainbox'; h1 $title; @@ -423,6 +423,7 @@ sub htmlSearchBox { a href => '/v/all', $sel eq 'v' ? (class => 'sel') : (), mt '_searchbox_vn'; a href => '/r', $sel eq 'r' ? (class => 'sel') : (), mt '_searchbox_releases'; a href => '/p/all', $sel eq 'p' ? (class => 'sel') : (), mt '_searchbox_producers'; + a href => '/s/all', $sel eq 's' ? (class => 'sel') : (), mt '_searchbox_staff'; a href => '/c/all', $sel eq 'c' ? (class => 'sel') : (), mt '_searchbox_chars'; a href => '/g', $sel eq 'g' ? (class => 'sel') : (), mt '_searchbox_tags'; a href => '/i', $sel eq 'i' ? (class => 'sel') : (), mt '_searchbox_traits'; diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index 7de7f709..128a18c7 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -66,6 +66,7 @@ sub _menu { b class => 'grayedout', '> '; a href => '/g', mt '_menu_tags'; br; a href => '/r', mt '_menu_releases'; br; a href => '/p/all', mt '_menu_producers'; br; + a href => '/s/all', mt '_menu_staff'; br; a href => '/c/all', mt '_menu_characters'; br; b class => 'grayedout', '> '; a href => '/i', mt '_menu_traits'; br; a href => '/u/all', mt '_menu_users'; br; @@ -102,6 +103,7 @@ sub _menu { if($self->authCan('edit')) { a href => '/v/add', mt '_menu_addvn'; br; a href => '/p/new', mt '_menu_addproducer'; br; + a href => '/s/new', mt '_menu_addstaff'; br; a href => '/c/new', mt '_menu_addcharacter'; br; } br; |