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 | |
parent | f3119b5b3a2ab1b52f4c5749985089b7bc985306 (diff) |
Adding number of comments for user search.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/components/search.tsx | 8 | ||||
-rw-r--r-- | ui/src/components/user-listing.tsx | 2 |
2 files changed, 9 insertions, 1 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> ))} diff --git a/ui/src/components/user-listing.tsx b/ui/src/components/user-listing.tsx index 76196d47..58475d3e 100644 --- a/ui/src/components/user-listing.tsx +++ b/ui/src/components/user-listing.tsx @@ -52,7 +52,7 @@ export class UserListing extends Component<UserListingProps, any> { class="rounded-circle mr-2" /> )} - <span>{`/u/${name_}`}</span> + <span>{name_}</span> </Link> {isCakeDay(user.published) && <CakeDay creatorName={name_} />} |