show label of confirmed or unconfirmed in users#show
This commit is contained in:
parent
bc2b262510
commit
fcca0e71d2
1 changed files with 6 additions and 0 deletions
|
|
@ -12,6 +12,12 @@
|
||||||
- if can? :edit, @user
|
- if can? :edit, @user
|
||||||
.pull-right
|
.pull-right
|
||||||
= link_to 'Edit', edit_admin_user_path(@user), class: 'btn btn-primary'
|
= link_to 'Edit', edit_admin_user_path(@user), class: 'btn btn-primary'
|
||||||
|
- if @user.confirmed?
|
||||||
|
%span.label.label-success
|
||||||
|
confirmed
|
||||||
|
- else
|
||||||
|
%span.label.label-warning
|
||||||
|
unconfirmed
|
||||||
%table.table
|
%table.table
|
||||||
- @show_attributes.each do |attr|
|
- @show_attributes.each do |attr|
|
||||||
%tr
|
%tr
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue