From 5453223bf93a17d49d2717f8e0fbc70ed8477a94 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 10 Oct 2009 15:53:08 +0200 Subject: Make "My Messages (n)" stand out when n>0 Not very obstructive now that number will automatically reset itself after opening the threads. --- data/style.css | 2 +- 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; -- cgit v1.2.3