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:
2017-02-07 16:52:08 +01:00
parent f0a3b2bd3a
commit d97542f797
45 changed files with 738 additions and 253 deletions

View File

@@ -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