diff options
author | Renard | 2019-09-13 11:44:38 -0300 |
---|---|---|
committer | Renard | 2019-09-13 11:44:38 -0300 |
commit | 5565777306d2a070fb3c222734b0a2e9c8241ec8 (patch) | |
tree | d689eea6ade0deefe82a643978b8d9fd76936456 /src/Post.js | |
parent | 0f812e53725b6af8e36b38411f8d6934dce3cd43 (diff) | |
download | bai-client-5565777306d2a070fb3c222734b0a2e9c8241ec8.tar.gz bai-client-5565777306d2a070fb3c222734b0a2e9c8241ec8.tar.xz bai-client-5565777306d2a070fb3c222734b0a2e9c8241ec8.zip |
Tripcode, IDs y sage
Diffstat (limited to 'src/Post.js')
-rw-r--r-- | src/Post.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Post.js b/src/Post.js index a09cccf..4923b81 100644 --- a/src/Post.js +++ b/src/Post.js @@ -5,13 +5,18 @@ import "moment/locale/es"; const Post = ({ index, post, locked, dir }) => { const filesize = require('filesize'); + + let user_id = post.timestamp_formatted.split(" ID:")[1]; + return ( <Segment.Group> <Header as="h5" attached> - #{index + 1} {post.name} + #{index + 1} <span className={post.email === "sage" ? "username sage" : "username"}>{post.name}</span><span className="tripcode">{post.tripcode}</span> + <Header.Subheader className="inlineSubHeader"> <Moment fromNow unix locale="es" date={post.timestamp} /> </Header.Subheader> + <Label size="mini">{user_id}</Label> </Header> <Segment.Group horizontal> @@ -22,7 +27,6 @@ const Post = ({ index, post, locked, dir }) => { </Segment> : null} <Segment> - <div className={`postMessage ${dir === "zonavip" ? "vipFont" : null}`} dangerouslySetInnerHTML={{ __html: post.message }} /> {locked ? null : (<Label attached='bottom right'> |