dmails: allow marking dmails as unread.
* Add ability to mark dmails as unread. * Fix users.unread_dmail_count to not count deleted dmails. * Fix show action so that API calls don't mark dmails as read. * Don't show the unread dmail notice on the /dmails page itself. * Stop using users.has_mail flag.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<% if CurrentUser.is_anonymous? %>
|
||||
<%= nav_link_to("Login", login_path) %>
|
||||
<% else %>
|
||||
<%= nav_link_to("My Account #{CurrentUser.dmail_count}", profile_path) %>
|
||||
<%= nav_link_to("My Account #{unread_dmail_indicator(CurrentUser.user)}", profile_path) %>
|
||||
<% end %>
|
||||
<%= nav_link_to("Posts", posts_path) %>
|
||||
<%= nav_link_to("Comments", comments_path(:group_by => "post")) %>
|
||||
|
||||
Reference in New Issue
Block a user