Skip to content

Commit d21a007

Browse files
committed
added user link to flag history view for users other than the current one
1 parent cf13971 commit d21a007

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/views/flags/history.html.erb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99

1010
<%
1111
is_same_user = @user.same_as?(current_user)
12-
title_pfx = is_same_user ? 'My' : "#{@user.rtl_safe_username}'s"
1312
translation_key = is_same_user ? 'history_self' : 'history_other'
1413
%>
1514

16-
<h1><%= title_pfx %> Flag History</h1>
15+
<% if is_same_user %>
16+
<h1> My Flag History </h1>
17+
<% else %>
18+
<h1> Flag History for <%= user_link(@user) %> </h1>
19+
<% end %>
1720
<p><%= t("flags.descriptions.#{translation_key}") %></p>
1821

1922
<h3>

0 commit comments

Comments
 (0)