diff --git a/client/components/Nav.jsx b/client/components/Nav.jsx
index 3886ccc8..4571c93d 100644
--- a/client/components/Nav.jsx
+++ b/client/components/Nav.jsx
@@ -230,16 +230,22 @@ class Nav extends React.PureComponent {
return (
-
-
-
- -
-
-
- Back to Editor
-
+
+ {
+ this.props.ownerName && (
+ -
+
+
+
+ Collections
+
+
+
+ )
+ }
);
}
@@ -715,6 +721,7 @@ Nav.propTypes = {
username: PropTypes.string,
id: PropTypes.string
}).isRequired,
+ ownerName: PropTypes.string,
project: PropTypes.shape({
id: PropTypes.string,
owner: PropTypes.shape({
@@ -752,7 +759,8 @@ Nav.defaultProps = {
},
cmController: {},
layout: 'project',
- warnIfUnsavedChanges: undefined
+ warnIfUnsavedChanges: undefined,
+ ownerName: null,
};
function mapStateToProps(state) {
diff --git a/client/modules/User/pages/CollectionView.jsx b/client/modules/User/pages/CollectionView.jsx
index c402539c..31960809 100644
--- a/client/modules/User/pages/CollectionView.jsx
+++ b/client/modules/User/pages/CollectionView.jsx
@@ -56,7 +56,7 @@ class CollectionView extends React.Component {
render() {
return (
-
+
{this.renderContent()}