diff --git a/server/camlistored/ui/detail.css b/server/camlistored/ui/detail.css index e3cfdc6ba..7e21ce572 100644 --- a/server/camlistored/ui/detail.css +++ b/server/camlistored/ui/detail.css @@ -23,6 +23,7 @@ body { background: white; bottom: 0; overflow: auto; + padding: 15px; position: absolute; right: 0; top: 0; diff --git a/server/camlistored/ui/detail.js b/server/camlistored/ui/detail.js index b8765c5c4..0d851e9d5 100644 --- a/server/camlistored/ui/detail.js +++ b/server/camlistored/ui/detail.js @@ -59,6 +59,7 @@ var DetailView = React.createClass({ this.getImg_(), this.getPiggy_(), React.DOM.div({className:'detail-view-sidebar', key:'sidebar', style: this.getSidebarStyle_()}, + React.DOM.a({key:'sidebar-link', href:'../ui/?p=' + this.props.blobref}, 'old and busted'), React.DOM.pre({key:'sidebar-pre'}, JSON.stringify(this.state.description || '', null, 2))))); }, diff --git a/server/camlistored/ui/permanode.html b/server/camlistored/ui/permanode.html index de4563c65..cd061570e 100644 --- a/server/camlistored/ui/permanode.html +++ b/server/camlistored/ui/permanode.html @@ -25,6 +25,7 @@ Permalink: +

diff --git a/server/camlistored/ui/permanode.js b/server/camlistored/ui/permanode.js index 43b272e07..53b3a5803 100644 --- a/server/camlistored/ui/permanode.js +++ b/server/camlistored/ui/permanode.js @@ -101,6 +101,7 @@ camlistore.PermanodePage.prototype.enterDocument = function() { if (permanode) { goog.dom.getElement('permanode').innerHTML = "" + permanode + ""; goog.dom.getElement('permanodeBlob').innerHTML = "view blob"; + goog.dom.getElement('detailLink').innerHTML = "new hotness" } // TODO(mpl): use this.eh_ instead?