about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-06 15:34:11 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-06 15:34:11 +0200
commit8bdbe99d69dbce771eb87e15719b00019285d19c (patch)
tree37309bc907d93a6f9d97822d950e3e0f3d4ea2d3 /app/assets/javascripts/components/features
parent68402228f3d9bc887d460b4e4a6fbd7c16fc29c2 (diff)
Fix #71 - Add logout link to UI
Diffstat (limited to 'app/assets/javascripts/components/features')
-rw-r--r--app/assets/javascripts/components/features/ui/components/navigation_bar.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/components/features/ui/components/navigation_bar.jsx b/app/assets/javascripts/components/features/ui/components/navigation_bar.jsx
index d53d254c1..9d9481d3e 100644
--- a/app/assets/javascripts/components/features/ui/components/navigation_bar.jsx
+++ b/app/assets/javascripts/components/features/ui/components/navigation_bar.jsx
@@ -17,9 +17,9 @@ const NavigationBar = React.createClass({
       <div style={{ padding: '10px', display: 'flex', cursor: 'default' }}>
         <Link to={`/accounts/${this.props.account.get('id')}`} style={{ textDecoration: 'none' }}><Avatar src={this.props.account.get('avatar')} size={40} /></Link>
 
-        <div style={{ flex: '1 1 auto', marginLeft: '8px' }}>
-          <strong style={{ fontWeight: '500', display: 'block' }}>{this.props.account.get('acct')}</strong>
-          <a href='/settings' style={{ color: '#9baec8', textDecoration: 'none' }}>Settings <i className='fa fa fa-cog' /></a>
+        <div style={{ flex: '1 1 auto', marginLeft: '8px', color: '#9baec8' }}>
+          <strong style={{ fontWeight: '500', display: 'block', color: '#fff' }}>{this.props.account.get('acct')}</strong>
+          <a href='/settings' style={{ color: 'inherit', textDecoration: 'none' }}>Settings</a> · <a href='/auth/sign_out' data-method='delete' style={{ color: 'inherit', textDecoration: 'none' }}>Logout</a>
         </div>
       </div>
     );