<% end %>
<% content_for :heading do %>
- <h2><%= t ".my_inbox" %>/<%= link_to t(".outbox"), outbox_messages_path %></h2>
+ <ul class="nav nav-pills">
+ <li class="nav-item">
+ <a class="nav-link active"><%= t ".my_inbox" %></a>
+ </li>
+ <li class="nav-item">
+ <%= link_to t(".my_outbox"), outbox_messages_path, :class => "nav-link" %>
+ </li>
+ </ul>
<% end %>
<h4><%= render :partial => "message_count" %></h4>
<% end %>
<% content_for :heading do %>
- <h2><%= t(".my_inbox_html", :inbox_link => link_to(t(".inbox"), inbox_messages_path)) %>/<%= t ".outbox" %></h2>
+ <ul class="nav nav-pills">
+ <li class="nav-item">
+ <%= link_to t(".my_inbox"), inbox_messages_path, :class => "nav-link" %>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link active"><%= t ".my_outbox" %></a>
+ </li>
+ </ul>
<% end %>
<h4><%= t ".messages", :count => current_user.sent_messages.size %></h4>
inbox:
title: "Inbox"
my_inbox: "My Inbox"
- outbox: "outbox"
+ my_outbox: "My Outbox"
messages: "You have %{new_messages} and %{old_messages}"
new_messages:
one: "%{count} new message"
body: "Sorry there is no message with that id."
outbox:
title: "Outbox"
- my_inbox_html: "My %{inbox_link}"
- inbox: "inbox"
- outbox: "outbox"
+ my_inbox: "My Inbox"
+ my_outbox: "My Outbox"
messages:
one: "You have %{count} sent message"
other: "You have %{count} sent messages"