X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d36fab2913d10bef4eae2cee7c34875f20311af9..8ec415b060c4321fad3fa42f3038148aa94c9b90:/app/views/layouts/_inbox.html.erb diff --git a/app/views/layouts/_inbox.html.erb b/app/views/layouts/_inbox.html.erb index 18716618f..fcaa5ae64 100644 --- a/app/views/layouts/_inbox.html.erb +++ b/app/views/layouts/_inbox.html.erb @@ -1,7 +1,13 @@ -<% -inbox_attributes = {} -inbox_attributes[:id] = "inboxanchor" -inbox_attributes[:class] = 'greeting-bar-unread' if @user.new_messages.size > 0 -inbox_attributes[:title] = t 'layouts.inbox_tooltip', :count => @user.new_messages.size +<%= + link_to( + t("layouts.inbox_html", + :count => @user.new_messages.size > 0 ? + content_tag( + :span, @user.new_messages.size, :class => "count-number" + ) : + "" + ), + inbox_path(:display_name => @user.display_name), + :id => "inboxanchor" + ) %> -<%= link_to t('layouts.inbox', :count => @user.new_messages.size), {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, inbox_attributes %>