mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 20:31:13 +00:00
Adding tippy to active users badges. Fixes #150
This commit is contained in:
parent
e67ee746a2
commit
6a75db6887
2 changed files with 52 additions and 8 deletions
|
@ -426,25 +426,47 @@ export class Main extends Component<any, MainState> {
|
|||
<li className="list-inline-item badge badge-secondary">
|
||||
{i18n.t('number_online', { count: this.state.siteRes.online })}
|
||||
</li>
|
||||
<li className="list-inline-item badge badge-secondary">
|
||||
<li
|
||||
className="list-inline-item badge badge-secondary pointer"
|
||||
data-tippy-content={`${i18n.t('number_of_users', {
|
||||
count: counts.users_active_day,
|
||||
})} ${i18n.t('active_in_the_last')} ${i18n.t('day')}`}
|
||||
>
|
||||
{i18n.t('number_of_users', {
|
||||
count: counts.users_active_day,
|
||||
})}{' '}
|
||||
/ {i18n.t('day')}
|
||||
</li>
|
||||
<li className="list-inline-item badge badge-secondary">
|
||||
<li
|
||||
className="list-inline-item badge badge-secondary pointer"
|
||||
data-tippy-content={`${i18n.t('number_of_users', {
|
||||
count: counts.users_active_week,
|
||||
})} ${i18n.t('active_in_the_last')} ${i18n.t('week')}`}
|
||||
>
|
||||
{i18n.t('number_of_users', {
|
||||
count: counts.users_active_week,
|
||||
})}{' '}
|
||||
/ {i18n.t('week')}
|
||||
</li>
|
||||
<li className="list-inline-item badge badge-secondary">
|
||||
<li
|
||||
className="list-inline-item badge badge-secondary pointer"
|
||||
data-tippy-content={`${i18n.t('number_of_users', {
|
||||
count: counts.users_active_month,
|
||||
})} ${i18n.t('active_in_the_last')} ${i18n.t('month')}`}
|
||||
>
|
||||
{i18n.t('number_of_users', {
|
||||
count: counts.users_active_month,
|
||||
})}{' '}
|
||||
/ {i18n.t('month')}
|
||||
</li>
|
||||
<li className="list-inline-item badge badge-secondary">
|
||||
<li
|
||||
className="list-inline-item badge badge-secondary pointer"
|
||||
data-tippy-content={`${i18n.t('number_of_users', {
|
||||
count: counts.users_active_half_year,
|
||||
})} ${i18n.t('active_in_the_last')} ${i18n.t('number_of_months', {
|
||||
count: 6,
|
||||
})}`}
|
||||
>
|
||||
{i18n.t('number_of_users', {
|
||||
count: counts.users_active_half_year,
|
||||
})}{' '}
|
||||
|
|
|
@ -149,25 +149,47 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
|||
<li className="list-inline-item badge badge-secondary">
|
||||
{i18n.t('number_online', { count: this.props.online })}
|
||||
</li>
|
||||
<li className="list-inline-item badge badge-secondary">
|
||||
<li
|
||||
className="list-inline-item badge badge-secondary pointer"
|
||||
data-tippy-content={`${i18n.t('number_of_users', {
|
||||
count: counts.users_active_day,
|
||||
})} ${i18n.t('active_in_the_last')} ${i18n.t('day')}`}
|
||||
>
|
||||
{i18n.t('number_of_users', {
|
||||
count: counts.users_active_day,
|
||||
})}{' '}
|
||||
/ {i18n.t('day')}
|
||||
</li>
|
||||
<li className="list-inline-item badge badge-secondary">
|
||||
<li
|
||||
className="list-inline-item badge badge-secondary pointer"
|
||||
data-tippy-content={`${i18n.t('number_of_users', {
|
||||
count: counts.users_active_week,
|
||||
})} ${i18n.t('active_in_the_last')} ${i18n.t('week')}`}
|
||||
>
|
||||
{i18n.t('number_of_users', {
|
||||
count: counts.users_active_week,
|
||||
})}{' '}
|
||||
/ {i18n.t('week')}
|
||||
</li>
|
||||
<li className="list-inline-item badge badge-secondary">
|
||||
<li
|
||||
className="list-inline-item badge badge-secondary pointer"
|
||||
data-tippy-content={`${i18n.t('number_of_users', {
|
||||
count: counts.users_active_month,
|
||||
})} ${i18n.t('active_in_the_last')} ${i18n.t('month')}`}
|
||||
>
|
||||
{i18n.t('number_of_users', {
|
||||
count: counts.users_active_month,
|
||||
})}{' '}
|
||||
/ {i18n.t('month')}
|
||||
</li>
|
||||
<li className="list-inline-item badge badge-secondary">
|
||||
<li
|
||||
className="list-inline-item badge badge-secondary pointer"
|
||||
data-tippy-content={`${i18n.t('number_of_users', {
|
||||
count: counts.users_active_half_year,
|
||||
})} ${i18n.t('active_in_the_last')} ${i18n.t('number_of_months', {
|
||||
count: 6,
|
||||
})}`}
|
||||
>
|
||||
{i18n.t('number_of_users', {
|
||||
count: counts.users_active_half_year,
|
||||
})}{' '}
|
||||
|
|
Loading…
Reference in a new issue