{#if expanded} {:else} {/if} Turn {turnNum} {#if logTurn.action?.type === "dispatches"} {pluralize(logTurn.action.dispatches.length, "dispatch")} {:else if logTurn.action?.type === "timeout"} timeout {:else if logTurn.action?.type === "bad_command"} invalid command {/if}
{#if expanded}
copy turn to clipboard
{#if logTurn.action?.type === "dispatches" && logTurn.action.dispatches.length > 0}
dispatches
{#each logTurn.action.dispatches as dispatch}
{pluralize(dispatch.ship_count, "ship")} from {dispatch.origin} to {dispatch.destination}
{#if dispatch.error} {dispatch.error} {/if}
{/each}
{:else if logTurn.action?.type === "bad_command"}
{logTurn.action.command}
Parse error: {logTurn.action.error}
{/if} {#if logTurn.stderr.length > 0}
stderr
{#each logTurn.stderr as stdErrMsg}
{stdErrMsg}
{/each}
{/if}
{/if}