Fixed and improved various issue in admin module (especially the Role editing which was not working as expected.)
Added CMS_MODULE.permissions to allow module to declare the potential permissions. Added support for CMS_LINK.is_forbidden, in relation with CMS_LOCAL_LINK.permission_arguments. Split link "username (Logout)" into 2 links "username" and "logout". Fixed/Changed the way auth modules alter the logout link based on "(Logout)" title, by safer solution based on `location' of the link. Fixed usage of WSF_REQUEST.path_info by using percent_encoded_path_info which is not non unicode path info to be used most of the time. Merged CMS_REPONSE.variables and CMS_REPONSE.values . When possible, prefer usage of CMS_RESPONSE.user instead of CMS_REQUEST_UTIL.current_user (WSF_REQUEST) whenever it is possible. When possible, prefer usage of CMS_RESPONSE.location, rather than usage of WSF_REQUEST.(percent_encoded_)path_info . Code cleaning.
This commit is contained in:
@@ -266,19 +266,24 @@ feature -- Convertion
|
||||
pagination_links as ic
|
||||
loop
|
||||
lnk := ic.item
|
||||
if lnk.is_active then
|
||||
a_output.append ("<li class=%"active%">")
|
||||
elseif lnk.title.same_string (label_previous) then
|
||||
a_output.append ("<li class=%"previous%">")
|
||||
elseif lnk.title.same_string (label_next) then
|
||||
a_output.append ("<li class=%"next%">")
|
||||
else
|
||||
a_output.append ("<li>")
|
||||
if not lnk.is_forbidden then
|
||||
if lnk.is_active then
|
||||
a_output.append ("<li class=%"active%">")
|
||||
elseif lnk.title.same_string (label_previous) then
|
||||
a_output.append ("<li class=%"previous%">")
|
||||
elseif lnk.title.same_string (label_next) then
|
||||
a_output.append ("<li class=%"next%">")
|
||||
else
|
||||
a_output.append ("<li>")
|
||||
end
|
||||
a_output.append (a_response.link (lnk.title, lnk.location, Void))
|
||||
a_output.append ("</li>")
|
||||
end
|
||||
a_output.append (a_response.link (lnk.title, lnk.location, Void))
|
||||
a_output.append ("</li>")
|
||||
end
|
||||
a_output.append ("</ul>")
|
||||
end
|
||||
|
||||
note
|
||||
copyright: "2011-2015, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
|
||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user