Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-06 22:24:08 +0300
committerRémy Coutable <remy@rymai.me>2017-06-09 18:21:39 +0300
commit406b351137f73e4d454b76f29b45376acc3c2694 (patch)
tree6915db40028a0e831bb29ed60e045d8768a4017d /app/views/peek
parent46273e14465f98ac1db306122cdf06d3d87b319e (diff)
Tweak Peek to display SQL queries
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/views/peek')
-rw-r--r--app/views/peek/views/_pg.html.haml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/peek/views/_pg.html.haml b/app/views/peek/views/_pg.html.haml
new file mode 100644
index 00000000000..e789e0c5cb5
--- /dev/null
+++ b/app/views/peek/views/_pg.html.haml
@@ -0,0 +1,15 @@
+%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" }}...
+pg