From 9765e4fc3e89400262330d907fb5429ada370428 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Mon, 7 Jun 2010 16:39:12 +0000 Subject: button on test suite page to replicate test_suite_reports to community couchdb git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@952326 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/couch_tests.html | 9 +++++++ share/www/dialog/_share_test_reports.html | 42 +++++++++++++++++++++++++++++++ share/www/style/layout.css | 1 + 3 files changed, 52 insertions(+) create mode 100644 share/www/dialog/_share_test_reports.html (limited to 'share/www') diff --git a/share/www/couch_tests.html b/share/www/couch_tests.html index 0d09a4af..bb384283 100644 --- a/share/www/couch_tests.html +++ b/share/www/couch_tests.html @@ -35,6 +35,14 @@ specific language governing permissions and limitations under the License. $("#toolbar button.load").click(function() { location.reload(true); }); + $("#toolbar button.share").click(function() { + $.showDialog("dialog/_share_test_reports.html", { + submit: function(data, callback) { + $.couch.replicate("test_suite_reports", "http://couchdb.couchdb.org/test_suite_reports"); + callback(); + } + }); + }); $("#toolbar button.add").click(function() { location = "custom_test.html"; }); @@ -52,6 +60,7 @@ specific language governing permissions and limitations under the License.

diff --git a/share/www/dialog/_share_test_reports.html b/share/www/dialog/_share_test_reports.html new file mode 100644 index 00000000..82b49a74 --- /dev/null +++ b/share/www/dialog/_share_test_reports.html @@ -0,0 +1,42 @@ + +

+

Share Test Reports

+
+

+ After each test run, a results summary document is stored in + your local + test_suite_reports database. The data has no personally + identifying information, just details about the test run and your CouchDB + and browser versions. (Click the red link above to see what's stored.) + The data remains private until you click the "share" button below. +

+

+ Test reports are very valuable to the CouchDB community, and are easy to share. + Clicking the "share" button below triggers replication from + your local test_suite_reports database, to a database hosted by the + project. +

+

+ + Browse test reports shared by other users. + Thank you for sharing! +

+
+
+ + +
+
diff --git a/share/www/style/layout.css b/share/www/style/layout.css index 1292e892..5cb558c5 100644 --- a/share/www/style/layout.css +++ b/share/www/style/layout.css @@ -242,6 +242,7 @@ body.fullwidth #wrap { margin-right: 0; } #toolbar button.load { background-image: url(../image/load.png); } #toolbar button.run { background-image: url(../image/run.png); } #toolbar button.save { background-image: url(../image/save.png); } +#toolbar button.share { background-image: url(../image/compact.png); } /* Dialogs */ -- cgit v1.2.3