Refactors account_info partial

This commit is contained in:
kikito
2015-10-07 19:39:59 +02:00
parent bc841a4799
commit d5d5e683d1
8 changed files with 16 additions and 10 deletions

View File

@@ -1,8 +1,10 @@
<p class="account-info">
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(verification.document_type) %></strong>
<%= t("management.document_number") %> <strong><%= verification.document_number %></strong>
<% if verification.user? %>
<%= t("management.username_label") %> <strong><%= verification.user.username %></strong>
<%= t("management.email_label") %> <strong><%= verification.user.email %></strong>
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(account.document_type) %></strong>
<%= t("management.document_number") %> <strong><%= account.document_number %></strong>
<% 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 %>
</p>