You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2014/08/25 15:39:53 UTC

[13/48] fauxton commit: updated refs/heads/secondary-indexes to 8688d16

Provides grouping and better formatting for design doc metadata

Fixes COUCHDB-2174.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/43f0033b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/43f0033b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/43f0033b

Branch: refs/heads/secondary-indexes
Commit: 43f0033b53c0a9d4e2650c85de10dd9bfdba883b
Parents: 2adfaf9
Author: thriqon <gi...@jonasw.de>
Authored: Thu Aug 21 10:34:52 2014 +0200
Committer: Robert Kowalski <ro...@kowalski.gd>
Committed: Sat Aug 23 22:00:27 2014 +0200

----------------------------------------------------------------------
 app/addons/documents/templates/ddoc_info.html | 55 +++++++++++++++++-----
 app/helpers.js                                |  1 +
 2 files changed, 45 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/43f0033b/app/addons/documents/templates/ddoc_info.html
----------------------------------------------------------------------
diff --git a/app/addons/documents/templates/ddoc_info.html b/app/addons/documents/templates/ddoc_info.html
index 3f8f80f..e9b1b6e 100644
--- a/app/addons/documents/templates/ddoc_info.html
+++ b/app/addons/documents/templates/ddoc_info.html
@@ -12,17 +12,50 @@ License for the specific language governing permissions and limitations under
 the License.
 -->
 <div>
-  <h2>Design Doc MetaData:  _design/<%=Ddoc%> </h2>
+  <header class="page-header">
+    <h2>Design Document Metadata: _design/<%-Ddoc%> </h2>
+    <p class="help">Information about the specified design document, including the index, index size and current status of the design document and associated index information.<a href="<%- getDocUrl('design_doc_metadata') %>" class="help-link" target="_blank" data-bypass="true"><i class="icon-question-sign"></i></a></p>
+  </header>
   <div class="row-fluid">
-	<% i=0; _.map(view_index, function (val, key) { %>
-		<% if(i%2==0){%>
-			<div class="row-fluid">
-		<% }; %>
-	    <div class="span6 well-item"><strong> <%- key %></strong> : <%- val %>  </div>
-	    <% if(i%2==1){%>
-			</div>
-		<% }; %>
-	  	<% ++i;
-	}); %>
+    <div class="span6">
+      <header>
+        <h3>Status</h3>
+      </header>
+
+      <dl>
+        <dt>Updater</dt>
+        <dd><%- view_index.updater_running %></dd>
+        <dt>Compact</dt>
+        <dd><%- view_index.compact_running %></dd>
+        <dt>Waiting Commit</dt>
+        <dd><%- view_index.waiting_commit %></dd>
+        <dt>Waiting Clients</dt>
+        <dd><%- view_index.waiting_clients %></dd>
+        <dt>Update Sequence</dt>
+        <dd><%- view_index.update_seq %></dd>
+        <dt>Purge Sequence</dt>
+        <dd><%- view_index.purge_seq %></dd>
+      </dl>
+    </div>
+    <div class="span6">
+      <header>
+        <h3>Information</h3>
+      </header>
+      <dl>
+        <dt>Language</dt>
+        <dd><%- view_index.language %></dd>
+        <dt>Signature</dt>
+        <dd><%- view_index.signature %></dd>
+      </dl>
+      <header>
+        <h3>Storage</h3>
+      </header>
+      <dl>
+        <dt>Data Size</dt>
+        <dd><%- formatSize(view_index.data_size) %></dd>
+        <dt>Disk Size</dt>
+        <dd><%- formatSize(view_index.disk_size) %></dd>
+      </dl>
+    </div>
   </div>
 </div>

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/43f0033b/app/helpers.js
----------------------------------------------------------------------
diff --git a/app/helpers.js b/app/helpers.js
index 6fa8481..acaaba2 100644
--- a/app/helpers.js
+++ b/app/helpers.js
@@ -43,6 +43,7 @@ function(utils, d3) {
     "all_dbs": "/_utils/docs/api/server/common.html?highlight=all_dbs#get--_all_dbs",
     "replication_doc": "/_utils/docs/replication/replicator.html#basics",
     "design_doc": "/_utils/docs/couchapp/ddocs.html#design-docs",
+    "design_doc_metadata" : "/_utils/docs/api/ddoc/common.html#api-ddoc-view-index-info",
     "view_functions": "/_utils/docs/couchapp/ddocs.html#view-functions",
     "map_functions": "/_utils/docs/couchapp/ddocs.html#map-functions",
     "reduce_functions": "/_utils/docs/couchapp/ddocs.html#reduce-and-rereduce-functions",