From a4b645ec236b260e7dca50a5172c64afe2f07d56 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Tue, 13 Jan 2009 10:18:15 +0000 Subject: As a follow-up to r733462, instead of making the last part of the breadcrumb a link to the raw JSON doc, add a little arrow thingy at the right side of the navigation bar for the same purpose, and also make it work for views from the database page. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@734091 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/database.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'share/www/database.html') diff --git a/share/www/database.html b/share/www/database.html index c540972f..8f0b6d5d 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -38,6 +38,12 @@ specific language governing permissions and limitations under the License. $(function() { $("h1 strong").text(page.db.name); + var viewPath = (page.viewName || "_all_docs").replace(/^_design\//, "_view/"); + if (viewPath != "_slow_view" && viewPath != "_design_docs") { + $("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) + + "/" + viewPath); + } + $("#viewcode span").click(function() { $("#viewcode").toggleClass("collapsed"); }); @@ -106,6 +112,7 @@ specific language governing permissions and limitations under the License.

Overview ? +

-- cgit v1.2.3