diff --git a/HEADS b/HEADS index 5f06a0d..b295413 100644 --- a/HEADS +++ b/HEADS @@ -1 +1 @@ -{"engine": {"master": "6f7b413e08f21e6d70c936eaae9702f66207f30c"}} \ No newline at end of file +{"engine": {"master": "7485a80d12f5ac58116d9b33305c7f9bc5246239"}} \ No newline at end of file diff --git a/app/buildings/building_controller.cpp b/app/buildings/building_controller.cpp index 951e0bb..61f8e5d 100644 --- a/app/buildings/building_controller.cpp +++ b/app/buildings/building_controller.cpp @@ -24,10 +24,10 @@ void BuildingController::admin_handle_request_main(Request *request) { request->send_error(404); } String BuildingController::admin_get_section_name() { - return "Building Editor"; + return "Buildings"; } void BuildingController::admin_add_section_links(Vector *links) { - links->push_back(AdminSectionLinkInfo("Editor", "")); + links->push_back(AdminSectionLinkInfo("- Building Editor", "")); } bool BuildingController::admin_full_render() { return false; @@ -40,7 +40,7 @@ void BuildingController::admin_render_building_list(Request *request) { b.div()->cls("back")->f()->a()->href(request->get_url_root_parent())->f()->w("<--- Back")->ca()->cdiv(); b.br(); - b.h4()->f()->w("Building Editor")->ch4(); + b.div()->cls("top_menu")->f()->w("Building Editor")->cdiv(); b.br(); b.div()->cls("top_menu")->f()->a()->href(request->get_url_root("new"))->f()->w("Create New")->ca()->cdiv(); b.br(); diff --git a/app/mourne_application.cpp b/app/mourne_application.cpp index 9847b99..80442db 100644 --- a/app/mourne_application.cpp +++ b/app/mourne_application.cpp @@ -284,7 +284,13 @@ MourneApplication::MourneApplication() : _admin_panel = new AdminPanel(); _admin_panel->register_admin_controller("buildings", BuildingController::get_singleton()); - + + HTMLBuilder b; + + b.link()->rel("stylesheet")->type("text/css")->href("/css/base.css")->f()->f(); + b.link()->rel("stylesheet")->type("text/css")->href("/css/admin.css")->f()->f(); + + _admin_panel->set_default_header(b.result); compile_menu(); }