mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-02 13:47:56 +02: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) {
|
for (int j = 0; j < links.size(); ++j) {
|
||||||
AdminSectionLinkInfo &li = links[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.w(li.name);
|
||||||
b.ca();
|
b.ca();
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ void RBACController::create_validators() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RBACController::admin_add_section_links(Vector<AdminSectionLinkInfo> *links) {
|
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() {
|
RBACController *RBACController::get_singleton() {
|
||||||
|
Loading…
Reference in New Issue
Block a user