summaryrefslogtreecommitdiffstats
path: root/ui/src/components/communities.tsx
diff options
context:
space:
mode:
authorRichard <richard@tripaneer.com>2020-01-31 21:52:27 +0100
committerRichard <richard@tripaneer.com>2020-01-31 21:52:27 +0100
commit2f9a052f89fe8d34fedcd2219e644dd51cda5505 (patch)
tree78caf41816cce8fcc17a85d874a446a86da5e80b /ui/src/components/communities.tsx
parent8cbdba1da39c15d2a3d13919398fc4d4c8ef2c6c (diff)
usability features
This are all the commits from another PR combined into a single commit.
Diffstat (limited to 'ui/src/components/communities.tsx')
-rw-r--r--ui/src/components/communities.tsx25
1 files changed, 13 insertions, 12 deletions
diff --git a/ui/src/components/communities.tsx b/ui/src/components/communities.tsx
index b1da9882..eef39ccf 100644
--- a/ui/src/components/communities.tsx
+++ b/ui/src/components/communities.tsx
@@ -76,37 +76,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>
@@ -149,7 +149,7 @@ export class Communities extends Component<any, CommunitiesState> {
this.handleSubscribe
)}
>
- <T i18nKey="subscribe">#</T>
+ { i18n.t('subscribe') }
</span>
)}
</td>
@@ -173,15 +173,16 @@ 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>
)}
+
{this.state.communities.length == communityLimit && (
<button
class="btn btn-sm btn-secondary"
onClick={linkEvent(this, this.nextPage)}
>
- <T i18nKey="next">#</T>
+ { i18n.t('next') }
</button>
)}
</div>