BigW Consortium Gitlab

Commit 5f218eb5 by Rémy Coutable

Improve UI of the performance bar

Signed-off-by: 's avatarRémy Coutable <remy@rymai.me>
parent d16a3cf7
...@@ -27,6 +27,7 @@ module NavHelper ...@@ -27,6 +27,7 @@ module NavHelper
def nav_header_class def nav_header_class
class_name = '' class_name = ''
class_name << " with-horizontal-nav" if defined?(nav) && nav class_name << " with-horizontal-nav" if defined?(nav) && nav
class_name << " with-peek" if peek_enabled?
class_name class_name
end end
......
%strong %strong
%a#peek-show-queries{ href: '#' } %a#peek-show-queries{ href: '#' }
%span{ data: { defer_to: "#{view.defer_key}-duration" }}... %span{ data: { defer_to: "#{view.defer_key}-duration" }}...
/ \/
%span{ data: { defer_to: "#{view.defer_key}-calls" }}... %span{ data: { defer_to: "#{view.defer_key}-calls" }}...
/ #modal-peek-pg-queries.modal{ tabindex: -1 }
#modal-peek-pg-queries.modal{ tabindex: -1 } .modal-dialog
.modal-dialog #modal-peek-pg-queries-content.modal-content
#modal-peek-pg-queries-content.modal-content .modal-header
.modal-header %a.close{ href: "#", "data-dismiss" => "modal" } ×
%a.close{ href: "#", "data-dismiss" => "modal" } × %h4
%h4 SQL queries
SQL queries .modal-body{ data: { defer_to: "#{view.defer_key}-queries" }}...
.modal-body{ data: { defer_to: "#{view.defer_key}-queries" }}...
pg pg
//= require peek/views/performance_bar //= require peek/views/performance_bar
//= require peek/views/rblineprof //= require peek/views/rblineprof
header.navbar-gitlab.with-peek {
top: 35px;
}
#peek { #peek {
background: #000; background: #000;
height: 35px; height: 35px;
...@@ -57,6 +61,12 @@ ...@@ -57,6 +61,12 @@
color: #fff; color: #fff;
} }
table {
strong {
color: #000;
}
}
.view { .view {
margin-right: 15px; margin-right: 15px;
float: left; float: left;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment