Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5f218eb5
Commit
5f218eb5
authored
Jun 07, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve UI of the performance bar
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
d16a3cf7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
10 deletions
+20
-10
app/helpers/nav_helper.rb
app/helpers/nav_helper.rb
+1
-0
app/views/peek/views/_pg.html.haml
app/views/peek/views/_pg.html.haml
+9
-10
vendor/assets/stylesheets/peek.scss
vendor/assets/stylesheets/peek.scss
+10
-0
No files found.
app/helpers/nav_helper.rb
View file @
5f218eb5
...
...
@@ -27,6 +27,7 @@ module NavHelper
def
nav_header_class
class_name
=
''
class_name
<<
" with-horizontal-nav"
if
defined?
(
nav
)
&&
nav
class_name
<<
" with-peek"
if
peek_enabled?
class_name
end
...
...
app/views/peek/views/_pg.html.haml
View file @
5f218eb5
%strong
%a
#peek-show-queries
{
href:
'#'
}
%span
{
data:
{
defer_to:
"#{view.defer_key}-duration"
}}
...
/
\
/
%span
{
data:
{
defer_to:
"#{view.defer_key}-calls"
}}
...
/
#modal-peek-pg-queries
.modal
{
tabindex:
-
1
}
.modal-dialog
#modal-peek-pg-queries-content
.modal-content
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h4
SQL queries
.modal-body
{
data:
{
defer_to:
"#{view.defer_key}-queries"
}}
...
#modal-peek-pg-queries
.modal
{
tabindex:
-
1
}
.modal-dialog
#modal-peek-pg-queries-content
.modal-content
.modal-header
%a
.close
{
href:
"#"
,
"data-dismiss"
=>
"modal"
}
×
%h4
SQL queries
.modal-body
{
data:
{
defer_to:
"#{view.defer_key}-queries"
}}
...
pg
vendor/assets/stylesheets/peek.scss
View file @
5f218eb5
//= require peek/views/performance_bar
//= require peek/views/rblineprof
header
.navbar-gitlab.with-peek
{
top
:
35px
;
}
#peek
{
background
:
#000
;
height
:
35px
;
...
...
@@ -57,6 +61,12 @@
color
:
#fff
;
}
table
{
strong
{
color
:
#000
;
}
}
.view
{
margin-right
:
15px
;
float
:
left
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment