diff --git a/examples/demo/modules/blog/handler/blog_handler.e b/examples/demo/modules/blog/handler/blog_handler.e index 4491137..c5ec75d 100644 --- a/examples/demo/modules/blog/handler/blog_handler.e +++ b/examples/demo/modules/blog/handler/blog_handler.e @@ -62,7 +62,6 @@ feature -- HTTP Methods -- local l_page: CMS_RESPONSE - l_posts: LIST[CMS_NODE] s: STRING n: CMS_NODE lnk: CMS_LOCAL_LINK @@ -92,7 +91,7 @@ feature -- HTTP Methods -- Output the title. If more than one page, also output the current page number create s.make_from_string ("

Blog") if more_than_one_page then - s.append (" (Page " + page_number.out + ")") + s.append (" (Page " + page_number.out + " of " + pages.out + ")") -- Get the posts from the current page (limited by entries per page) end s.append ("

") @@ -141,6 +140,12 @@ feature -- HTTP Methods s.append ("%N") end s.append ("%N") + + -- Show the pagination if there are more than one page + if more_than_one_page then + s.append ("