diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-09-24 12:01:22 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-09-24 12:01:22 -0400 |
commit | ff03c53c46a79f3d807da91c2fde07fdde041d14 (patch) | |
tree | 58c1e55b0bf1c099ba10e093d0826174f05c8746 /web/react | |
parent | 819ef528b858f81f239406ed3a05f9170eee2c93 (diff) | |
parent | 44e00a4f9cfcb3f0ac8f29abad60de93178a48e0 (diff) | |
download | chat-ff03c53c46a79f3d807da91c2fde07fdde041d14.tar.gz chat-ff03c53c46a79f3d807da91c2fde07fdde041d14.tar.bz2 chat-ff03c53c46a79f3d807da91c2fde07fdde041d14.zip |
Merge pull request #781 from hmhealey/plt332
PLT-332 Improved date tooltips
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/post_info.jsx | 2 | ||||
-rw-r--r-- | web/react/components/rhs_comment.jsx | 5 | ||||
-rw-r--r-- | web/react/components/rhs_root_post.jsx | 5 |
3 files changed, 3 insertions, 9 deletions
diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx index d2a0a4035..c38edf6a2 100644 --- a/web/react/components/post_info.jsx +++ b/web/react/components/post_info.jsx @@ -153,7 +153,7 @@ export default class PostInfo extends React.Component { <li className='post-header-col'> <time className='post-profile-time' - title={new Date(post.create_at).toString()} + title={`${utils.displayDate(post.create_at)} at ${utils.displayTime(post.create_at)}`} > {utils.displayDateTime(post.create_at)} </time> diff --git a/web/react/components/rhs_comment.jsx b/web/react/components/rhs_comment.jsx index dc49fbdb1..5b4694eb1 100644 --- a/web/react/components/rhs_comment.jsx +++ b/web/react/components/rhs_comment.jsx @@ -185,10 +185,7 @@ export default class RhsComment extends React.Component { <strong><UserProfile userId={post.user_id} /></strong> </li> <li className='post-header-col'> - <time - className='post-profile-time' - title={new Date(post.create_at).toString()} - > + <time className='post-profile-time'> {Utils.displayCommentDateTime(post.create_at)} </time> </li> diff --git a/web/react/components/rhs_root_post.jsx b/web/react/components/rhs_root_post.jsx index caa8c5c1e..13ab0c982 100644 --- a/web/react/components/rhs_root_post.jsx +++ b/web/react/components/rhs_root_post.jsx @@ -132,10 +132,7 @@ export default class RhsRootPost extends React.Component { <ul className='post-header'> <li className='post-header-col'><strong><UserProfile userId={post.user_id} /></strong></li> <li className='post-header-col'> - <time - className='post-profile-time' - title={new Date(post.create_at).toString()} - > + <time className='post-profile-time'> {utils.displayCommentDateTime(post.create_at)} </time> </li> |