Author: jchris Date: Mon Jun 7 16:39:12 2010 New Revision: 952326 URL: http://svn.apache.org/viewvc?rev=952326&view=rev Log: button on test suite page to replicate test_suite_reports to community couchdb
Added: couchdb/trunk/share/www/dialog/_share_test_reports.html Modified: couchdb/trunk/share/www/couch_tests.html couchdb/trunk/share/www/style/layout.css Modified: couchdb/trunk/share/www/couch_tests.html URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/couch_tests.html?rev=952326&r1=952325&r2=952326&view=diff ============================================================================== --- couchdb/trunk/share/www/couch_tests.html [utf-8] (original) +++ couchdb/trunk/share/www/couch_tests.html [utf-8] Mon Jun 7 16:39:12 2010 @@ -35,6 +35,14 @@ specific language governing permissions $("#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 <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"> Added: couchdb/trunk/share/www/dialog/_share_test_reports.html URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/dialog/_share_test_reports.html?rev=952326&view=auto ============================================================================== --- couchdb/trunk/share/www/dialog/_share_test_reports.html (added) +++ couchdb/trunk/share/www/dialog/_share_test_reports.html Mon Jun 7 16:39:12 2010 @@ -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> Modified: couchdb/trunk/share/www/style/layout.css URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/style/layout.css?rev=952326&r1=952325&r2=952326&view=diff ============================================================================== --- couchdb/trunk/share/www/style/layout.css (original) +++ couchdb/trunk/share/www/style/layout.css Mon Jun 7 16:39:12 2010 @@ -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 */