diff options
author | Christopher Lenz <cmlenz@apache.org> | 2008-08-29 15:25:19 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2008-08-29 15:25:19 +0000 |
commit | 0cfe2b724df9173a25514b1617da50a23e8e6475 (patch) | |
tree | a9913e566902602c9622a9901885cb623868b5e8 /share/www/browse | |
parent | fbc8c2adc71267824c5ad0b72200a018fb2044e5 (diff) |
Provide pagination for the database index page in Futon.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690297 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/browse')
-rw-r--r-- | share/www/browse/index.html | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/share/www/browse/index.html b/share/www/browse/index.html index c2d1ae63..93f5a21a 100644 --- a/share/www/browse/index.html +++ b/share/www/browse/index.html @@ -28,7 +28,15 @@ specific language governing permissions and limitations under the License. <script> var page = new CouchIndexPage(); $(document).ready(function() { + var dbsPerPage = $.cookies.get("perpage"); + if (dbsPerPage) $("#perpage").val(dbsPerPage); + $("#perpage").change(function() { + page.updateDatabaseListing(); + $.cookies.set("perpage", this.value); + }); + page.updateDatabaseListing(); + $("#toolbar button.add").click(function() { page.addDatabase(); }); @@ -57,7 +65,19 @@ specific language governing permissions and limitations under the License. </tbody> <tbody class="footer"> <tr> - <td colspan="4"></td> + <td colspan="4"> + <div id="paging"> + <a class="prev">← Previous Page</a> | + <label>Rows per page: <select id="perpage"> + <option selected>10</option> + <option>25</option> + <option>50</option> + <option>100</option> + </select></label> | + <a class="next">Next Page →</a> + </div> + <span></span> + </td> </tr> </tbody> </table> |