changed translations, centered loader

This commit is contained in:
Richard 2020-01-19 12:31:08 +01:00
parent ee7a4463d3
commit c0e785e7f2
2 changed files with 18 additions and 18 deletions

View file

@ -80,37 +80,37 @@ export class Communities extends Component<any, CommunitiesState> {
return (
<div class="container">
{this.state.loading ? (
<h5 class="">
<p class="text-center">
<svg class="icon icon-spinner spin">
<use xlinkHref="#icon-spinner"></use>
</svg>
</h5>
</p>
) : (
<div>
<h5>
<T i18nKey="list_of_communities">#</T>
{ i18n.t('list_of_communities') }
</h5>
<div class="table-responsive">
<table id="community_table" class="table table-sm table-hover">
<thead class="pointer">
<tr>
<th>
<T i18nKey="name">#</T>
{ i18n.t('name') }
</th>
<th class="d-none d-lg-table-cell">
<T i18nKey="title">#</T>
{ i18n.t('title') }
</th>
<th>
<T i18nKey="category">#</T>
{ i18n.t('category') }
</th>
<th class="text-right">
<T i18nKey="subscribers">#</T>
{ i18n.t('subscribers') }
</th>
<th class="text-right d-none d-lg-table-cell">
<T i18nKey="posts">#</T>
{ i18n.t('posts') }
</th>
<th class="text-right d-none d-lg-table-cell">
<T i18nKey="comments">#</T>
{ i18n.t('comments') }
</th>
<th></th>
</tr>
@ -153,7 +153,7 @@ export class Communities extends Component<any, CommunitiesState> {
this.handleSubscribe
)}
>
<T i18nKey="subscribe">#</T>
{ i18n.t('subscribe') }
</span>
)}
</td>
@ -177,14 +177,14 @@ export class Communities extends Component<any, CommunitiesState> {
class="btn btn-sm btn-secondary mr-1"
onClick={linkEvent(this, this.prevPage)}
>
<T i18nKey="prev">#</T>
{ i18n.t('prev') }
</button>
)}
<button
class="btn btn-sm btn-secondary"
onClick={linkEvent(this, this.nextPage)}
>
<T i18nKey="next">#</T>
{ i18n.t('next') }
</button>
</div>
);

View file

@ -125,11 +125,11 @@ export class Community extends Component<any, State> {
return (
<div class="container">
{this.state.loading ? (
<h5>
<p class="text-center">
<svg class="icon icon-spinner spin">
<use xlinkHref="#icon-spinner"></use>
</svg>
</h5>
</p>
) : (
<div class="row">
<div class="col-12 col-md-8">
@ -137,12 +137,12 @@ export class Community extends Component<any, State> {
{this.state.community.title}
{this.state.community.removed && (
<small className="ml-2 text-muted font-italic">
<T i18nKey="removed">#</T>
{ i18n.t('removed') }
</small>
)}
{this.state.community.nsfw && (
<small className="ml-2 text-muted font-italic">
<T i18nKey="nsfw">#</T>
{ i18n.t('nsfw') }
</small>
)}
</h5>
@ -189,14 +189,14 @@ export class Community extends Component<any, State> {
class="btn btn-sm btn-secondary mr-1"
onClick={linkEvent(this, this.prevPage)}
>
<T i18nKey="prev">#</T>
{ i18n.t('prev') }
</button>
)}
<button
class="btn btn-sm btn-secondary"
onClick={linkEvent(this, this.nextPage)}
>
<T i18nKey="next">#</T>
{ i18n.t('next') }
</button>
</div>
);