You have <%= link_to "unread mail", dmails_path(search: {owner_id: CurrentUser.id, to_id: CurrentUser.id}, folder: "received") %>.

<%= link_to "Close this", "#", id: "hide-dmail-notice" %>