diff options
author | Yorhel <git@yorhel.nl> | 2009-10-10 15:53:08 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-10-10 15:53:30 +0200 |
commit | 5453223bf93a17d49d2717f8e0fbc70ed8477a94 (patch) | |
tree | 01d980d00bc39b0e2f8c12fc987ad1e11b1e6a79 | |
parent | 5ce2ce4c494feef5940c032549472a52b5282ad1 (diff) |
Make "My Messages (n)" stand out when n>0
Not very obstructive now that number will automatically reset itself
after opening the threads.
-rw-r--r-- | data/style.css | 2 | ||||
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/data/style.css b/data/style.css index 56c68f3c..483ef6d1 100644 --- a/data/style.css +++ b/data/style.css @@ -239,7 +239,7 @@ td.field label { p.center { text-align: center; } -b.future, b.standout { +b.future, b.standout, a.standout { font-weight: normal; color: $standout$; } diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index d9dad434..34cbd30d 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -89,7 +89,7 @@ sub _menu { 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 => "/t$uid", mt '_menu_mymessages', $self->authInfo->{mymessages}; br; + a href => "/t$uid", $self->authInfo->{mymessages} ? (class => 'standout') : (), mt '_menu_mymessages', $self->authInfo->{mymessages}; br; a href => "$uid/hist", mt '_menu_mychanges'; br; a href => "$uid/tags", mt '_menu_mytags'; br; br; |