From 7a774e4399b387093a7fb834c72de6e8e8ecd350 Mon Sep 17 00:00:00 2001 From: Toks Date: Sat, 23 Mar 2013 10:27:25 -0400 Subject: [PATCH] fixes #532 --- app/views/dmails/_secondary_links.html.erb | 1 + app/views/users/_secondary_links.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/dmails/_secondary_links.html.erb b/app/views/dmails/_secondary_links.html.erb index 559277969..4eac22d6b 100644 --- a/app/views/dmails/_secondary_links.html.erb +++ b/app/views/dmails/_secondary_links.html.erb @@ -1,5 +1,6 @@ <% content_for(:secondary_links) do %> +
  • <%= link_to "All", dmails_path %>
  • <%= link_to "Received", dmails_path(:search => {:owner_id => CurrentUser.id, :to_id => CurrentUser.id}, :folder => "received") %>
  • <%= link_to "Sent", dmails_path(:search => {:owner_id => CurrentUser.id, :from_id => CurrentUser.id}, :folder => "sent") %>
  • <%= link_to "New", new_dmail_path %>
  • diff --git a/app/views/users/_secondary_links.html.erb b/app/views/users/_secondary_links.html.erb index d63903b88..f7a9edbcc 100644 --- a/app/views/users/_secondary_links.html.erb +++ b/app/views/users/_secondary_links.html.erb @@ -15,7 +15,7 @@
  • <%= link_to "Edit subscriptions", tag_subscriptions_path %>
  • <% end %>
  • <%= link_to "Profile", user_path(CurrentUser.user) %>
  • -
  • <%= link_to "Messages #{CurrentUser.dmail_count}", dmails_path(:search => {:owner_id => CurrentUser.id, :to_id => CurrentUser.id}) %>
  • +
  • <%= link_to "Messages #{CurrentUser.dmail_count}", dmails_path(:search => {:owner_id => CurrentUser.id, :to_id => CurrentUser.id}, :folder => "received") %>
  • <% else %>
  • <%= link_to "Send message", new_dmail_path(:dmail => {:to_id => @user.id}) %>
  • <% end %>