diff options
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r-- | vnext/src/index.js | 65 |
1 files changed, 64 insertions, 1 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js index 3a5fcbfe..a7e439a4 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -127,7 +127,70 @@ class App extends React.Component { <Route exact path="/:user/:mid" render={(props) => <Thread visitor={this.state.visitor} {...props} />} /> </Switch> </section> - <aside id="column"></aside> + <aside id="column"> + <ul> + { + this.state.visitor.uid > 0 && + <React.Fragment> + <li> + <Link to="/home"> + <Icon name="ei-clock" size="s" />My feed + </Link> + </li> + <li> + <Link to="/pm/inbox"> + <Icon name="ei-envelope" size="s" />PM + </Link> + </li> + <li> + <Link to="/?show=discuss"> + <Icon name="ei-comment" size="s" />Discussions + </Link> + </li> + <li> + <Link to="/{{ user.name }}/?show=recomm" rel="nofollow"> + <Icon name="ei-heart" size="s" />Recommendations + </Link> + </li> + <li> + <Link to="/{{ user.name }}/?show=photos" rel="nofollow"> + <Icon name="ei-camera" size="s" />Photos + </Link> + </li> + <li> + <Link to="/settings" rel="nofollow"> + <Icon name="ei-gear" size="s" />Settings + </Link> + </li> + </React.Fragment> + } + </ul> + <hr /> + <form action="/{{ user.name }}/"> + <p><input type="text" name="search" className="inp" placeholder="Search..." /></p> + </form> + <hr /> + <div id="ustats"> + <ul> + <li><a href="/{{ user.name }}/friends">I read: {this.state.visitor.statsIRead}</a></li> + <li><a href="/{{ user.name }}/readers">My readers: {this.state.visitor.statsMyReaders}</a></li> + { + this.state.visitor.statsMyBL && + <li><a href="/{{ user.name }}/bl">My blacklist: {this.state.visitor.statsMyBL}</a></li> + } + <li>Messages: {this.state.visitor.statsMessages}</li> + <li>Comments: {this.state.visitor.statsReplies}</li> + </ul> + { + this.state.visitor.iread && + <div className="iread"> + { + this.state.visitor.iread.map(u => <Avatar user={u} /> ) + } + </div> + } + </div> + </aside> </div> <Footer /> </React.Fragment> |