From 4504d5ebac4c8151ca93aadfca6828e9c9d6bcda Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 20 Nov 2022 17:59:07 +0100 Subject: [PATCH] Add layout and sidebar for administration views --- app/views/layouts/admin.html.haml | 8 ++++++++ app/views/tabs/_admin.html.haml | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 app/views/layouts/admin.html.haml create mode 100644 app/views/tabs/_admin.html.haml diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml new file mode 100644 index 00000000..348a7d73 --- /dev/null +++ b/app/views/layouts/admin.html.haml @@ -0,0 +1,8 @@ +.container-lg.container--main + .row + .col-md-3.col-sm-4.col-xs-12 + = render 'tabs/admin' + .col-md-9.col-sm-8.col-xs-12 + = yield + +- parent_layout 'base' diff --git a/app/views/tabs/_admin.html.haml b/app/views/tabs/_admin.html.haml new file mode 100644 index 00000000..677a9cf0 --- /dev/null +++ b/app/views/tabs/_admin.html.haml @@ -0,0 +1,10 @@ +.card + .list-group + = list_group_item t(".dashboard"), admin_dashboard_path + = list_group_item t(".announcements"), announcement_index_path + +.card + .list-group + = list_group_item t(".rails"), rails_admin_path + = list_group_item t(".sidekiq"), sidekiq_web_path + = list_group_item t(".pghero"), pghero_path