From e4023635761bd7e86089ee6a54133f5be40f9ae3 Mon Sep 17 00:00:00 2001 From: Connor Hudson Date: Tue, 31 May 2016 16:37:42 -0400 Subject: [PATCH] initial pass --- src/components/navigation/www/navigation.jsx | 172 ++++++++++--------- src/redux/session.js | 1 + src/views/splash/splash.jsx | 50 +++--- 3 files changed, 114 insertions(+), 109 deletions(-) diff --git a/src/components/navigation/www/navigation.jsx b/src/components/navigation/www/navigation.jsx index 654b242a1..90d27a911 100644 --- a/src/components/navigation/www/navigation.jsx +++ b/src/components/navigation/www/navigation.jsx @@ -225,99 +225,101 @@ var Navigation = React.createClass({ - {this.props.session.user ? [ -
  • - + {this.props.session.loaded ? ( + this.props.session.user ? [ +
  • + - {this.state.unreadMessageCount} - - -
  • , -
  • - + {this.state.unreadMessageCount} + + +
  • , +
  • + - - -
  • , -
  • - - - {this.props.session.user.username} - - -
  • - - - -
  • -
  • - - - -
  • - {this.props.session.permissions.educator ? [ + + + , +
  • + + + {this.props.session.user.username} + +
  • - - + +
  • - ] : []} - {this.props.session.permissions.student ? [
  • - - + +
  • - ] : []} -
  • - - - -
  • -
  • - - - -
  • - - - ] : [ -
  • - - - -
  • , - , -
  • - - - - - - -
  • - ]} + {this.props.session.permissions.educator ? [ +
  • + + + +
  • + ] : []} + {this.props.session.permissions.student ? [ +
  • + + + +
  • + ] : []} +
  • + + + +
  • +
  • + + + +
  • + + + ] : [ +
  • + + + +
  • , + , +
  • + + + + + + +
  • + ]) : [ + ]} 4) { - + rows.push( 4) { - + rows.push( 0) { - + rows.push( 0) { - + rows.push( - + ); @@ -280,7 +280,7 @@ var Splash = injectIntl(React.createClass({ id: 'splash.projectsLovedByScratchersFollowing', defaultMessage: 'Projects Loved by Scratchers I\'m Following'})} key="custom_projects_loved_by_following"> - + ); @@ -288,14 +288,14 @@ var Splash = injectIntl(React.createClass({ if (this.state.featuredCustom.custom_projects_in_studios_following && this.state.featuredCustom.custom_projects_in_studios_following.length > 0) { - + rows.push( - + ); @@ -307,7 +307,7 @@ var Splash = injectIntl(React.createClass({ id: 'splash.communityRemixing', defaultMessage: 'What the Community is Remixing' })} key="community_most_remixed_projects"> - + , - + ); @@ -373,20 +373,22 @@ var Splash = injectIntl(React.createClass({ ] : []}
    - {this.props.session.user ? [ -
    - {this.shouldShowWelcome() ? [ - - ] : [ - - ]} - -
    - ] : [ - - ]} + {this.props.session.user ? ( + this.props.session.user ? [ +
    + {this.shouldShowWelcome() ? [ + + ] : [ + + ]} + +
    + ] : [ + + ]) : () + } {featured}