<%%= t('headers.show', name: t('activerecord.models.<%= name %>.one')) %>

<%- if options.picture? -%> <%%- if @<%= name %>.picture? -%> <%%- end -%> <%- end -%> <%- if options.gravatar? -%> <%- end -%> <%- if options.activity_logging? -%> <%%- if @<%= name %>.last_login_at.present? -%> <%%- end -%> <%- end -%> <%- if options.brute_force_protection? -%> <%- end -%> <%- if options.activity_logging? -%> <%%- if @<%= name %>.last_logout_at.present? -%> <%%- end -%> <%%- if @<%= name %>.last_activity_at.present? -%> <%%- end -%> <%- end -%> <%- if options.brute_force_protection? -%> <%%- if @<%= name %>.lock_expires_at.present? -%> <%%- end -%> <%- end -%>
<%%= t('activerecord.attributes.<%= name %>.email') %> <%%= mail_to(@<%= name %>.email) %>
<%%= t('activerecord.attributes.<%= name %>.name') %> <%%= @<%= name %>.name %>
<%%= t('activerecord.attributes.<%= name %>.phone') %> <%%= @<%= name %>.phone %>
<%%= t('activerecord.attributes.<%= name %>.comment') %> <%%= raw(@<%= name %>.comment) %>
<%%= t('activerecord.attributes.<%= name %>.picture') %> <%%= image_tag(<%= name %>.picture_url(:avatar).to_s) %>
<%%= t('activerecord.attributes.<%= name %>.gravatar') %> <%%= image_tag(gravatar_url(@<%= name %>, 200)) %>
<%%= t('activerecord.attributes.<%= name %>.theme') %> <%%= @<%= name %>.theme %>
<%%= t('activerecord.attributes.<%= name %>.active') %> <%%= @<%= name %>.active ? t('simple_form.yes') : t('simple_form.no') %>
<%%= t('activerecord.attributes.<%= name %>.sysadm') %> <%%= @<%= name %>.sysadm ? t('simple_form.yes') : t('simple_form.no') %>
<%%= t('activerecord.attributes.<%= name %>.last_login_at') %> <%%= l(@<%= name %>.last_login_at) %>
<%%= t('activerecord.attributes.<%= name %>.last_login_from_ip_address') %> <%%= @<%= name %>.last_login_from_ip_address %>
<%%= t('activerecord.attributes.<%= name %>.failed_logins_count') %> <%%= @<%= name %>.failed_logins_count %>
<%%= t('activerecord.attributes.<%= name %>.last_logout_at') %> <%%= l(@<%= name %>.last_logout_at) %>
<%%= t('activerecord.attributes.<%= name %>.last_activity_at') %> <%%= l(@<%= name %>.last_activity_at) %>
<%%= t('activerecord.attributes.<%= name %>.lock_expires_at') %> <%%= l(@<%= name %>.lock_expires_at) %>
<%%- if current_<%= name %>.sysadm or @<%= name %> == current_<%= name %> -%> <%%= link_to t('actions.edit'), [:edit, @<%= name %>], class: 'btn btn-primary' %> <%%= link_to t('actions.back.index'), <%= table_name %>_path, class: 'btn btn-default' %> <%%- else -%> <%%= link_to t('actions.back.index'), <%= table_name %>_path, class: 'btn btn-primary' %> <%%- end -%> <%%- if current_<%= name %>.sysadm and @<%= name %> != current_<%= name %> -%> <%%= link_to t('actions.destroy'), @<%= name %>, method: :delete, data: { confirm: t('actions.confirm') }, class: 'btn btn-danger' %> <%%- end -%>