Updated CMS PAGINATION with the last Jocelyn's suggestion.

Added a node pagination helper, to build the html links and header related to
pagination.
This commit is contained in:
jvelilla
2015-05-29 09:25:28 -03:00
parent 957ca96bc5
commit f056b43ddc
5 changed files with 168 additions and 124 deletions

View File

@@ -220,10 +220,10 @@ feature -- Access: Node
Result := node_storage.trashed_nodes (a_user.id)
end
recent_nodes (a_offset, a_rows: INTEGER): LIST [CMS_NODE]
recent_nodes (a_pagination: CMS_PAGINATION_BUILDER): ITERABLE [CMS_NODE]
-- List of the `a_rows' most recent nodes starting from `a_offset'.
do
Result := node_storage.recent_nodes (a_offset, a_rows)
Result := node_storage.recent_nodes (a_pagination.offset.to_integer_32, a_pagination.count.to_integer_32)
end
node (a_id: INTEGER_64): detachable CMS_NODE