couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [38/39] couchdb commit: updated refs/heads/Update-Sidebar-Ui to 2cf2eab
Date Wed, 11 Jun 2014 12:56:54 GMT
Correct icons


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

Branch: refs/heads/Update-Sidebar-Ui
Commit: fe7b6b6e2371f42e50f2db6aac58bfce0823f45f
Parents: 5749263
Author: Garren Smith <garren.smith@gmail.com>
Authored: Wed Jun 11 14:30:03 2014 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Wed Jun 11 14:30:03 2014 +0200

----------------------------------------------------------------------
 src/fauxton/app/addons/documents/sidebarviews.js              | 7 ++++++-
 .../app/addons/documents/templates/design_doc_menu.html       | 2 +-
 .../app/addons/documents/templates/index_menu_item.html       | 2 +-
 3 files changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/fe7b6b6e/src/fauxton/app/addons/documents/sidebarviews.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/sidebarviews.js b/src/fauxton/app/addons/documents/sidebarviews.js
index d800154..bf07d28 100644
--- a/src/fauxton/app/addons/documents/sidebarviews.js
+++ b/src/fauxton/app/addons/documents/sidebarviews.js
@@ -217,11 +217,16 @@ function(app, FauxtonAPI, Components, Documents, Databases) {
       this.selected = !! options.selected;
       this.selector = options.selector;
       this.ddocType = options.ddocType || this.selector;
+      this.icons = {
+        "view": "fonticon-sidenav-map-reduce",
+        "indexes": "fonticon-sidenav-search"
+      };
+
     },
 
     serialize: function() {
       return {
-        icon: this.ddocType,
+        icon: this.icons[this.ddocType],
         ddocType:  this.ddocType,
         index: this.index,
         ddoc: this.ddoc,

http://git-wip-us.apache.org/repos/asf/couchdb/blob/fe7b6b6e/src/fauxton/app/addons/documents/templates/design_doc_menu.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/templates/design_doc_menu.html b/src/fauxton/app/addons/documents/templates/design_doc_menu.html
index e471103..e49ec21 100644
--- a/src/fauxton/app/addons/documents/templates/design_doc_menu.html
+++ b/src/fauxton/app/addons/documents/templates/design_doc_menu.html
@@ -23,7 +23,7 @@ the License.
 	<ul class="accordion-body collapse" id="<%= ddoc_clean %>">
 		<li>
 			<a id="<%= ddoc_clean %>_metadata" href="#/database/<%- database_encoded %>/_design/<%-
ddoc_encoded %>/metadata" class="toggle-view">
-			<span class="cloudant-sidenav-info fonticon"></span>
+			<span class="fonticon-sidenav-info fonticon"></span>
 			  Design Doc Metadata
 			</a>
 		</li>

http://git-wip-us.apache.org/repos/asf/couchdb/blob/fe7b6b6e/src/fauxton/app/addons/documents/templates/index_menu_item.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/templates/index_menu_item.html b/src/fauxton/app/addons/documents/templates/index_menu_item.html
index 42dc2db..ad5979b 100644
--- a/src/fauxton/app/addons/documents/templates/index_menu_item.html
+++ b/src/fauxton/app/addons/documents/templates/index_menu_item.html
@@ -13,7 +13,7 @@ the License.
 -->
 <a class="js-collapse-toggle" data-toggle="collapse"  data-target="#<%- ddocType %>"
>
   <div class="fonticon-play"></div>
-  <span class="cloudant-sidenav-info fonticon"></span>
+  <span class="<%- icon %> fonticon"></span>
   <%- ddocType %>
   </a>
   <ul class="accordion-body collapse" id="<%= ddocType %>">


Mime
View raw message