BigW Consortium Gitlab

show.html.haml 1.87 KB
Newer Older
randx committed
1 2 3 4 5
%ul.nav.nav-tabs.log-tabs
  %li.active
    = link_to "githost.log", "#githost", 'data-toggle' => 'tab'
  %li
    = link_to "application.log", "#application", 'data-toggle' => 'tab'
6 7
  %li
    = link_to "production.log", "#production", 'data-toggle' => 'tab'
8 9
  %li
    = link_to "sidekiq.log", "#sidekiq", 'data-toggle' => 'tab'
Dmitriy Zaporozhets committed
10

Kevin Lyda committed
11
%p.light To prevent performance issues admin logs output the last 2000 lines
randx committed
12 13
.tab-content
  .tab-pane.active#githost
14 15
    .file-holder#README
      .file-title
randx committed
16 17
        %i.icon-file
        githost.log
18
        .pull-right
Dmitriy Zaporozhets committed
19 20 21
          = link_to '#', class: 'log-bottom' do
            %i.icon-arrow-down
            Scroll down
22
      .file-content.logs
randx committed
23 24 25 26 27
        %ol
          - Gitlab::GitLogger.read_latest.each do |line|
            %li
              %p= line
  .tab-pane#application
28 29
    .file-holder#README
      .file-title
randx committed
30 31
        %i.icon-file
        application.log
32
        .pull-right
Dmitriy Zaporozhets committed
33 34 35
          = link_to '#', class: 'log-bottom' do
            %i.icon-arrow-down
            Scroll down
36
      .file-content.logs
randx committed
37 38 39 40
        %ol
          - Gitlab::AppLogger.read_latest.each do |line|
            %li
              %p= line
41
  .tab-pane#production
42 43
    .file-holder#README
      .file-title
44 45
        %i.icon-file
        production.log
46
        .pull-right
47 48 49
          = link_to '#', class: 'log-bottom' do
            %i.icon-arrow-down
            Scroll down
50
      .file-content.logs
51 52 53 54
        %ol
          - Gitlab::Logger.read_latest_for('production.log').each do |line|
            %li
              %p= line
55
  .tab-pane#sidekiq
56 57
    .file-holder#README
      .file-title
58 59
        %i.icon-file
        sidekiq.log
60
        .pull-right
61 62 63
          = link_to '#', class: 'log-bottom' do
            %i.icon-arrow-down
            Scroll down
64
      .file-content.logs
65 66 67 68
        %ol
          - Gitlab::Logger.read_latest_for('sidekiq.log').each do |line|
            %li
              %p= line