mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Updated PagedList aswell.
This commit is contained in:
parent
4cbea7fd06
commit
bf7948be47
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "core/html/html_builder.h"
|
#include "core/html/html_builder.h"
|
||||||
|
|
||||||
void PagedList::index(Request *request) {
|
void PagedList::handle_request_main(Request *request) {
|
||||||
const String path = request->get_current_path_segment();
|
const String path = request->get_current_path_segment();
|
||||||
|
|
||||||
if (request->get_remaining_segment_count() == 0) {
|
if (request->get_remaining_segment_count() == 0) {
|
||||||
@ -31,7 +31,7 @@ void PagedList::load() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PagedList::PagedList() :
|
PagedList::PagedList() :
|
||||||
Object() {
|
WebNode() {
|
||||||
|
|
||||||
main_page = new ListPage();
|
main_page = new ListPage();
|
||||||
articles = new PagedArticle();
|
articles = new PagedArticle();
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
#ifndef PAGED_LIST_H
|
#ifndef PAGED_LIST_H
|
||||||
#define PAGED_LIST_H
|
#define PAGED_LIST_H
|
||||||
|
|
||||||
#include "core/object.h"
|
|
||||||
|
|
||||||
#include "core/string.h"
|
#include "core/string.h"
|
||||||
|
|
||||||
|
#include "core/http/web_node.h"
|
||||||
|
|
||||||
#include "modules/list_page/list_page.h"
|
#include "modules/list_page/list_page.h"
|
||||||
#include "modules/paged_article/paged_article.h"
|
#include "modules/paged_article/paged_article.h"
|
||||||
|
|
||||||
class PagedList : public Object {
|
class PagedList : public WebNode {
|
||||||
RCPP_OBJECT(PagedList, Object);
|
RCPP_OBJECT(PagedList, WebNode);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void index(Request *request);
|
void handle_request_main(Request *request);
|
||||||
|
|
||||||
void load();
|
void load();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user