Created
April 23, 2014 05:42
-
-
Save willrjmarshall/11203904 to your computer and use it in GitHub Desktop.
This file contains 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
Darkswarm.filter "date_in_words", -> | |
(date) -> | |
moment(date).fromNow() | |
Darkswarm.filter "sensible_timeframe", (date_in_wordsFilter)-> | |
(date) -> | |
if moment().add('days', 2) < moment(date) | |
"Orders open" | |
else | |
"Closing in #{date_in_wordsFilter(date)}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment