summaryrefslogtreecommitdiffstats
path: root/ui/src/components/post-listing.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-03-04 13:52:11 -0500
committerDessalines <tyhou13@gmx.com>2020-03-04 13:52:11 -0500
commit2c2918cc9e5e35c0b108b5daeeb2ccfbdee33e0c (patch)
treec25021fca1171b34794ea7652d5b26d0c8511849 /ui/src/components/post-listing.tsx
parentfb355188487bcd1e4185b8a034f95560cc28946d (diff)
Moving comment voting to action bar. Adding plurals.
Diffstat (limited to 'ui/src/components/post-listing.tsx')
-rw-r--r--ui/src/components/post-listing.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx
index b6cb3f51..e170c711 100644
--- a/ui/src/components/post-listing.tsx
+++ b/ui/src/components/post-listing.tsx
@@ -266,7 +266,12 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
<use xlinkHref="#icon-arrow-up"></use>
</svg>
</button>
- <div class={`unselectable font-weight-bold text-muted px-1`}>
+ <div
+ class={`unselectable pointer font-weight-bold text-muted px-1`}
+ data-tippy-content={i18n.t('number_of_points', {
+ count: this.state.score,
+ })}
+ >
{this.state.score}
</div>
{WebSocketService.Instance.site.enable_downvotes && (