Refactor rename: using trashed_nodes instead of trash_nodes.

This commit is contained in:
jvelilla
2015-05-15 10:44:04 -03:00
parent 1c59a65983
commit 3b90d522f9
2 changed files with 3 additions and 3 deletions

View File

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

View File

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