2019-12-30 14:27:49 +00:00
|
|
|
<script>
|
|
|
|
|
import { isAdmin } from '../UserState'
|
2020-05-14 17:51:22 +00:00
|
|
|
import FactionIcon from './FactionIcon'
|
2019-12-30 14:27:49 +00:00
|
|
|
export let character;
|
|
|
|
|
</script>
|
|
|
|
|
|
2019-12-31 14:46:34 +00:00
|
|
|
<style>
|
|
|
|
|
</style>
|
|
|
|
|
|
2020-05-14 17:51:22 +00:00
|
|
|
{#if $isAdmin}
|
|
|
|
|
<a class="character-link" href="/user/{character.account_id}">
|
|
|
|
|
<FactionIcon {character} />
|
|
|
|
|
<span>{character.name}</span>
|
2024-12-21 00:15:48 +00:00
|
|
|
{#if character.can_gm}
|
|
|
|
|
<span class="badge badge-success">GM</span>
|
|
|
|
|
{/if}
|
|
|
|
|
{#if character.can_spectate}
|
|
|
|
|
<span class="badge badge-success">Spec</span>
|
|
|
|
|
{/if}
|
2020-05-14 17:51:22 +00:00
|
|
|
</a>
|
|
|
|
|
{:else}
|
2019-12-30 14:27:49 +00:00
|
|
|
<span class="character-link">
|
2020-05-14 17:51:22 +00:00
|
|
|
<FactionIcon {character} />
|
2019-12-30 14:27:49 +00:00
|
|
|
<span>{character.name}</span>
|
|
|
|
|
</span>
|
2020-05-14 17:51:22 +00:00
|
|
|
{/if}
|