~jderose/ubuntu/vivid/couchdb/fix-1457464

« back to all changes in this revision

Viewing changes to src/fauxton/app/addons/fauxton/templates/pagination.html

  • Committer: Package Import Robot
  • Author(s): Jason Gerard DeRose
  • Date: 2014-07-20 16:31:46 UTC
  • mfrom: (1.3.6)
  • Revision ID: package-import@ubuntu.com-20140720163146-lfok33zib66d1xwe
Tags: 1.6.0-0ubuntu1
* New upstream release (LP: #1212481)
* debian/control: bump Standards-Version to 3.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
Licensed under the Apache License, Version 2.0 (the "License"); you may not
 
3
use this file except in compliance with the License. You may obtain a copy of
 
4
the License at
 
5
 
 
6
  http://www.apache.org/licenses/LICENSE-2.0
 
7
 
 
8
Unless required by applicable law or agreed to in writing, software
 
9
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 
10
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 
11
License for the specific language governing permissions and limitations under
 
12
the License.
 
13
-->
 
14
 
 
15
<div class="pagination pagination-centered">
 
16
  <ul>
 
17
    <% if (page > 1) { %>
 
18
    <li> <a href="<%- urlFun(page-1) %>">&laquo;</a></li>
 
19
    <% } else { %>
 
20
      <li class="disabled"> <a href="<%- urlFun(page) %>">&laquo;</a></li>
 
21
    <% } %>
 
22
    <% _.each(_.range(1, totalPages+1), function(i) { %>
 
23
      <li <% if (page == i) { %>class="active"<% } %>> <a href="<%- urlFun(i) %>"><%- i %></a></li>
 
24
    <% }) %>
 
25
    <% if (page < totalPages) { %>
 
26
      <li><a href="<%- urlFun(page+1) %>">&raquo;</a></li>
 
27
    <% } else { %>
 
28
      <li class="disabled"> <a href="<%- urlFun(page) %>">&raquo;</a></li>
 
29
    <% } %>
 
30
  </ul>
 
31
</div>