From 64e6d4310f0e3d4c84ebc3c2b7dd7a941a7d6b3a Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 28 Oct 2013 13:00:21 -0600 Subject: [PATCH] Can now toggle package stories --- web/client/css/goconvey.css | 44 ++++++++++++++++++++++++------------- web/client/index.html | 5 +++-- web/client/js/goconvey.js | 15 +++++++++++-- 3 files changed, 45 insertions(+), 19 deletions(-) diff --git a/web/client/css/goconvey.css b/web/client/css/goconvey.css index 0d024f43..9b823b12 100644 --- a/web/client/css/goconvey.css +++ b/web/client/css/goconvey.css @@ -213,33 +213,47 @@ a.link-fa:hover { -.failure-shortcuts, -.panic-shortcuts, -.builds-shortcuts { - margin-bottom: 1em; -} - -.failure-shortcuts a, -.panic-shortcuts a, -.builds-shortcuts a { - line-height: 1.5em; +.toggle { + text-decoration: none !important; + color: #666 !important; } -a.toggle, .toggle-spacing { +.toggle-package-shortcuts, +.toggle-spacer { padding: 0 5px; display: inline-block; } -a.goto, -a.toggle { +.goto, +.toggle { text-decoration: none !important; color: #666 !important; } -a.goto:hover, -a.toggle:hover { +.goto:hover, +.toggle:hover { color: #000 !important; } + + + + + + + + +.failure-shortcuts, +.panic-shortcuts, +.builds-shortcuts { + margin-bottom: 1em; +} + +.failure-shortcuts a, +.panic-shortcuts a, +.builds-shortcuts a { + line-height: 1.5em; +} + .failure-shortcuts a { color: #E79C07; } diff --git a/web/client/index.html b/web/client/index.html index dae3bdfa..7f39b617 100644 --- a/web/client/index.html +++ b/web/client/index.html @@ -142,9 +142,9 @@

GoConvey

{{.}}
{{if TestResults|notempty}} - + {{else}} - + {{/if}} {{PackageName|chopEnd>23|boldPkgName}} @@ -296,6 +296,7 @@

GoConvey

diff --git a/web/client/js/goconvey.js b/web/client/js/goconvey.js index cfcbeadf..452d19d2 100644 --- a/web/client/js/goconvey.js +++ b/web/client/js/goconvey.js @@ -126,12 +126,23 @@ $(function() }); }); - // For expanding-collapsing the package/testfunc lists + // TOGGLES + // Toggle a toggle's icon to expand/contract when clicked $('body').on('click', '.toggle', function() { - $(this).next('a').next('.testfunc-list').toggle(65); $('.fa', this).toggleClass('fa-collapse-o').toggleClass('fa-expand-o'); }); + // Package/testfunc lists + $('body').on('click', '.toggle-package-shortcuts', function() + { + $(this).next('a').next('.testfunc-list').toggle(65); + }); + // Package stories + $('body').on('click', '.toggle-package-stories', function() + { + $(this).closest('tr').siblings().toggle(); + }); + // END TOGGLES function update() {
+ {{PackageName}}