Skip to content

Commit

Permalink
AO3-6565 Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
weeklies committed May 16, 2024
1 parent d1e518f commit 681db28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
12 changes: 4 additions & 8 deletions app/views/admin/admin_users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,10 @@
</dd>
<% if policy(User).can_view_past? %>
<dt><%= label_tag "settings", t(".settings.label") %></dt>
<dd>
<ul>
<li>
<%= check_box_tag "search_past", "1", params[:search_past].present? %>
<%= label_tag "search_past", t(".settings.past") %>
</li>
</ul>
</dd>
<li>
<%= check_box_tag "search_past", "1", params[:search_past].present? %>
<%= label_tag "search_past", t(".settings.past") %>
</li>
<% end %>
</dl>
<p class="submit"><%= submit_tag ts("Find") %></p>
Expand Down
8 changes: 2 additions & 6 deletions app/views/admin/admin_users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,14 @@
<% if past_logins.present? %>
<dt><%= t(".info.past_logins", count: past_logins.size) %></dt>
<dd>
<ul>
<li><%= past_logins.join(", ") %></li>
</ul>
<%= past_logins.to_sentence %>
</dd>
<% end %>
<% past_emails = @user.historic_values("email") %>
<% if past_emails.present? %>
<dt><%= t(".info.past_emails", count: past_emails.size) %></dt>
<dd>
<ul>
<li><%= past_emails.join(", ") %></li>
</ul>
<%= past_emails.to_sentence %>
</dd>
<% end %>
<% end %>
Expand Down

0 comments on commit 681db28

Please sign in to comment.