This commit is contained in:
Jori Lallo
2016-06-05 23:57:58 -07:00
parent 95f69d9feb
commit ccab580aef
5 changed files with 32 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ class DocumentScene extends React.Component {
render() {
const doc = store.document;
let title;
let titleText;
let actions;
if (doc) {
actions = (
@@ -58,12 +59,19 @@ class DocumentScene extends React.Component {
</DropdownMenu>
</div>
);
title = `${doc.atlas.name} - ${doc.title}`;
title = (
<span>
<Link to={ `/atlas/${doc.atlas.id}` }>{doc.atlas.name}</Link>
{ ` / ${doc.title}` }
</span>
);
titleText = `${doc.atlas.name} - ${doc.title}`;
}
return (
<Layout
title={ title }
titleText={ titleText }
actions={ actions }
>
<CenteredContent>