mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
add username and nickname in user#show and styling changes
This commit is contained in:
parent
93bbd0ea0d
commit
bc2b262510
2 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ module Admin
|
|||
# Variable @show_attributes holds the attributes that are visible for the 'show' action
|
||||
# If you want to change the attributes that are shown in the 'show' action of users
|
||||
# add/remove the attributes in the following string array
|
||||
@show_attributes = %w(name email affiliation biography registered attended roles created_at
|
||||
@show_attributes = %w(name email username nickname affiliation biography registered attended roles created_at
|
||||
updated_at sign_in_count current_sign_in_at last_sign_in_at
|
||||
current_sign_in_ip last_sign_in_ip)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@
|
|||
#user-info-content.tab-pane{class: "#{'active' unless params[:tab] == 'submissions-content'}"}
|
||||
- if can? :edit, @user
|
||||
.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'
|
||||
%table.table
|
||||
- @show_attributes.each do |attr|
|
||||
%tr
|
||||
%td{class: 'table20'}
|
||||
%td.col-md-2
|
||||
%b
|
||||
= attr.capitalize.gsub('_', ' ')
|
||||
- if attr == 'roles'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue