summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-06-07 16:39:12 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-06-07 16:39:12 +0000
commit9765e4fc3e89400262330d907fb5429ada370428 (patch)
tree99944cda181748fd91095694cdd774473cd5f3e1 /share
parent426ab48c842cc7f9a4d0a3f11eacd7c63b334287 (diff)
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
Diffstat (limited to 'share')
-rw-r--r--share/www/couch_tests.html9
-rw-r--r--share/www/dialog/_share_test_reports.html42
-rw-r--r--share/www/style/layout.css1
3 files changed, 52 insertions, 0 deletions
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.
<ul id="toolbar">
<li><button class="run">Run All</button></li>
<li><button class="load">Reload</button></li>
+ <li><button class="share">Share Test Reports</button></li>
<li><button class="add">Custom Test</button></li>
</ul>
<p class="help">
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 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post">
+ <h2>Share Test Reports</h2>
+ <fieldset>
+ <p class="help">
+ After each test run, a results summary document is stored in
+ <a href="/_utils/database.html?test_suite_reports">your local
+ <tt>test_suite_reports</tt> database.</a> 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.
+ </p>
+ <p class="help">
+ Test reports are very valuable to the CouchDB community, and are easy to share.
+ Clicking the "share" button below triggers replication from
+ your local <tt>test_suite_reports</tt> database, to a database hosted by the
+ project.
+ </p>
+ <p class="help">
+ <a href="http://couchdb.couchdb.org/_utils/database.html?test_suite_reports">
+ Browse test reports shared by other users.</a>
+ Thank you for sharing!
+ </p>
+ </fieldset>
+ <div class="buttons">
+ <button type="submit">Share</button>
+ <button type="button" class="cancel">Cancel</button>
+ </div>
+</form>
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 */