summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-02-01 14:41:42 +0100
committerYorhel <git@yorhel.nl>2010-02-01 14:41:42 +0100
commita8f524e9380c415ffadb621fd96da49d5410a56a (patch)
tree3a9deff4ca16014babebfda26254df7898bcc948
parentc2df52da18ce8a772a1dd70c8ff14b7527fd4339 (diff)
Made the "My notifications" link less easier to ignore when n>0
-rw-r--r--data/lang.txt9
-rw-r--r--data/style.css1
-rw-r--r--lib/VNDB/Util/LayoutHTML.pm3
3 files changed, 6 insertions, 7 deletions
diff --git a/data/lang.txt b/data/lang.txt
index a986a3b7..264d31ed 100644
--- a/data/lang.txt
+++ b/data/lang.txt
@@ -1429,12 +1429,11 @@ ru : Мой список желаемого
cs : Můj wishlist
hu : Kivánságlistám
-# [_1] = number of messages
:_menu_mynotifications
-en : My Notifications ([_1])
-ru*: Мои сообщения ([_1])
-cs*: Mé zprávy ([_1])
-hu*: Üzenenteim ([_1])
+en : My Notifications
+ru*: Мои сообщения
+cs*: Mé zprávy
+hu*: Üzenenteim
:_menu_mychanges
en : My Recent Changes
diff --git a/data/style.css b/data/style.css
index d70e539d..e6963ad8 100644
--- a/data/style.css
+++ b/data/style.css
@@ -315,6 +315,7 @@ b.future, b.standout, a.standout {
display: none;
}
#dd_box acronym { margin: 2px 5px 2px 0!important; }
+#menulist .notifyget { display: inline-block; width: 125px; padding: 4px; background: $warnbg$; border: 1px solid $warnborder$; }
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm
index 0783a9e4..fa8bf02b 100644
--- a/lib/VNDB/Util/LayoutHTML.pm
+++ b/lib/VNDB/Util/LayoutHTML.pm
@@ -83,14 +83,13 @@ sub _menu {
my $nc = $self->authInfo->{notifycount};
h2;
a href => $uid, ucfirst $self->authInfo->{username};
- # note: user ranks aren't TL'ed (but might be in the future, hmm)
txt ' ('.mt('_urank_'.$self->authInfo->{rank}).')';
end;
div;
a href => "$uid/edit", mt '_menu_myprofile'; br;
a href => "$uid/list", mt '_menu_myvnlist'; br;
a href => "$uid/wish", mt '_menu_mywishlist'; br;
- a href => "$uid/notifies", $nc ? (class => 'standout') : (), mt '_menu_mynotifications', $nc; br;
+ a href => "$uid/notifies", $nc ? (class => 'notifyget') : (), mt('_menu_mynotifications').($nc?" ($nc)":''); br;
a href => "$uid/hist", mt '_menu_mychanges'; br;
a href => "$uid/tags", mt '_menu_mytags'; br;
br;