Fix active states on monitoring logs tabs

This commit is contained in:
Annabel Dunstone Gray 2018-05-31 19:24:00 -07:00
parent 4e980ea8bc
commit 70621bb4fc
No known key found for this signature in database
GPG key ID: 7C8C78A372AD7A2D

View file

@ -4,8 +4,8 @@
%div{ class: container_class }
%ul.nav-links.log-tabs.nav.nav-tabs
- @loggers.each do |klass|
%li{ class: active_when(klass == @loggers.first) }>
= link_to klass.file_name, "##{klass.file_name_noext}", data: { toggle: 'tab' }
%li.nav-item
= link_to klass.file_name, "##{klass.file_name_noext}", data: { toggle: 'tab' }, class: "#{active_when(klass == @loggers.first)} nav-link"
.row-content-block
To prevent performance issues admin logs output the last 2000 lines
.tab-content