mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 05:04:03 +00:00
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
|
||||
.pull-right
|
||||
= 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
|
||||
- @show_attributes.each do |attr|
|
||||
%tr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue