From 8b858f2ab75a676e1c8101518e8aef3efb0daff5 Mon Sep 17 00:00:00 2001 From: Syphax Date: Sat, 5 Oct 2024 13:56:29 +0200 Subject: [PATCH] add the performance monitoring section to the admin page --- app/views/admin/_monitoring.html.haml | 2 ++ app/views/admin/index.html.haml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 app/views/admin/_monitoring.html.haml diff --git a/app/views/admin/_monitoring.html.haml b/app/views/admin/_monitoring.html.haml new file mode 100644 index 0000000000..5225d714f9 --- /dev/null +++ b/app/views/admin/_monitoring.html.haml @@ -0,0 +1,2 @@ +%div + %iframe.embed-responsive.w-100.border{src: 'rails/performance', style: 'height:100vh;'} \ No newline at end of file diff --git a/app/views/admin/index.html.haml b/app/views/admin/index.html.haml index da8f0cbdee..c360f84d3b 100644 --- a/app/views/admin/index.html.haml +++ b/app/views/admin/index.html.haml @@ -11,7 +11,7 @@ %div %div.mx-1 - - sections = [t('admin.index.analytics'), t('admin.index.site_administration'),t('admin.index.ontology_administration'), t('admin.index.licensing'), t('admin.index.users'), t('admin.index.metadata_administration'), t('admin.index.groups'), t('admin.index.categories'), t('admin.index.persons_and_organizations'), t('admin.index.sparql'), t('admin.index.search')] + - sections = [t('admin.index.analytics'), t('admin.index.site_administration'), "Performance Monitoring", t('admin.index.ontology_administration'), t('admin.index.licensing'), t('admin.index.users'), t('admin.index.metadata_administration'), t('admin.index.groups'), t('admin.index.categories'), t('admin.index.persons_and_organizations'), t('admin.index.sparql'), t('admin.index.search')] - selected = params[:section] || sections.first.downcase = render Layout::VerticalTabsComponent.new(header: t('admin.index.administration_console'), titles: sections, selected: selected, url_parameter: 'section') do |t| - t.item_content do @@ -22,6 +22,8 @@ = render 'analytics' - t.item_content do = render 'main' + - t.item_content do + = render 'monitoring' - t.item_content do %div %table{:style => "float:left;"}