{#if $badge} {#if !ignoreLoading && !silentFail && $loadingStatus === "loading"} {:else if !silentFail && ($loadingStatus === "error" || $apiState === "readonly" || $apiState === "offline")} {#if !hiddenFail}
{/if} {:else if $loadingStatus === "logged-in"} {:else if !silentFail && $loadingStatus === "not-attempted"} {/if} {/if}