mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 12:51:18 +00:00
Hide online counts for now. #664
This commit is contained in:
parent
674e221335
commit
610cce4162
2 changed files with 10 additions and 5 deletions
2
ui/src/components/main.tsx
vendored
2
ui/src/components/main.tsx
vendored
|
@ -282,9 +282,11 @@ export class Main extends Component<any, MainState> {
|
||||||
</ul>
|
</ul>
|
||||||
)}
|
)}
|
||||||
<ul class="my-2 list-inline">
|
<ul class="my-2 list-inline">
|
||||||
|
{/*
|
||||||
<li className="list-inline-item badge badge-secondary">
|
<li className="list-inline-item badge badge-secondary">
|
||||||
{i18n.t('number_online', { count: this.state.siteRes.online })}
|
{i18n.t('number_online', { count: this.state.siteRes.online })}
|
||||||
</li>
|
</li>
|
||||||
|
*/}
|
||||||
<li className="list-inline-item badge badge-secondary">
|
<li className="list-inline-item badge badge-secondary">
|
||||||
{i18n.t('number_of_users', {
|
{i18n.t('number_of_users', {
|
||||||
count: this.state.siteRes.site.number_of_users,
|
count: this.state.siteRes.site.number_of_users,
|
||||||
|
|
13
ui/src/components/sidebar.tsx
vendored
13
ui/src/components/sidebar.tsx
vendored
|
@ -111,8 +111,9 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
class={`icon icon-inline ${community.deleted &&
|
class={`icon icon-inline ${
|
||||||
'text-danger'}`}
|
community.deleted && 'text-danger'
|
||||||
|
}`}
|
||||||
>
|
>
|
||||||
<use xlinkHref="#icon-trash"></use>
|
<use xlinkHref="#icon-trash"></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -169,9 +170,11 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
||||||
</form>
|
</form>
|
||||||
)}
|
)}
|
||||||
<ul class="my-1 list-inline">
|
<ul class="my-1 list-inline">
|
||||||
|
{/*
|
||||||
<li className="list-inline-item badge badge-secondary">
|
<li className="list-inline-item badge badge-secondary">
|
||||||
{i18n.t('number_online', { count: this.props.online })}
|
{i18n.t('number_online', { count: this.props.online })}
|
||||||
</li>
|
</li>
|
||||||
|
*/}
|
||||||
<li className="list-inline-item badge badge-secondary">
|
<li className="list-inline-item badge badge-secondary">
|
||||||
{i18n.t('number_of_subscribers', {
|
{i18n.t('number_of_subscribers', {
|
||||||
count: community.number_of_subscribers,
|
count: community.number_of_subscribers,
|
||||||
|
@ -215,9 +218,9 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
<Link
|
<Link
|
||||||
class={`btn btn-sm btn-secondary btn-block mb-3 ${(community.deleted ||
|
class={`btn btn-sm btn-secondary btn-block mb-3 ${
|
||||||
community.removed) &&
|
(community.deleted || community.removed) && 'no-click'
|
||||||
'no-click'}`}
|
}`}
|
||||||
to={`/create_post?community=${community.name}`}
|
to={`/create_post?community=${community.name}`}
|
||||||
>
|
>
|
||||||
{i18n.t('create_a_post')}
|
{i18n.t('create_a_post')}
|
||||||
|
|
Loading…
Reference in a new issue