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

27 lines
932 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Logs"
2015-04-26 12:48:37 +05:30
- loggers = [Gitlab::GitLogger, Gitlab::AppLogger,
Gitlab::ProductionLogger, Gitlab::SidekiqLogger]
2014-09-02 18:07:02 +05:30
%ul.nav.nav-tabs.log-tabs
2015-04-26 12:48:37 +05:30
- loggers.each do |klass|
%li{ class: (klass == Gitlab::GitLogger ? 'active' : '') }
= link_to klass::file_name, "##{klass::file_name_noext}",
'data-toggle' => 'tab'
2014-09-02 18:07:02 +05:30
%p.light To prevent performance issues admin logs output the last 2000 lines
.tab-content
2015-04-26 12:48:37 +05:30
- loggers.each do |klass|
.tab-pane{ class: (klass == Gitlab::GitLogger ? 'active' : ''),
id: klass::file_name_noext }
.file-holder#README
.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