We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf13971 commit d21a007Copy full SHA for d21a007
1 file changed
app/views/flags/history.html.erb
@@ -9,11 +9,14 @@
9
10
<%
11
is_same_user = @user.same_as?(current_user)
12
- title_pfx = is_same_user ? 'My' : "#{@user.rtl_safe_username}'s"
13
translation_key = is_same_user ? 'history_self' : 'history_other'
14
%>
15
16
-<h1><%= title_pfx %> Flag History</h1>
+<% if is_same_user %>
+ <h1> My Flag History </h1>
17
+<% else %>
18
+ <h1> Flag History for <%= user_link(@user) %> </h1>
19
+<% end %>
20
<p><%= t("flags.descriptions.#{translation_key}") %></p>
21
22
<h3>
0 commit comments