moving over post-addons refactor template changes
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/134dd40f Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/134dd40f Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/134dd40f Branch: refs/heads/api-options Commit: 134dd40f259d0365b37db760e039f0873e81aa43 Parents: a37a3eb Author: BigBlueHat <[email protected]> Authored: Mon Jan 13 13:45:22 2014 -0500 Committer: suelockwood <[email protected]> Committed: Mon Jan 13 15:09:15 2014 -0500 ---------------------------------------------------------------------- .../app/addons/documents/templates/advanced_options.html | 5 +++-- src/fauxton/app/addons/documents/templates/all_docs_layout.html | 2 +- src/fauxton/app/addons/documents/templates/all_docs_number.html | 4 +++- .../app/addons/documents/templates/duplicate_doc_modal.html | 2 +- .../app/addons/documents/templates/index_row_docular.html | 5 +++-- 5 files changed, 11 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/134dd40f/src/fauxton/app/addons/documents/templates/advanced_options.html ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/documents/templates/advanced_options.html b/src/fauxton/app/addons/documents/templates/advanced_options.html index 8e96574..e256325 100644 --- a/src/fauxton/app/addons/documents/templates/advanced_options.html +++ b/src/fauxton/app/addons/documents/templates/advanced_options.html @@ -67,8 +67,9 @@ the License. Limit: <select name="limit" class="input-small"> <option>5</option> - <option selected="selected">10</option> - <option>25</option> + <option>10</option> + <option selected="selected">20</option> + <option>30</option> <option>50</option> <option>100</option> </select> http://git-wip-us.apache.org/repos/asf/couchdb/blob/134dd40f/src/fauxton/app/addons/documents/templates/all_docs_layout.html ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/documents/templates/all_docs_layout.html b/src/fauxton/app/addons/documents/templates/all_docs_layout.html index 526c200..6b4a31b 100644 --- a/src/fauxton/app/addons/documents/templates/all_docs_layout.html +++ b/src/fauxton/app/addons/documents/templates/all_docs_layout.html @@ -12,7 +12,7 @@ License for the specific language governing permissions and limitations under the License. --> <ul class="nav nav-tabs window-resizeable" id="db-views-tabs-nav"> - <li><a id="toggle-query" class="fonticon-plus fonticon" href="#query" data-toggle="tab">Query Options</a></li> + <li><a id="toggle-query" class="fonticon-plus fonticon" href="#query" data-bypass="true" data-toggle="tab">Query Options</a></li> </ul> <div class="tab-content"> <div class="tab-pane" id="query"> http://git-wip-us.apache.org/repos/asf/couchdb/blob/134dd40f/src/fauxton/app/addons/documents/templates/all_docs_number.html ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/documents/templates/all_docs_number.html b/src/fauxton/app/addons/documents/templates/all_docs_number.html index c4ea8f6..df8fe07 100644 --- a/src/fauxton/app/addons/documents/templates/all_docs_number.html +++ b/src/fauxton/app/addons/documents/templates/all_docs_number.html @@ -13,8 +13,10 @@ the License. --> <% if (totalRows === "unknown"){ %> Showing 0 documents. <a href="#/database/<%=database%>/new"> Create your first document.</a> -<% } else { %> +<% } else if (showNumbers) { %> Showing <%=offset%> - <%= numModels %> of <%= totalRows %> rows +<% } else { %> + Showing <%=pageStart%> - <%= pageEnd %> <%}%> <% if (updateSeq) { %> -- Update Sequence: <%= updateSeq %> http://git-wip-us.apache.org/repos/asf/couchdb/blob/134dd40f/src/fauxton/app/addons/documents/templates/duplicate_doc_modal.html ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/documents/templates/duplicate_doc_modal.html b/src/fauxton/app/addons/documents/templates/duplicate_doc_modal.html index 3f374b6..dbb25bc 100644 --- a/src/fauxton/app/addons/documents/templates/duplicate_doc_modal.html +++ b/src/fauxton/app/addons/documents/templates/duplicate_doc_modal.html @@ -19,7 +19,7 @@ the License. </div> <div class="modal-body"> <div id="modal-error" class="hide alert alert-error"/> - <form id="file-upload" class="form" method="post"> + <form id="doc-duplicate" class="form" method="post"> <p class="help-block"> Set new documents ID: </p> http://git-wip-us.apache.org/repos/asf/couchdb/blob/134dd40f/src/fauxton/app/addons/documents/templates/index_row_docular.html ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/documents/templates/index_row_docular.html b/src/fauxton/app/addons/documents/templates/index_row_docular.html index 3835453..f1b2217 100644 --- a/src/fauxton/app/addons/documents/templates/index_row_docular.html +++ b/src/fauxton/app/addons/documents/templates/index_row_docular.html @@ -11,8 +11,9 @@ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - -<td class="select"><input type="checkbox"></td> +<% if (doc.isEditable()) { %> + <td class="select"><input type="checkbox"></td> +<% } %> <td> <div> <pre class="prettyprint"><%- doc.prettyJSON() %></pre>
