PSFPortal/app/components/CharacterLink.svelte
Chord fa6e168ccc Application improvements
* Change favicon
* Display account banned status on admin search
* Pull in application version from Webpack
* Add "Feedback" button in footer and github references
* Fix faction icons to make them the same size
* PaginatedList component now supports back
* Tabbed navs support back
* Hide Pagination when only one page
* Improve admin table style and size
2019-12-31 09:46:34 -05:00

26 lines
571 B
Svelte

<script>
import { isAdmin } from '../UserState'
export let character;
</script>
<style>
</style>
<span class="character-link">
<span class="faction-icon">
{#if character.faction_id == 1}
<img height=32 src="/img/nc_icon.png" alt="NC" />
{: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}
</span>
{#if $isAdmin}
<a href="/user/{character.account_id}">{character.name}</a>
{:else}
<span>{character.name}</span>
{/if}
</span>