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 | |
parent | a1db0a213b9f1ea0d4d9f75e4014af6c156b493c (diff) |
Added tab and link for /u+/votes to user tabs & main menu
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | data/lang.txt | 14 | ||||
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 4 | ||||
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 1 |
4 files changed, 20 insertions, 0 deletions
@@ -5,6 +5,7 @@ - Check for editsum = description and give an easier to understand error - RFC-01: Added vnlists feature and removed rlists.vstat option - ULists::votelist: Don't give a 404 on /u+/votes when no votes found + - Added tab and link for /u+/votes to user tabs & main menu 2.15 - 2010-12-15 - Removed expand/collapse from history browser and /u+/posts and switched to diff --git a/data/lang.txt b/data/lang.txt index 6a74e0a1..c1507c4b 100644 --- a/data/lang.txt +++ b/data/lang.txt @@ -1688,6 +1688,13 @@ cs : Můj list vizuálních novel hu : A visual novel listám nl : Mijn Visual Novel lijst +:_menu_myvotes +en : My Votes +ru*: +cs*: +hu*: +nl : Mijn Stemmen + :_menu_mywishlist en : My Wishlist ru : Мой список желаемого @@ -1857,6 +1864,13 @@ cs : wishlist hu : kivánságlista nl : wensenlijst +:_mtabs_votes +en : votes +ru*: +cs*: +hu*: +nl : stemmen + :_mtabs_list en : list ru : список 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; |