Created
March 13, 2012 04:50
-
-
Save cjbottaro/2026811 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="normalize-size"> | |
<<<<<<< HEAD | |
<tbody> | |
<tr> | |
<td><%= t("oa.users.system.display_name") %></td> | |
<td><%= user.display_name %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.email") %></td> | |
<td><%= user.email %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.customer_uid") %></td> | |
<td><%= user.customer_uid %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.sign_in_count") %></td> | |
<td><%= user.sign_in_count %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.current_sign_in_date") %></td> | |
<td><%= simple_date(user.current_sign_in_at) %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.last_sign_in_at") %></td> | |
<td><%= simple_date(user.last_sign_in_at) %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.current_sign_in_ip") %></td> | |
<td><%= user.current_sign_in_ip %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.last_sign_in_ip") %></td> | |
<td><%= user.last_sign_in_ip %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.failed_attempts") %></td> | |
<td><%= user.failed_attempts %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.locked_at") %></td> | |
<td><%= simple_date(user.locked_at) %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.created_at") %></td> | |
<td><%= simple_date(user.created_at) %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.updated_at") %></td> | |
<td><%= simple_date(user.updated_at) %></td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.is_password_set") %></td> | |
<td> | |
<%= user.encrypted_password.present? ? t("oa.users.system.password_is_set") : t("oa.users.system.password_is_not_set") %> | |
</td> | |
</tr> | |
<tr> | |
<td><%= t("oa.users.system.roles") %></td> | |
<td> | |
<%= user.active_permission_list.blank? ? t('oa.users.role.none_assigned') : user.active_permission_list %> | |
</td> | |
</tr> | |
</tbody> | |
<%if acting_user.roles.include?('support_admin')%> | |
<tr> | |
<td> | |
<%= button_to t("oa.users.delete_button"), admin_user_path(user), | |
:confirm => t("oa.users.delete_confirm"), :method => :delete %> | |
</td> | |
</tr> | |
<% end %> | |
</tbody> | |
</table> | |
======= | |
<tbody> | |
<tr> | |
<td>Display Name</td> | |
<td><%= user.display_name %></td> | |
</tr> | |
<tr> | |
<td>Email</td> | |
<td><%= user.email %></td> | |
</tr> | |
<tr> | |
<td>Customer Uid</td> | |
<td><%= user.customer_uid %></td> | |
</tr> | |
<tr> | |
<td>Sign In Count</td> | |
<td><%= user.sign_in_count %></td> | |
</tr> | |
<tr> | |
<td>Current Sign In Date</td> | |
<td><%= simple_date(user.current_sign_in_at) %></td> | |
</tr> | |
<tr> | |
<td>Last Sign In Date</td> | |
<td><%= simple_date(user.last_sign_in_at) %></td> | |
</tr> | |
<tr> | |
<td>Current Sign In IP</td> | |
<td><%= user.current_sign_in_ip %></td> | |
</tr> | |
<tr> | |
<td>Last Sign In IP</td> | |
<td><%= user.last_sign_in_ip %></td> | |
</tr> | |
<tr> | |
<td>Failed Attempts</td> | |
<td><%= user.failed_attempts %></td> | |
</tr> | |
<tr> | |
<td>Locked Date</td> | |
<td><%= simple_date(user.locked_at) %></td> | |
</tr> | |
<tr> | |
<td>Created Date</td> | |
<td><%= simple_date(user.created_at) %></td> | |
</tr> | |
<tr> | |
<td>Updated Date</td> | |
<td><%= simple_date(user.updated_at) %></td> | |
</tr> | |
<tr> | |
<td>Password Set?</td> | |
<td> | |
<%= user.encrypted_password.present? ? 'Yes' : 'No' %> | |
</td> | |
</tr> | |
<%if acting_user.roles.include?('support_admin')%> | |
<tr> | |
<td> | |
<%= button_to 'Completely Delete User', admin_user_path(user), | |
:confirm => "Are you sure you want to delete this user? You will be deleting them from every FormField they ever created. That will delete every Question associated with that FormField and all their answers. Every Opportunity they created, every Application to every Opportunity they ever created, every Answer to every Application to every Opportunity they ever created WILL ALL BE DESTROYED. It will also delete any reference or review they were ever a part of. So, are you really, really, really sure? ACCIDENTALLY DELETING THE WRONG USER IS IRREVERSABLE AND COULD CRIPPLE A CLIENTS SITE IF NOT CAREFULLY THOUGHT THROUGH.", :method => :delete%> | |
</td> | |
</tr> | |
<% end %> | |
</tbody> | |
</table> | |
>>>>>>> hotfix/staging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment