Make things a bit more readable

This commit is contained in:
Tom Hughes 2012-08-07 22:57:13 +01:00
parent f08259a529
commit 7f661ec55e
2 changed files with 14 additions and 8 deletions

View file

@ -1,7 +1,13 @@
<%= link_to raw(t('layouts.inbox',
:count => @user.new_messages.size > 0 ? "<span class='count-number'>#{@user.new_messages.size}</span>" : '')),
{
:action => 'inbox',
:display_name => @user.display_name,
:controller => 'message'
}, { :id => 'inboxanchor' } %>
<%=
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"
)
%>