summaryrefslogtreecommitdiff
path: root/share/www/database.html
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-01-13 10:18:15 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-01-13 10:18:15 +0000
commita4b645ec236b260e7dca50a5172c64afe2f07d56 (patch)
tree0f223b132c52290d5dc7221b62988b75be2e66c6 /share/www/database.html
parente682127ca50b7a1e9a0643412a9e89cfabd5b7a6 (diff)
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
Diffstat (limited to 'share/www/database.html')
-rw-r--r--share/www/database.html7
1 files changed, 7 insertions, 0 deletions
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.
<h1>
<a href="index.html">Overview</a>
<strong>?</strong>
+ <a class="raw" title="Raw view"></a>
</h1>
<div id="content">
<div id="switch">