X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e1d681db3316673d8c3f26c2b0efc4a1382ddb73..6b55cce25c2ed58c6513ae7f3f5dd24518cb489e:/app/views/messages/_heading.html.erb
diff --git a/app/views/messages/_heading.html.erb b/app/views/messages/_heading.html.erb
index 90995ed88..c3b479202 100644
--- a/app/views/messages/_heading.html.erb
+++ b/app/views/messages/_heading.html.erb
@@ -3,14 +3,14 @@
<% content_for :heading do %>
<%= t("users.show.my messages") %>
- <% { ".my_inbox" => inbox_messages_path, ".my_outbox" => outbox_messages_path, ".muted_messages" => muted_messages_path }.each do |i18n_key, path| %>
+ <% { t(".my_inbox") => inbox_messages_path, t(".my_outbox") => outbox_messages_path, t(".muted_messages") => muted_messages_path }.each do |label, path| %>
<% next if path == muted_messages_path && current_user.muted_messages.none? %>
-
<% if path == active_link_path %>
- <%= t(i18n_key) %>
+ <%= label %>
<% else %>
- <%= link_to t(i18n_key), path, :class => "nav-link" %>
+ <%= link_to label, path, :class => "nav-link" %>
<% end %>
<% end %>