2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
2015-09-11 14:41:01 +05:30
|
|
|
- page_title "Logs"
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
%div{ class: container_class }
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.nav-links.log-tabs.nav.nav-tabs
|
2018-03-17 18:26:18 +05:30
|
|
|
- @loggers.each do |klass|
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.nav-item
|
|
|
|
= link_to klass.file_name, "##{klass.file_name_noext}", data: { toggle: 'tab' }, class: "#{active_when(klass == @loggers.first)} nav-link"
|
2016-06-16 23:09:34 +05:30
|
|
|
.row-content-block
|
|
|
|
To prevent performance issues admin logs output the last 2000 lines
|
|
|
|
.tab-content
|
2018-03-17 18:26:18 +05:30
|
|
|
- @loggers.each do |klass|
|
|
|
|
.tab-pane{ class: active_when(klass == @loggers.first), id: klass.file_name_noext }
|
2016-06-16 23:09:34 +05:30
|
|
|
.file-holder#README
|
2017-08-17 22:00:37 +05:30
|
|
|
.js-file-title.file-title
|
2016-06-16 23:09:34 +05:30
|
|
|
%i.fa.fa-file
|
2018-03-17 18:26:18 +05:30
|
|
|
= klass.file_name
|
2018-11-08 19:23:39 +05:30
|
|
|
.float-right
|
2016-06-16 23:09:34 +05:30
|
|
|
= link_to '#', class: 'log-bottom' do
|
|
|
|
%i.fa.fa-arrow-down
|
|
|
|
Scroll down
|
|
|
|
.file-content.logs
|
|
|
|
%ol
|
|
|
|
- klass.read_latest.each do |line|
|
|
|
|
%li
|
|
|
|
%p= line
|