From: Dessalines Date: Tue, 2 Feb 2021 17:12:16 +0000 (-0500) Subject: Adding tippy to active users badges. Fixes #150 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/hacktivis.me/%7Bthis.imageSrc%7D?a=commitdiff_plain;h=6a75db688759cfda574bf7e9b6335ff3f3f2230e;p=lemmy-ui.git Adding tippy to active users badges. Fixes #150 --- diff --git a/src/shared/components/main.tsx b/src/shared/components/main.tsx index b83d671..a99aa5e 100644 --- a/src/shared/components/main.tsx +++ b/src/shared/components/main.tsx @@ -426,25 +426,47 @@ export class Main extends Component {
  • {i18n.t('number_online', { count: this.state.siteRes.online })}
  • -
  • +
  • {i18n.t('number_of_users', { count: counts.users_active_day, })}{' '} / {i18n.t('day')}
  • -
  • +
  • {i18n.t('number_of_users', { count: counts.users_active_week, })}{' '} / {i18n.t('week')}
  • -
  • +
  • {i18n.t('number_of_users', { count: counts.users_active_month, })}{' '} / {i18n.t('month')}
  • -
  • +
  • {i18n.t('number_of_users', { count: counts.users_active_half_year, })}{' '} diff --git a/src/shared/components/sidebar.tsx b/src/shared/components/sidebar.tsx index 324f3ea..03675dd 100644 --- a/src/shared/components/sidebar.tsx +++ b/src/shared/components/sidebar.tsx @@ -149,25 +149,47 @@ export class Sidebar extends Component {
  • {i18n.t('number_online', { count: this.props.online })}
  • -
  • +
  • {i18n.t('number_of_users', { count: counts.users_active_day, })}{' '} / {i18n.t('day')}
  • -
  • +
  • {i18n.t('number_of_users', { count: counts.users_active_week, })}{' '} / {i18n.t('week')}
  • -
  • +
  • {i18n.t('number_of_users', { count: counts.users_active_month, })}{' '} / {i18n.t('month')}
  • -
  • +
  • {i18n.t('number_of_users', { count: counts.users_active_half_year, })}{' '}