You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2014/07/21 09:03:14 UTC
[30/44] fauxton commit: updated refs/heads/Update-Sidebar to a41bdb0
Correct icons
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/dded2462
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/dded2462
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/dded2462
Branch: refs/heads/Update-Sidebar
Commit: dded24624c9fadf42230d4f45dc814a7bdeb947a
Parents: 2e0aa52
Author: Garren Smith <ga...@gmail.com>
Authored: Wed Jun 11 14:30:03 2014 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Mon Jul 21 09:02:18 2014 +0200
----------------------------------------------------------------------
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-fauxton/blob/dded2462/app/addons/documents/sidebarviews.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/sidebarviews.js b/app/addons/documents/sidebarviews.js
index d800154..bf07d28 100644
--- a/app/addons/documents/sidebarviews.js
+++ b/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-fauxton/blob/dded2462/app/addons/documents/templates/design_doc_menu.html
----------------------------------------------------------------------
diff --git a/app/addons/documents/templates/design_doc_menu.html b/app/addons/documents/templates/design_doc_menu.html
index e471103..e49ec21 100644
--- a/app/addons/documents/templates/design_doc_menu.html
+++ b/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-fauxton/blob/dded2462/app/addons/documents/templates/index_menu_item.html
----------------------------------------------------------------------
diff --git a/app/addons/documents/templates/index_menu_item.html b/app/addons/documents/templates/index_menu_item.html
index 42dc2db..ad5979b 100644
--- a/app/addons/documents/templates/index_menu_item.html
+++ b/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 %>">