BigW Consortium Gitlab

show.html.haml 940 Bytes
Newer Older
1
- @no_container = true
2
- page_title "Logs"
3
= render 'admin/monitoring/head'
4

5
%div{ class: container_class }
6
  %ul.nav-links.log-tabs
7 8 9
    - @loggers.each do |klass|
      %li{ class: active_when(klass == @loggers.first) }>
        = link_to klass.file_name, "##{klass.file_name_noext}", data: { toggle: 'tab' }
10 11 12
  .row-content-block
    To prevent performance issues admin logs output the last 2000 lines
  .tab-content
13 14
    - @loggers.each do |klass|
      .tab-pane{ class: active_when(klass == @loggers.first), id: klass.file_name_noext }
15
        .file-holder#README
16
          .js-file-title.file-title
17
            %i.fa.fa-file
18
            = klass.file_name
19 20 21 22 23 24 25 26 27
            .pull-right
              = 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