Skip to content

Commit

Permalink
Update useremail.html.erb (#7137)
Browse files Browse the repository at this point in the history
* Update useremail.html.erb

* Update useremail.html.erb
  • Loading branch information
shipcy authored and jywarren committed Jan 9, 2020
1 parent 05fbd6d commit dea6671
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions app/views/admin/useremail.html.erb
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
<div class="col-lg-3">&nbsp;</div>
<div class="col-lg-9">

<h3>User lookup by email:</h3>
<h3>User lookup by email:</h3>

<p>Moderators and admins have the ability to search for usernames associated with a given email address. This ability is meant to assist in answering requests submitted by email where the user forgets to specify their username; clearly the email address of the sender is known.</p>
<%= form_tag do %>
<%= text_field_tag(:address, value = @address) %>
<%= button_tag(:search, type: 'submit', class: "btn btn-primary") do %>
<i class="fa fa-search fa fa-white"></i>
<% end %>
</button>
<% end %>
<p>Moderators and admins have the ability to search for usernames associated with a given email address. This ability is meant to assist in answering requests submitted by email where the user forgets to specify their username; clearly the email address of the sender is known.</p>
<%= form_tag do %>
<%= text_field_tag(:address, value = @address) %>
<%= button_tag(:search, type: 'submit', class: "btn btn-primary") do %>
<i class="fa fa-search fa fa-white"></i>
<% end %>
</button>
<label>
<input type="checkbox" id="myCheck" name="include_banned" />
Include banned accounts after 2015 (careful: can result in server slowness for all users)
</label>
<% end %>

<% if @address %>
<h3>Searched for <%= @address %></h3>
<% if @users.length > 0 %>
<ul>
<% @users.each do |user| %>
<li><a href="/profile/<%= user.username %>"><%= user.username %></a></li>
<% end %>
</ul>
<% else %>
<p>No users found with that email address!</p>
<% if @address %>
<h3>Searched for <%= @address %></h3>
<% if @users.length > 0 %>
<ul>
<% @users.each do |user| %>
<li><a href="/profile/<%= user.username %>"><%= user.username %></a></li>
<% end %>
</ul>
<% else %>
<p>No users found with that email address!</p>
<% end %>
<% end %>
<% end %>
</div>

0 comments on commit dea6671

Please sign in to comment.