sidekiq.log in admin area. Improved admin dashboard
This commit is contained in:
parent
78698698dc
commit
c2982c9a31
|
@ -371,6 +371,7 @@ li.note {
|
||||||
font-size: 48px;
|
font-size: 48px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,17 +25,51 @@
|
||||||
= link_to 'New User', new_admin_user_path, class: "btn small"
|
= link_to 'New User', new_admin_user_path, class: "btn small"
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.span6
|
.span4
|
||||||
%h3 Latest projects
|
%h4 Latest projects
|
||||||
%hr
|
%hr
|
||||||
- @projects.each do |project|
|
- @projects.each do |project|
|
||||||
%p
|
%p
|
||||||
= link_to project.name_with_namespace, [:admin, project]
|
= link_to project.name_with_namespace, [:admin, project]
|
||||||
.span6
|
%span.light.right
|
||||||
%h3 Latest users
|
= time_ago_in_words project.created_at
|
||||||
|
ago
|
||||||
|
|
||||||
|
.span4
|
||||||
|
%h4 Latest users
|
||||||
%hr
|
%hr
|
||||||
- @users.each do |user|
|
- @users.each do |user|
|
||||||
%p
|
%p
|
||||||
= link_to [:admin, user] do
|
= link_to [:admin, user] do
|
||||||
= user.name
|
= user.name
|
||||||
%small= user.email
|
%span.light.right
|
||||||
|
= time_ago_in_words user.created_at
|
||||||
|
ago
|
||||||
|
|
||||||
|
.span4
|
||||||
|
%h4 Stats
|
||||||
|
%hr
|
||||||
|
%p
|
||||||
|
Issues
|
||||||
|
%span.light.right
|
||||||
|
= Issue.count
|
||||||
|
%p
|
||||||
|
Merge Requests
|
||||||
|
%span.light.right
|
||||||
|
= MergeRequest.count
|
||||||
|
%p
|
||||||
|
Notes
|
||||||
|
%span.light.right
|
||||||
|
= Note.count
|
||||||
|
%p
|
||||||
|
Snippets
|
||||||
|
%span.light.right
|
||||||
|
= Snippet.count
|
||||||
|
%p
|
||||||
|
SSH Keys
|
||||||
|
%span.light.right
|
||||||
|
= Key.count
|
||||||
|
%p
|
||||||
|
Milestones
|
||||||
|
%span.light.right
|
||||||
|
= Milestone.count
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
= link_to "application.log", "#application", 'data-toggle' => 'tab'
|
= link_to "application.log", "#application", 'data-toggle' => 'tab'
|
||||||
%li
|
%li
|
||||||
= link_to "production.log", "#production", 'data-toggle' => 'tab'
|
= link_to "production.log", "#production", 'data-toggle' => 'tab'
|
||||||
|
%li
|
||||||
|
= link_to "sidekiq.log", "#sidekiq", 'data-toggle' => 'tab'
|
||||||
|
|
||||||
%p.light To prevent perfomance issues admin logs output the last 2000 lines
|
%p.light To prevent perfomance issues admin logs output the last 2000 lines
|
||||||
.tab-content
|
.tab-content
|
||||||
|
@ -50,3 +52,17 @@
|
||||||
- Gitlab::Logger.read_latest_for('production.log').each do |line|
|
- Gitlab::Logger.read_latest_for('production.log').each do |line|
|
||||||
%li
|
%li
|
||||||
%p= line
|
%p= line
|
||||||
|
.tab-pane#sidekiq
|
||||||
|
.file_holder#README
|
||||||
|
.file_title
|
||||||
|
%i.icon-file
|
||||||
|
sidekiq.log
|
||||||
|
.right
|
||||||
|
= link_to '#', class: 'log-bottom' do
|
||||||
|
%i.icon-arrow-down
|
||||||
|
Scroll down
|
||||||
|
.file_content.logs
|
||||||
|
%ol
|
||||||
|
- Gitlab::Logger.read_latest_for('sidekiq.log').each do |line|
|
||||||
|
%li
|
||||||
|
%p= line
|
||||||
|
|
Loading…
Reference in a new issue