From 2e4f11a2f02660ddab31d71733a7c17ff3d8a202 Mon Sep 17 00:00:00 2001 From: Eric Eggert Date: Tue, 3 Jun 2014 10:21:24 +0200 Subject: [PATCH 1/5] Design of test result links --- css/wai-act.css | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/css/wai-act.css b/css/wai-act.css index 0551729..db14034 100644 --- a/css/wai-act.css +++ b/css/wai-act.css @@ -992,63 +992,68 @@ pre[class*="language-"] { background-color: #eee; vertical-align: top; } -/* line 233, ../sass/_asd.scss */ +/* line 232, ../sass/_asd.scss */ +.results tbody th a { + font-weight: normal; + color: inherit; +} +/* line 237, ../sass/_asd.scss */ .results tbody.collapsed + .testcases { display: none; } -/* line 239, ../sass/_asd.scss */ +/* line 243, ../sass/_asd.scss */ .results .result .btn, .results .result .btn-primary, .results .result .btn-small { display: block; } -/* line 241, ../sass/_asd.scss */ +/* line 245, ../sass/_asd.scss */ .results .result .btn > span, .results .result .btn-primary > span, .results .result .btn-small > span { float: right; } -/* line 248, ../sass/_asd.scss */ +/* line 252, ../sass/_asd.scss */ .empty { border-bottom-width: 0; border-top: none; } -/* line 251, ../sass/_asd.scss */ +/* line 255, ../sass/_asd.scss */ tr:last-child .empty { border-bottom-width: 1px; } -/* line 256, ../sass/_asd.scss */ +/* line 260, ../sass/_asd.scss */ .admin { background-color: #Fd9; } -/* line 260, ../sass/_asd.scss */ +/* line 264, ../sass/_asd.scss */ div.admin { padding: .5em; } -/* line 265, ../sass/_asd.scss */ +/* line 269, ../sass/_asd.scss */ .environments .col1 { width: 1em; text-align: right; } -/* line 266, ../sass/_asd.scss */ +/* line 270, ../sass/_asd.scss */ .environments .col2 { width: 20em; } -/* line 267, ../sass/_asd.scss */ +/* line 271, ../sass/_asd.scss */ .environments .col3 { width: 7em; text-align: center; } -/* line 268, ../sass/_asd.scss */ +/* line 272, ../sass/_asd.scss */ .environments .editcol { white-space: nowrap; } -/* line 269, ../sass/_asd.scss */ +/* line 273, ../sass/_asd.scss */ .environments td { vertical-align: top; } -/* line 272, ../sass/_asd.scss */ +/* line 276, ../sass/_asd.scss */ .box-note { margin-bottom: 2em; } From ff23c5c65da99ee733254e508d6458241a4591ef Mon Sep 17 00:00:00 2001 From: Eric Eggert Date: Tue, 3 Jun 2014 10:21:47 +0200 Subject: [PATCH 2/5] Space between icon and log in/log out text --- pages/admin-techniques.html | 4 ++-- pages/home.html | 2 +- pages/results.html | 2 +- pages/test-run.html | 2 +- pages/test.html | 4 ++-- pages/tests-finish.html | 4 ++-- pages/tests-run-submit.html | 4 ++-- pages/tests-run.html | 2 +- pages/user-profile-form.html | 4 ++-- pages/user-profiles.html | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pages/admin-techniques.html b/pages/admin-techniques.html index 7eeb0a1..cfb8544 100644 --- a/pages/admin-techniques.html +++ b/pages/admin-techniques.html @@ -4,7 +4,7 @@

@@ -29,4 +29,4 @@

- \ No newline at end of file + diff --git a/pages/home.html b/pages/home.html index 3ab35a1..557e3c5 100644 --- a/pages/home.html +++ b/pages/home.html @@ -3,7 +3,7 @@

Accessibility Support Database

diff --git a/pages/results.html b/pages/results.html index 6dc9a28..b91c0b2 100644 --- a/pages/results.html +++ b/pages/results.html @@ -4,7 +4,7 @@

diff --git a/pages/test-run.html b/pages/test-run.html index 31e47e7..2d9c434 100644 --- a/pages/test-run.html +++ b/pages/test-run.html @@ -4,7 +4,7 @@

diff --git a/pages/test.html b/pages/test.html index 7d8c699..0c992d4 100644 --- a/pages/test.html +++ b/pages/test.html @@ -5,11 +5,11 @@

Test Details

- \ No newline at end of file + diff --git a/pages/tests-finish.html b/pages/tests-finish.html index 4a8bd24..2d4eb95 100644 --- a/pages/tests-finish.html +++ b/pages/tests-finish.html @@ -4,7 +4,7 @@

@@ -30,4 +30,4 @@

Information

- \ No newline at end of file + diff --git a/pages/tests-run-submit.html b/pages/tests-run-submit.html index b0f8d85..1dc014f 100644 --- a/pages/tests-run-submit.html +++ b/pages/tests-run-submit.html @@ -4,7 +4,7 @@

@@ -20,4 +20,4 @@

Thank you for your submission!

- \ No newline at end of file + diff --git a/pages/tests-run.html b/pages/tests-run.html index 0cfff08..58054c2 100644 --- a/pages/tests-run.html +++ b/pages/tests-run.html @@ -5,7 +5,7 @@

diff --git a/pages/user-profile-form.html b/pages/user-profile-form.html index 2c09286..86d3a63 100644 --- a/pages/user-profile-form.html +++ b/pages/user-profile-form.html @@ -4,7 +4,7 @@

@@ -47,4 +47,4 @@

Save profile - \ No newline at end of file + diff --git a/pages/user-profiles.html b/pages/user-profiles.html index 5a5b8bf..5660b79 100644 --- a/pages/user-profiles.html +++ b/pages/user-profiles.html @@ -5,7 +5,7 @@

From f166c0d8afc08637b70a0da06ded276e7499fba3 Mon Sep 17 00:00:00 2001 From: Eric Eggert Date: Tue, 3 Jun 2014 10:25:43 +0200 Subject: [PATCH 3/5] Adding nbsp so icons are not alone on one line --- templates.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates.html b/templates.html index 59db515..d75e31c 100644 --- a/templates.html +++ b/templates.html @@ -268,8 +268,7 @@

Test Results

- <%= r.technique %>: <%= r.techniqueTitle %> - Link to external page. + <%= r.technique %>: <%= r.techniqueTitle %> Link to external page. @@ -299,8 +298,7 @@

Test Results

<% first = false %> <% } %> - <%= r.testCaseId %>:
<%= r.testCaseTitle %> - Link to external page. + <%= r.testCaseId %>: <%= r.testCaseTitle %> Link to external page. From f5879b2773a2f7ba7f87db50c46561f0a02b1444 Mon Sep 17 00:00:00 2001 From: Eric Eggert Date: Tue, 3 Jun 2014 10:32:25 +0200 Subject: [PATCH 4/5] Add pie charts, remove debugging code --- js/testresult-views.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/testresult-views.js b/js/testresult-views.js index 822dd77..3656567 100644 --- a/js/testresult-views.js +++ b/js/testresult-views.js @@ -57,6 +57,9 @@ accessdb.Views.TestResultsDataOverview = function (){ if(this.results){ var template = _.template( $("#TestResultsDataOverview_template").html(), {results: this.results} ); this.$el.html( template ); + this.$el.find('.chart').peity("pie", { + fill: ["green", "#f98"] + }); this.$el.find('button').on('click', function(){ var view = new accessdb.Views.TestResultsDataTestCaseOverview(); view.$el = $(this); @@ -103,9 +106,11 @@ accessdb.Views.TestResultsDataTestCaseOverview = function (){ icon = this.$el.find('.icon'); iconlabel = icon.find('.visuallyhidden'); eltbody.toggleClass('collapsed'); - console.log(testcaseData); var tctemplate = _.template( $("#TestResultsDataOverviewTestCases_template").html(), {results: testcaseData.entity} ); sistertbody.html( tctemplate ); + sistertbody.find('.chart').peity("pie", { + fill: ["green", "#f98"] + }); icon.toggleClass('icon-collapse icon-expand'); if (icon.is('.icon-expand')) { iconlabel.text('Expand'); From 018a01c0cdc17b27ed9b9395442ab2bffe980885 Mon Sep 17 00:00:00 2001 From: Eric Eggert Date: Tue, 3 Jun 2014 10:52:57 +0200 Subject: [PATCH 5/5] New nav to Submit Test Case page --- pages/test-submit.html | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/pages/test-submit.html b/pages/test-submit.html index 7c74a08..41cff85 100644 --- a/pages/test-submit.html +++ b/pages/test-submit.html @@ -1,16 +1,11 @@ \ No newline at end of file +