- :new_messages => t("message.inbox.new_messages",
- :count => @user.new_messages.size),
- :old_messages => t("message.inbox.old_messages",
- :count => @user.messages.size - @user.new_messages.size)
+ :new_messages => t("message.inbox.new_messages",
+ :count => current_user.new_messages.size),
+ :old_messages => t("message.inbox.old_messages",
+ :count => current_user.messages.size - current_user.new_messages.size)