Added CMS_CORE_MODULE which is the mandatory module for ROC CMS.
Added CMS_USER.profile_name . Improved module managements with install vs enable. - enabled/disabled status can also be stored in database. Install procedure do not install all available modules anymore.
This commit is contained in:
@@ -50,6 +50,7 @@ feature -- Execution
|
||||
lnk: CMS_LOCAL_LINK
|
||||
s: STRING
|
||||
l_role: CMS_USER_ROLE
|
||||
ago: DATE_TIME_AGO_CONVERTER
|
||||
do
|
||||
a_response.set_value (a_user, "user")
|
||||
create lnk.make (a_response.translation ("View", Void), "admin/user/" + a_user.id.out)
|
||||
@@ -80,6 +81,17 @@ feature -- Execution
|
||||
s.append (l_email)
|
||||
s.append ("</p>")
|
||||
end
|
||||
if attached a_user.profile_name as l_prof_name then
|
||||
s.append ("<p>Profile name: ")
|
||||
s.append (html_encoded (l_prof_name))
|
||||
s.append ("</p>")
|
||||
end
|
||||
if attached a_user.last_login_date as dt then
|
||||
s.append ("<p>Last signed: ")
|
||||
create ago.make
|
||||
s.append (ago.smart_date_duration (dt))
|
||||
s.append ("</p>")
|
||||
end
|
||||
|
||||
if
|
||||
attached {LIST [CMS_USER_ROLE]} api.user_api.user_roles (a_user) as l_roles and then
|
||||
|
||||
Reference in New Issue
Block a user