Skip to content

Commit

Permalink
add the performance monitoring section to the admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Oct 5, 2024
1 parent 7a2db25 commit 8b858f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/views/admin/_monitoring.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
%div
%iframe.embed-responsive.w-100.border{src: 'rails/performance', style: 'height:100vh;'}
4 changes: 3 additions & 1 deletion app/views/admin/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;"}
Expand Down

0 comments on commit 8b858f2

Please sign in to comment.