couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r737893 - in /couchdb/trunk/share/www: database.html script/futon.browse.js style/layout.css
Date Mon, 26 Jan 2009 22:10:58 GMT
Author: cmlenz
Date: Mon Jan 26 22:10:58 2009
New Revision: 737893

URL: http://svn.apache.org/viewvc?rev=737893&view=rev
Log:
Rename 'Custom query' in Futon to 'Temporary view', and add a warning about the use of temp
views.

Modified:
    couchdb/trunk/share/www/database.html
    couchdb/trunk/share/www/script/futon.browse.js
    couchdb/trunk/share/www/style/layout.css

Modified: couchdb/trunk/share/www/database.html
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/database.html?rev=737893&r1=737892&r2=737893&view=diff
==============================================================================
--- couchdb/trunk/share/www/database.html [utf-8] (original)
+++ couchdb/trunk/share/www/database.html [utf-8] Mon Jan 26 22:10:58 2009
@@ -118,7 +118,7 @@
         <label>Select view: <select autocomplete="false">
           <option value="_all_docs">All documents</option>
           <option value="_design_docs">Design documents</option>
-          <option value="_temp_view">Custom query…</option>
+          <option value="_temp_view">Temporary view…</option>
         </select></label>
       </div>
       <ul id="toolbar">
@@ -151,6 +151,13 @@
           <label>Language: <select id="language"></select></label>
         </div>
       </div>
+      <p id="tempwarn">
+        <strong>Warning</strong>: Please note that temporary views are not
+        suitable for use in production, as they are really slow for any
+        database with more than a few dozen documents. You can use a temporary
+        view to experiment with view functions, but switch to a permanent view
+        before using them in an application.
+      </p>
 
       <table id="documents" class="listing" cellspacing="0">
         <caption>Documents</caption>

Modified: couchdb/trunk/share/www/script/futon.browse.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.browse.js?rev=737893&r1=737892&r2=737893&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/futon.browse.js [utf-8] Mon Jan 26 22:10:58 2009
@@ -207,6 +207,9 @@
           );
         }
         page.populateLanguagesMenu();
+        if (this.isTempView) {
+          $("#tempwarn").show();
+        }
       }
 
       // Populate the languages dropdown, and listen to selection changes

Modified: couchdb/trunk/share/www/style/layout.css
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/style/layout.css?rev=737893&r1=737892&r2=737893&view=diff
==============================================================================
--- couchdb/trunk/share/www/style/layout.css (original)
+++ couchdb/trunk/share/www/style/layout.css Mon Jan 26 22:10:58 2009
@@ -332,6 +332,8 @@
 #viewcode.collapsed .top span { background-position: 0 3px; }
 #viewcode.collapsed table, #viewcode.collapsed .bottom { display: none; }
 
+#tempwarn { display: none; font-size: 90%; margin: 0 2em 1.5em; }
+
 /* Database table */
 
 #databases thead th.size, #databases thead th.count, #databases thead th.seq,



Mime
View raw message