summaryrefslogtreecommitdiff
path: root/share/www/database.html
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2009-10-30 23:08:42 +0000
committerPaul Joseph Davis <davisp@apache.org>2009-10-30 23:08:42 +0000
commit78088d9faa123bcae39ed16dd0e15f8d41b34bd3 (patch)
treec3dcbdb77dda6fbd166c602d0323ab196176f8a2 /share/www/database.html
parent97dc2ded847aec78ec2ac1f60eec583ae7111f6c (diff)
Closes COUCHDB-547 - Adding a View Compaction Button
Thanks to Joshua Bronson for the patch. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@831485 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/database.html')
-rw-r--r--share/www/database.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/www/database.html b/share/www/database.html
index cfba8f64..0f8c2c22 100644
--- a/share/www/database.html
+++ b/share/www/database.html
@@ -37,7 +37,7 @@ specific language governing permissions and limitations under the License.
$(function() {
if (page.redirecting) return;
- $("h1 strong").text(page.db.name);
+ $("h1 strong").html('<a href="?' + page.db.name + '">' + page.db.name + '</a>');
var viewPath = page.viewName || "_all_docs";
if (viewPath != "_temp_view" && viewPath != "_design_docs") {
$("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) +
@@ -100,6 +100,7 @@ specific language governing permissions and limitations under the License.
$("#toolbar button.add").click(page.newDocument);
$("#toolbar button.compact").click(page.compactDatabase);
$("#toolbar button.delete").click(page.deleteDatabase);
+ $("#toolbar button.compactview").click(page.compactView);
$('#jumpto input').addPlaceholder("Document ID").suggest(function(text, callback) {
page.db.allDocs({
@@ -146,6 +147,7 @@ specific language governing permissions and limitations under the License.
<li><button class="add">New Document</button></li>
<li><button class="compact">Compact Database…</button></li>
<li><button class="delete">Delete Database…</button></li>
+ <li><button class="compactview" style="display: none">Compact View…</button></li>
</ul>
<div id="viewcode" class="collapsed" style="display: none">