1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/views/staffs/accounts/show.html.erb

29 lines
812 B
Text

<div class="container">
<%= nav_breadcrumb(
[translate(:staff_services), staff_root_path],
[Account.model_name.human(count: 0), staff_accounts_path],
@account.nickname,
) %>
<%= render partial: 'nav_tabs',
locals: { account: @account, tab: :overview } %>
<% if @account.superuser? %>
<div>
<span class="badge badge-primary">
<%= translate :superuser %>
</span>
</div>
<% end %>
<dl class="mt-3">
<dt><%= Account.human_attribute_name :nickname %></dt>
<dd><%= account_link_or_none @account %></dd>
<dt><%= Account.human_attribute_name :public_name %></dt>
<dd><%= @account.public_name %></dd>
<dt><%= Account.human_attribute_name :person %></dt>
<dd><%= staff_person_link_or_none @account.person %></dd>
</dl>
</div>