about summary refs log tree commit diff
path: root/app/assets
diff options
context:
space:
mode:
authorAsh Furrow <ash@ashfurrow.com>2017-04-25 04:45:27 +0200
committerEugen <eugen@zeonfederated.com>2017-04-25 04:45:27 +0200
commitacc691851da6c8171eaf2429f4644d79cb10e62f (patch)
tree20d2708dd0a2909c3cdaa86ed6e19fedbe11ce03 /app/assets
parentd2159deaf272de265ba11f16a92d60ea61def19f (diff)
Username above toot box UI changes (#2418)
* Makes username above toot box into a link.

* Prepends username above toot box with an @.
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/components/features/compose/components/navigation_bar.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/features/compose/components/navigation_bar.jsx b/app/assets/javascripts/components/features/compose/components/navigation_bar.jsx
index f3329133d..aae0592c6 100644
--- a/app/assets/javascripts/components/features/compose/components/navigation_bar.jsx
+++ b/app/assets/javascripts/components/features/compose/components/navigation_bar.jsx
@@ -14,7 +14,9 @@ class NavigationBar extends React.PureComponent {
         <Permalink href={this.props.account.get('url')} to={`/accounts/${this.props.account.get('id')}`}><Avatar src={this.props.account.get('avatar')} animate size={40} /></Permalink>
 
         <div className='navigation-bar__profile'>
-          <strong className='navigation-bar__profile-account'>{this.props.account.get('acct')}</strong>
+          <Permalink href={this.props.account.get('url')} to={`/accounts/${this.props.account.get('id')}`}>
+            <strong className='navigation-bar__profile-account'>@{this.props.account.get('acct')}</strong>
+          </Permalink>
           <a href='/settings/profile' className='navigation-bar__profile-edit'><FormattedMessage id='navigation_bar.edit_profile' defaultMessage='Edit profile' /></a>
         </div>
       </div>