mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Add section url to the admin panel's section links.
This commit is contained in:
parent
0c6ea5612d
commit
e1ceb543f3
@ -64,7 +64,7 @@ void AdminPanel::render_admin_panel_list(Request *request) {
|
||||
for (int j = 0; j < links.size(); ++j) {
|
||||
AdminSectionLinkInfo &li = links[j];
|
||||
|
||||
b.a()->href(rootlink + li.link);
|
||||
b.a()->href(rootlink + s.section_url + "/" + li.link);
|
||||
b.w(li.name);
|
||||
b.ca();
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ void RBACController::create_validators() {
|
||||
}
|
||||
|
||||
void RBACController::admin_add_section_links(Vector<AdminSectionLinkInfo> *links) {
|
||||
links->push_back(AdminSectionLinkInfo("Test", "test/test"));
|
||||
links->push_back(AdminSectionLinkInfo("Test", "test"));
|
||||
}
|
||||
|
||||
RBACController *RBACController::get_singleton() {
|
||||
|
Loading…
Reference in New Issue
Block a user