* 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.
5 lines
292 B
Plaintext
5 lines
292 B
Plaintext
<div class="notice notice-info notice-large" id="dmail-notice" data-id="<%= latest_unread_dmail(CurrentUser.user) %>">
|
|
<h2>You have <%= link_to "unread mail", dmails_path(search: { folder: "received" }) %>.</h2>
|
|
<div><%= link_to "Close this", "#", id: "hide-dmail-notice" %></div>
|
|
</div>
|