Refactor rename: using trashed_nodes instead of trash_nodes.
This commit is contained in:
@@ -213,7 +213,7 @@ feature -- Access: Node
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
trash_nodes (a_user: CMS_USER): LIST [CMS_NODE]
|
trashed_nodes (a_user: CMS_USER): LIST [CMS_NODE]
|
||||||
-- List of nodes with status in {CMS_NODE_API}.trashed.
|
-- List of nodes with status in {CMS_NODE_API}.trashed.
|
||||||
-- if the current user is admin, it will retrieve all the trashed nodes
|
-- if the current user is admin, it will retrieve all the trashed nodes
|
||||||
do
|
do
|
||||||
|
|||||||
@@ -51,11 +51,11 @@ feature -- HTTP Methods
|
|||||||
|
|
||||||
if attached current_user (req) as l_user then
|
if attached current_user (req) as l_user then
|
||||||
|
|
||||||
l_page.add_variable (node_api.trash_nodes (l_user), "nodes")
|
l_page.add_variable (node_api.trashed_nodes (l_user), "nodes")
|
||||||
|
|
||||||
-- NOTE: for development purposes we have the following hardcode output.
|
-- NOTE: for development purposes we have the following hardcode output.
|
||||||
create s.make_from_string ("<p>Nodes:</p>")
|
create s.make_from_string ("<p>Nodes:</p>")
|
||||||
if attached node_api.trash_nodes (l_user) as lst then
|
if attached node_api.trashed_nodes (l_user) as lst then
|
||||||
s.append ("<ul class=%"cms-nodes%">%N")
|
s.append ("<ul class=%"cms-nodes%">%N")
|
||||||
across
|
across
|
||||||
lst as ic
|
lst as ic
|
||||||
|
|||||||
Reference in New Issue
Block a user