{#if stream.state === "live"} {:else if stream.state === "archived" } {#if show_free_archived(stream)} {:else} {/if} {:else if stream.state === "finished"} {:else if stream.state === "pending"} {:else} {/if} Zed A. Shaw { stream.title }
{#if stream.state === "pending"} This live stream starts at { stream.starts_on }. Come back then, and hit refresh. {:else if stream.state === "ready"} The show is about to start. Your page might refresh when it does, but if the video doesn't start on its own hit refresh. {:else if stream.state === "finished"} This live stream has ended. It will be posted for later viewing after editing, probably in a few days. {:else if !show_free_archived(stream) } This live stream is for members only. If you want to learn JavaScript, then register today and enjoy all livestreams plus all modules. {/if}
{#if past_streams} {#each past_streams as archived} {#if archived.id !== stream.id} {#if archived.poster} {:else} {/if} { archived.title }
{ formatDistanceToNow(parseISO(archived.starts_on), {addSuffix: true}) }
{/if} {/each}
{/if}