diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-06 19:37:31 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-07-06 19:37:31 +0000 |
commit | 18326c20805df1fb392ea55599626b3f19de1322 (patch) | |
tree | 79871da6e9e136f140c604d26b16163340b56f0d /app/views/peek | |
parent | 46ccda86fb7e7c78b75c69d3b4c33f347f03da2b (diff) | |
download | gitlab-ce-18326c20805df1fb392ea55599626b3f19de1322.tar.gz |
Improve & fix the performance bar UI and behavior
Diffstat (limited to 'app/views/peek')
-rw-r--r-- | app/views/peek/views/_rblineprof.html.haml | 7 | ||||
-rw-r--r-- | app/views/peek/views/_sql.html.haml | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/app/views/peek/views/_rblineprof.html.haml b/app/views/peek/views/_rblineprof.html.haml new file mode 100644 index 00000000000..6c037930ca9 --- /dev/null +++ b/app/views/peek/views/_rblineprof.html.haml @@ -0,0 +1,7 @@ +Profile: + += link_to 'all', url_for(lineprofiler: 'true'), class: 'js-toggle-modal-peek-line-profile' +\/ += link_to 'app & lib', url_for(lineprofiler: 'app'), class: 'js-toggle-modal-peek-line-profile' +\/ += link_to 'views', url_for(lineprofiler: 'views'), class: 'js-toggle-modal-peek-line-profile' diff --git a/app/views/peek/views/_sql.html.haml b/app/views/peek/views/_sql.html.haml index 16fc010f66f..dd8b524064f 100644 --- a/app/views/peek/views/_sql.html.haml +++ b/app/views/peek/views/_sql.html.haml @@ -1,13 +1,13 @@ %strong - %a#peek-show-queries{ href: '#' } + %a.js-toggle-modal-peek-sql %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-dialog.modal-full + .modal-content .modal-header - %a.close{ href: "#", "data-dismiss" => "modal" } × + %button.close.btn.btn-link.btn-sm{ type: 'button', data: { dismiss: 'modal' } } X %h4 SQL queries .modal-body{ data: { defer_to: "#{view.defer_key}-queries" } }... |