Refactor inbox and outbox paths to avoid display names in urls.

This commit is contained in:
Andy Allan 2018-06-06 11:27:27 +08:00
parent 892c30aa8c
commit 9b36021ec5
9 changed files with 33 additions and 45 deletions

View file

@ -3,7 +3,7 @@
<% end %>
<% content_for :heading do %>
<h2><%= raw(t '.my_inbox', :inbox_link => link_to(t('.inbox'), inbox_path(current_user.display_name))) %>/<%= t'.outbox' %></h2>
<h2><%= raw(t '.my_inbox', :inbox_link => link_to(t('.inbox'), inbox_messages_path)) %>/<%= t'.outbox' %></h2>
<% end %>
<h4><%= t '.messages', :count => current_user.sent_messages.size %></h4>