mirror of https://github.com/perkeep/perkeep.git
Add link to and from the new detail page.
Change-Id: I2eb16295c5fa8106854a16d3b060c3f87c5ed1ae
This commit is contained in:
parent
e5d41793a0
commit
7fcd2e1807
|
@ -23,6 +23,7 @@ body {
|
|||
background: white;
|
||||
bottom: 0;
|
||||
overflow: auto;
|
||||
padding: 15px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
|
|
|
@ -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)))));
|
||||
},
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue