.row .col-md-3 .panel.panel-default .panel-heading h2.panel-title = t('activerecord.models.profile') - if defined?(EnjuCirculation) ul.list-group - current_user.profile.user_group.user_group_has_checkout_types.each do |available_checkout_type| li.list-group-item = available_checkout_type.checkout_type.display_name.localize | : = current_user.checked_item_count[:"#{available_checkout_type.checkout_type.name}"] | / = available_checkout_type.checkout_limit ul.list-group li.list-group-item = link_to t('page.edit'), edit_my_account_path li.list-group-item = link_to t('page.password'), edit_user_registration_path - if policy(current_user.profile).destroy? li.list-group-item = link_to t('page.destroy'), current_user.profile, data: {confirm: t('page.are_you_sure')}, method: :delete - if defined?(EnjuSearchLog) li.list-group-item = link_to t('activerecord.models.search_history'), search_histories_path - if defined?(EnjuCirculation) li.list-group-item = link_to t('activerecord.models.checkout'), checkouts_path li.list-group-item = link_to t('activerecord.models.reserve'), reserves_path - if defined?(EnjuQuestion) li.list-group-item = link_to t('activerecord.models.question'), user_questions_path(current_user) - if defined?(EnjuBookmark) li.list-group-item = link_to t('activerecord.models.bookmark'), bookmarks_path - if defined?(EnjuPurchaseRequest) li.list-group-item = link_to t('activerecord.models.purchase_request'), purchase_requests_path .col-md-9 .panel.panel-default .panel-heading h1.panel-title = t('page.showing', model: t('activerecord.models.user')) .panel-body p#notice = notice h2.resource_title | [U] = current_user.username p = t('activerecord.attributes.profile.user_number') | : = current_user.profile.user_number - if defined?(EnjuCirculation) = render 'profiles/checkout_list', profile: current_user.profile