2019-12-30 14:27:49 +00:00
|
|
|
<script>
|
|
|
|
|
import { isAdmin } from '../UserState'
|
|
|
|
|
export let character;
|
|
|
|
|
</script>
|
|
|
|
|
|
2019-12-31 14:46:34 +00:00
|
|
|
<style>
|
|
|
|
|
</style>
|
|
|
|
|
|
2019-12-30 14:27:49 +00:00
|
|
|
<span class="character-link">
|
2019-12-31 14:46:34 +00:00
|
|
|
<span class="faction-icon">
|
2019-12-30 14:27:49 +00:00
|
|
|
{#if character.faction_id == 1}
|
2019-12-31 14:46:34 +00:00
|
|
|
<img height=32 src="/img/nc_icon.png" alt="NC" />
|
2019-12-30 14:27:49 +00:00
|
|
|
{:else if character.faction_id == 0}
|
|
|
|
|
<img height=32 src="/img/tr_icon.png" alt="TR" />
|
|
|
|
|
{:else if character.faction_id == 2}
|
|
|
|
|
<img height=32 src="/img/vs_icon.png" alt="VS" />
|
|
|
|
|
{/if}
|
2019-12-31 14:46:34 +00:00
|
|
|
</span>
|
2019-12-30 14:27:49 +00:00
|
|
|
|
|
|
|
|
{#if $isAdmin}
|
2019-12-30 18:20:50 +00:00
|
|
|
<a href="/user/{character.account_id}">{character.name}</a>
|
2019-12-30 14:27:49 +00:00
|
|
|
{:else}
|
|
|
|
|
<span>{character.name}</span>
|
|
|
|
|
{/if}
|
|
|
|
|
</span>
|