summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-01-11 12:31:05 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-01-11 12:31:05 +0000
commit27b2a0becb1395bdc9159483483712e98d28fcf8 (patch)
treea4b7813d988dda6aca46b92d8b12ee2230a7be28 /share
parentc65e8c42391e6dd409aeae1657366a4eb8983846 (diff)
Futon docids are links to the raw JSON doc
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@733462 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/document.html3
-rw-r--r--share/www/style/layout.css1
2 files changed, 3 insertions, 1 deletions
diff --git a/share/www/document.html b/share/www/document.html
index f12adf68..8308d9d9 100644
--- a/share/www/document.html
+++ b/share/www/document.html
@@ -42,7 +42,8 @@ specific language governing permissions and limitations under the License.
$(function() {
$("h1 a.dbname").text(page.dbName)
.attr("href", "database.html?" + encodeURIComponent(page.db.name));
- $("h1 strong").text(page.docId);
+ $("h1 strong").html('<a href="/'+encodeURIComponent(page.db.name)
+ +'/'+encodeURIComponent(page.docId)+'>'+page.docId+'</a>');
page.updateFieldListing();
$("#tabs li.tabular a").click(function() {
diff --git a/share/www/style/layout.css b/share/www/style/layout.css
index 6e649463..a3c771e2 100644
--- a/share/www/style/layout.css
+++ b/share/www/style/layout.css
@@ -36,6 +36,7 @@ h1 :link, h1 :visited {
text-shadow: #333 2px 2px 1px;
}
h1 strong { color: #fff; font-weight: normal; padding-right: 25px; }
+h1 strong a {color:#fff !important;background:none !important;}
body.loading h1 strong {
background: url(../image/spinner.gif) right center no-repeat;
}