Files
grecia/app/views/management/_account_info.html.erb
2015-10-11 17:05:24 +02:00

24 lines
697 B
Plaintext

<p class="account-info">
<% if current_user %>
<%= t("management.account_info.managed_user_title") %>
<% end %>
<% if account.username.present? %>
<%= t("management.username_label") %>
<strong><%= account.username %></strong>
<% end %>
<% if account.email.present? %>
<%= t("management.email_label") %>
<strong><%= account.email %></strong>
<% end %>
<%= t("management.document_type_label") %>
<strong><%= humanize_document_type(account.document_type) %></strong>
<%= t("management.document_number") %>
<strong><%= account.document_number %></strong>
<%= link_to(t("management.account_info.logout"), management_session_path, method: :delete) %>
</p>