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

<%- if has_picture? -%> <%%- if @<%= name %>.picture.present? -%> <%%- end -%> <%- end -%> <%- if activity_logging? -%> <%%- if @<%= name %>.last_login_at.present? -%> <%%- end -%> <%- end -%> <%- if brute_force_protection? -%> <%- end -%> <%- if activity_logging? -%> <%%- if @<%= name %>.last_logout_at.present? -%> <%%- end -%> <%%- if @<%= name %>.last_activity_at.present? -%> <%%- end -%> <%- end -%> <%- if 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)) %>
<%%= 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 %>.status') %> <%%= t('enums.<%= name %>.status.' + @<%= name %>.status) %>
<%%= 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 %>.status.to_sym == :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 %>.status.to_sym == :sysadm and @<%= name %> != current_<%= name %> -%> <%%= link_to t('actions.destroy'), @<%= name %>, method: :delete, data: { confirm: t('actions.confirm') }, class: 'btn btn-danger' %> <%%- end -%>