Sha256: 500460be2f0dfdbef5ae1c0760892ba7041930f0a71ba24f81c9451a28623028
Contents?: true
Size: 968 Bytes
Versions: 1
Compression:
Stored size: 968 Bytes
Contents
%h1 Impersonate user - if current_user.impersonating? .clear-impersonation = link_to "Stop impersonating #{current_user.impersonation_target.full_name}", admin_stop_impersonation_path(), class: "btn btn-primary" - else .impersonation-form = simple_form_for UcbRailsUser::Impersonation.new, url: admin_impersonations_path(), method: :post do |f| = f.input :target, label: "User", input_html: { class: "typeahead" } = f.input :target_id, as: :hidden = f.button :submit, value: "Impersonate", class: "btn btn-primary", disabled: true, data: { impersonate_button: true } .recent-impersonations - if current_user.recent_impersonations.present? %h3 Recent impersonations %ul - current_user.recent_impersonations.each do |imp| %li= link_to full_name_with_uid(imp.target), admin_impersonations_path() + "?ucb_rails_user_impersonation[target_id]=#{imp.target.id}", method: :post - else %h4 No recent impersonations
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ucb_rails_user-7.0.0 | app/views/ucb_rails_user/impersonations/index.html.haml |