diff --git a/src/components/Layout/Layout.js b/src/components/Layout/Layout.js
index 0b4cae209..db1a4a55d 100644
--- a/src/components/Layout/Layout.js
+++ b/src/components/Layout/Layout.js
@@ -1,5 +1,6 @@
import React from 'react';
import Link from 'react-router/lib/Link';
+import Helmet from 'react-helmet';
import { observe } from 'mobx';
import store from 'stores/UserStore';
@@ -17,6 +18,7 @@ class Layout extends React.Component {
static propTypes = {
actions: React.PropTypes.node,
title: React.PropTypes.node,
+ titleText: React.PropTypes.node,
fixed: React.PropTypes.bool,
loading: React.PropTypes.bool,
}
@@ -24,6 +26,14 @@ class Layout extends React.Component {
render() {
return (
+
+
{ this.props.loading ? (
) : null }
diff --git a/src/components/Layout/Layout.scss b/src/components/Layout/Layout.scss
index 355fd275b..c12fdb784 100644
--- a/src/components/Layout/Layout.scss
+++ b/src/components/Layout/Layout.scss
@@ -30,6 +30,12 @@
}
}
+.title {
+ a {
+ color: $textColor;
+ }
+}
+
.teamName a {
font-family: 'Atlas Grotesk';
font-weight: bold;
diff --git a/src/scenes/Atlas/Atlas.js b/src/scenes/Atlas/Atlas.js
index 3fa2ea3f3..521426139 100644
--- a/src/scenes/Atlas/Atlas.js
+++ b/src/scenes/Atlas/Atlas.js
@@ -24,18 +24,21 @@ class Atlas extends React.Component {
let actions;
let title;
+ let titleText;
if (atlas) {
actions =
New document
;
title =
{ atlas.name };
+ titleText = atlas.name;
}
return (
{ store.isFetching ? (
diff --git a/src/scenes/DocumentEdit/DocumentEdit.js b/src/scenes/DocumentEdit/DocumentEdit.js
index bfcc30991..fd011a507 100644
--- a/src/scenes/DocumentEdit/DocumentEdit.js
+++ b/src/scenes/DocumentEdit/DocumentEdit.js
@@ -78,6 +78,9 @@ class DocumentEdit extends Component {
{ store.title }
);
+
+ let titleText = store.title;
+
const actions = (
@@ -101,6 +104,7 @@ class DocumentEdit extends Component {
diff --git a/src/scenes/DocumentScene/DocumentScene.js b/src/scenes/DocumentScene/DocumentScene.js
index 3f07c5496..b9bf84956 100644
--- a/src/scenes/DocumentScene/DocumentScene.js
+++ b/src/scenes/DocumentScene/DocumentScene.js
@@ -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 {
);
- title = `${doc.atlas.name} - ${doc.title}`;
+ title = (
+
+ {doc.atlas.name}
+ { ` / ${doc.title}` }
+
+ );
+ titleText = `${doc.atlas.name} - ${doc.title}`;
}
return (