diff options
Diffstat (limited to 'share/www/database.html')
-rw-r--r-- | share/www/database.html | 7 |
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"> |