Last active
July 10, 2018 21:26
-
-
Save fpapado/d4a2e428046db555441423b3baf4e714 to your computer and use it in GitHub Desktop.
Unpublished*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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