diff options
author | Dessalines <tyhou13@gmx.com> | 2020-07-11 19:25:17 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-07-11 19:25:17 -0400 |
commit | f3dbfcd37b84f58b42dfdbeec14334ba5af8e379 (patch) | |
tree | 43e7de19fed1cb92fd0984ca4021e1ee638655d8 /ui/src/components/search.tsx | |
parent | f3119b5b3a2ab1b52f4c5749985089b7bc985306 (diff) |
Adding number of comments for user search.
Diffstat (limited to 'ui/src/components/search.tsx')
-rw-r--r-- | ui/src/components/search.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/src/components/search.tsx b/ui/src/components/search.tsx index c4cb9745..b2e55497 100644 --- a/ui/src/components/search.tsx +++ b/ui/src/components/search.tsx @@ -275,6 +275,7 @@ export class Search extends Component<any, SearchState> { {i.type_ == 'users' && ( <div> <span> + @ <UserListing user={{ name: (i.data as UserView).name, @@ -282,6 +283,9 @@ export class Search extends Component<any, SearchState> { }} /> </span> + <span>{` - ${i18n.t('number_of_comments', { + count: (i.data as UserView).number_of_comments, + })}`}</span> </div> )} </div> @@ -356,6 +360,7 @@ export class Search extends Component<any, SearchState> { <div class="row"> <div class="col-12"> <span> + @ <UserListing user={{ name: user.name, @@ -363,6 +368,9 @@ export class Search extends Component<any, SearchState> { }} /> </span> + <span>{` - ${i18n.t('number_of_comments', { + count: user.number_of_comments, + })}`}</span> </div> </div> ))} |