Sha256: b237f6cf0a297a3f481d3928613ed92e54f427356243874cd9d384e6b8dab0cd

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<h1 class="title"><%= t('page.showing', model: t('activerecord.models.user')) -%></h1>
<div id="content_list">
<p id="notice"><%= notice %></p>

  <h2 class="resource_title">
    [U]
    <%= current_user.username -%>
  </h2>

  <p><%= t('activerecord.attributes.profile.user_number') %>: <%= current_user.profile.user_number %></p>

  <% if defined?(EnjuCirculation) %>
    <%= render 'profiles/checkout_list', profile: current_user.profile %>
  <% end %>
</div>
</div>

<div id="submenu" class="ui-corner-all ui-widget-content">
  <% if defined?(EnjuCirculation) %>
    <%= render 'profiles/submenu_checkout', profile: current_user.profile %>
  <% end %>
  <ul>
    <li><%= link_to t('page.edit'), edit_my_account_path -%></li>
    <li><%= link_to t('activerecord.models.registration'), edit_user_registration_path -%></li>
    <%- if can? :destroy, current_user -%>
      <li><%= link_to t('page.destroy'), curent_user, data: {confirm: t('page.are_you_sure')}, method: :delete -%></li>
    <%- end -%>
    <% if defined?(EnjuSearchLog) %>
      <li><%= link_to t('activerecord.models.search_history'), search_histories_path %></li>
    <% end %>
    <% if defined?(EnjuCirculation) %>
      <li><%= link_to t('activerecord.models.checkout'), checkouts_path %></li>
      <li><%= link_to t('activerecord.models.reserve'), reserves_path %></li>
    <% end %>
    <% if defined?(EnjuQuestion) %>
      <li><%= link_to t('activerecord.models.question'), user_questions_path(current_user) %></li>
    <% end %>
    <% if defined?(EnjuBookmark) %>
      <li><%= link_to t('activerecord.models.bookmark'), bookmarks_path %></li>
    <% end %>
    <% if defined?(EnjuPurchaseRequest) %>
      <li><%= link_to t('activerecord.models.purchase_request'), purchase_requests_path %></li>
    <% end %>
  </ul>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_leaf-1.1.1 app/views/my_accounts/show.html.erb
enju_leaf-1.1.0 app/views/my_accounts/show.html.erb