diff options
author | Dessalines <tyhou13@gmx.com> | 2019-12-29 15:39:48 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-12-29 15:39:48 -0500 |
commit | a4428528e30b18eb85596edf9c26bc8b6b7d11ee (patch) | |
tree | 450f5662ada20a7f66f809033d57fbc12dcc963d /ui/src/components/main.tsx | |
parent | 106aaf4f28ef34d68848f48e5673f955a04b6deb (diff) |
Adding user avatars / icons. Requires pictshare.
- Fixes #188
Diffstat (limited to 'ui/src/components/main.tsx')
-rw-r--r-- | ui/src/components/main.tsx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index 0d6be91d..d1042f38 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -31,6 +31,7 @@ import { routeSortTypeToEnum, routeListingTypeToEnum, postRefetchSeconds, + pictshareAvatarThumbnail, } from '../utils'; import { i18n } from '../i18next'; import { T } from 'inferno-i18next'; @@ -65,6 +66,9 @@ export class Main extends Component<any, MainState> { number_of_posts: null, number_of_comments: null, number_of_communities: null, + enable_downvotes: null, + open_registration: null, + enable_nsfw: null, }, admins: [], banned: [], @@ -341,7 +345,15 @@ export class Main extends Component<any, MainState> { {this.state.site.admins.map(admin => ( <li class="list-inline-item"> <Link class="text-info" to={`/u/${admin.name}`}> - {admin.name} + {admin.avatar && ( + <img + height="32" + width="32" + src={pictshareAvatarThumbnail(admin.avatar)} + class="rounded-circle mr-1" + /> + )} + <span>{admin.name}</span> </Link> </li> ))} |