{#if $badge} {#if !$online && !offline} {#if !hiddenFail}
{/if} {:else if !ignoreLoading && !hiddenFail && $loadingStatus === "loading"}
{:else if $loggedIn}
{:else if ($loadingStatus === "error" || $apiState === "readonly" || $apiState === "offline" || $apiState === "unreachable")} {#if !hiddenFail}
state.osmConnection.AttemptLogin()}>
{/if} {:else if $loadingStatus === "not-attempted"}
{/if} {/if}