diff options
author | Yorhel <git@yorhel.nl> | 2010-12-19 19:29:24 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-12-19 19:29:24 +0100 |
commit | f69cf868466321ee3ef15948231978f784797bb0 (patch) | |
tree | d669c687fde61b6350dcfd6d4f5a8c5743748c02 /lib/VNDB | |
parent | a1db0a213b9f1ea0d4d9f75e4014af6c156b493c (diff) |
Added tab and link for /u+/votes to user tabs & main menu
Diffstat (limited to 'lib/VNDB')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 4 | ||||
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index c7d67647..a384c5a3 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -50,6 +50,10 @@ sub htmlMainTabs { a href => "/$id/wish", mt '_mtabs_wishlist'; end; + li $sel eq 'votes' ? (class => 'tabselected') : (); + a href => "/$id/votes", mt '_mtabs_votes'; + end; + li $sel eq 'list' ? (class => 'tabselected') : (); a href => "/$id/list", mt '_mtabs_list'; end; diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index f1a6dc2d..c241101f 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -88,6 +88,7 @@ sub _menu { div; a href => "$uid/edit", mt '_menu_myprofile'; br; a href => "$uid/list", mt '_menu_myvnlist'; br; + a href => "$uid/votes",mt '_menu_myvotes'; br; a href => "$uid/wish", mt '_menu_mywishlist'; br; a href => "$uid/notifies", $nc ? (class => 'notifyget') : (), mt('_menu_mynotifications').($nc?" ($nc)":''); br; a href => "$uid/hist", mt '_menu_mychanges'; br; |