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
|
# 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
|
# 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
|
# 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
|
updated_at sign_in_count current_sign_in_at last_sign_in_at
|
||||||
current_sign_in_ip last_sign_in_ip)
|
current_sign_in_ip last_sign_in_ip)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@
|
||||||
#user-info-content.tab-pane{class: "#{'active' unless params[:tab] == 'submissions-content'}"}
|
#user-info-content.tab-pane{class: "#{'active' unless params[:tab] == 'submissions-content'}"}
|
||||||
- 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'
|
||||||
%table.table
|
%table.table
|
||||||
- @show_attributes.each do |attr|
|
- @show_attributes.each do |attr|
|
||||||
%tr
|
%tr
|
||||||
%td{class: 'table20'}
|
%td.col-md-2
|
||||||
%b
|
%b
|
||||||
= attr.capitalize.gsub('_', ' ')
|
= attr.capitalize.gsub('_', ' ')
|
||||||
- if attr == 'roles'
|
- if attr == 'roles'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue