debian-mirror-gitlab/app/views/admin/logs/show.html.haml

32 lines
1.1 KiB
Text
Raw Normal View History

- @no_container = true
2015-09-11 14:41:01 +05:30
- page_title "Logs"
2015-04-26 12:48:37 +05:30
- loggers = [Gitlab::GitLogger, Gitlab::AppLogger,
2017-08-17 22:00:37 +05:30
Gitlab::EnvironmentLogger, Gitlab::SidekiqLogger,
2016-06-02 11:05:42 +05:30
Gitlab::RepositoryCheckLogger]
= render 'admin/background_jobs/head'
2016-08-24 12:49:21 +05:30
%div{ class: container_class }
%ul.nav-links.log-tabs
- loggers.each do |klass|
2017-08-17 22:00:37 +05:30
%li{ class: active_when(klass == Gitlab::GitLogger) }>
= link_to klass::file_name, "##{klass::file_name_noext}",
'data-toggle' => 'tab'
.row-content-block
To prevent performance issues admin logs output the last 2000 lines
.tab-content
- loggers.each do |klass|
2017-08-17 22:00:37 +05:30
.tab-pane{ class: active_when(klass == Gitlab::GitLogger), id: klass::file_name_noext }
.file-holder#README
2017-08-17 22:00:37 +05:30
.js-file-title.file-title
%i.fa.fa-file
= klass::file_name
.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