Sha256: 25e9662424b422527394e4f291b18a7b886213e55c17e463e601cf58ca77b6be
Contents?: true
Size: 2 KB
Versions: 19
Compression:
Stored size: 2 KB
Contents
- @page_title = @user.name .view .view__header .grid.grid--middle.grid--right .grid__cell.grid__cell--50 .view__heading = link_to_index_for(@user) %h1= @user.name .grid__cell.grid__cell--25 = render_aux_navigation_for(@user) .view__container - if @user.login_locked? .grid.grid--center .grid__cell.grid__cell--75 = render_message 'warn' do %span= t('workarea.admin.users.show.locked') = link_to t('workarea.admin.users.show.unlock'), unlock_user_path(@user), data: { method: :patch } = render_cards_for(@user) .workflow-bar .grid.grid--auto.grid--right.grid--middle.grid--flush - if @user == current_user .grid__cell = link_to t('workarea.admin.users.show.impersonate'), '#impersonate-yourself-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update' #impersonate-yourself-info.tooltip-content %p= t('workarea.admin.users.show.cant_impersonate_yourself') - elsif @user.admin? .grid__cell = link_to t('workarea.admin.users.show.impersonate'), '#impersonate-other-admins-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update' #impersonate-other-admins-info.tooltip-content %p= t('workarea.admin.users.show.cant_impersonate_other_administrators') - else - if impersonating?(@user) .grid__cell = link_to t('workarea.admin.users.show.stop_impersonation'), impersonations_path, data: { method: 'delete' }, class: 'workflow-bar__button workflow-bar__button--delete' - else .grid__cell = form_tag impersonations_path, method: 'post' do = hidden_field_tag 'user_id', @user.id = button_tag t('workarea.admin.users.show.impersonate'), class: 'workflow-bar__button workflow-bar__button--update'
Version data entries
19 entries across 19 versions & 1 rubygems