Commit 8ce0a79d authored by Diana Stanley's avatar Diana Stanley

add admin note block to admin user view

parent 02c15350
......@@ -141,6 +141,13 @@
%p This user has an unconfirmed email address#{email}. You may force a confirmation.
%br
= link_to 'Confirm user', confirm_admin_user_path(@user), method: :put, class: "btn btn-info", data: { confirm: 'Are you sure?' }
- if @user.note.present?
- text = "#{@user.note}"
.panel.panel-info
.panel-heading
Admin Note
.panel-body
%p #{text}
- if @user.blocked?
.panel.panel-info
.panel-heading
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment