diff options
author | Vitaly Takmazov | 2018-06-19 19:03:34 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:52 +0300 |
commit | 0fbe642819172681781ae49b50c6ef02e24642c6 (patch) | |
tree | e613c2fb6ab695ffc3b19411dfe7cf2d9a73b285 /vnext | |
parent | d9c2b726f86616b7e9f6f1d8b99005530054b6dc (diff) |
user column
Diffstat (limited to 'vnext')
-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> |