Skip to content

Instantly share code, notes, and snippets.

@fpapado
Last active July 10, 2018 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fpapado/d4a2e428046db555441423b3baf4e714 to your computer and use it in GitHub Desktop.
Save fpapado/d4a2e428046db555441423b3baf4e714 to your computer and use it in GitHub Desktop.
Unpublished*
Unpublished*
publish -> Published
Published
unpublish -> Unpublished
event exists -> Event
no event exists -> No Event
Placeholder*
No Event
date is before season -> BeforeSeason
date is after -> AfterSeason
BeforeSeason
AfterSeason
# As it stands, this is the default. Should we have an explicit "Published Placeholder"? Is that BeforeSeason?
BetweenEvents*
Event
event is Pre -> Pre
event is Live -> Live
event is Post -> Post
Pre
time passes -> Live
Live
time passes -> Post
Post
time passes -> Placeholder
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment