Add link to and from the new detail page.

Change-Id: I2eb16295c5fa8106854a16d3b060c3f87c5ed1ae
This commit is contained in:
Aaron Boodman 2013-12-31 15:45:56 -08:00
parent e5d41793a0
commit 7fcd2e1807
4 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ body {
background: white;
bottom: 0;
overflow: auto;
padding: 15px;
position: absolute;
right: 0;
top: 0;

View File

@ -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)))));
},

View File

@ -25,6 +25,7 @@
Permalink:
<span id="permanode"></span>
<span id="permanodeBlob" class="cam-permanode-nav"></span>
<span id="detailLink" class="cam-permanode-nav"></span>
</p>
<form id="formTitle">

View File

@ -101,6 +101,7 @@ camlistore.PermanodePage.prototype.enterDocument = function() {
if (permanode) {
goog.dom.getElement('permanode').innerHTML = "<a href='./?p=" + permanode + "'>" + permanode + "</a>";
goog.dom.getElement('permanodeBlob').innerHTML = "<a href='./?b=" + permanode + "'>view blob</a>";
goog.dom.getElement('detailLink').innerHTML = "<a href='./detail.html?" + permanode + "'>new hotness</a>"
}
// TODO(mpl): use this.eh_ instead?