diff options
author | Christopher Lenz <cmlenz@apache.org> | 2008-04-10 10:27:56 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2008-04-10 10:27:56 +0000 |
commit | d7e0687f4ecd82af8f2cf25d6a0ba676ee051e23 (patch) | |
tree | e3fbbb221d880468b2de1acab30183409b9e57e9 /share/www/browse | |
parent | a95cb866043f25f09b40ec95140f16eb69d0adb1 (diff) |
Add DB compaction button to Futon. Closes COUCHDB-38. Thanks to Jim Lindley for the patch!
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@646734 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/browse')
-rw-r--r-- | share/www/browse/_compact_database.html | 28 | ||||
-rw-r--r-- | share/www/browse/database.html | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/share/www/browse/_compact_database.html b/share/www/browse/_compact_database.html new file mode 100644 index 00000000..efa5d345 --- /dev/null +++ b/share/www/browse/_compact_database.html @@ -0,0 +1,28 @@ +<!-- + +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. See the License for the +specific language governing permissions and limitations under the License. + +--> +<form action="" method="post"> + <h2>Compact Database</h2> + <fieldset> + <p class="help"> + Compacting a database removes deleted documents and previous revisions. + It is an <strong>irreversible operation</strong> and my take + a while to complete for large databases. + </p> + </fieldset> + <div class="buttons"> + <button type="submit">Compact</button> + <button type="button" class="cancel">Cancel</button> + </div> +</form> diff --git a/share/www/browse/database.html b/share/www/browse/database.html index 33041bd7..e52c3b8a 100644 --- a/share/www/browse/database.html +++ b/share/www/browse/database.html @@ -78,6 +78,7 @@ specific language governing permissions and limitations under the License. $.cookies.set(page.dbName + ".perpage", this.value); }); $("#toolbar button.add").click(page.addDocument); + $("#toolbar button.compact").click(page.compactDatabase); $("#toolbar button.delete").click(page.deleteDatabase); }); </script> @@ -98,6 +99,7 @@ specific language governing permissions and limitations under the License. </div> <ul id="toolbar"> <li><button class="add">Create Document …</button></li> + <li><button class="compact">Compact Database</button></li> <li><button class="delete">Delete Database</button></li> </ul> |