Navigation Menu

Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
ashafa committed Apr 3, 2012
1 parent e4f4f85 commit 252ae95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/cljs/server/wheresthembta/twitter.cljs
Expand Up @@ -8,7 +8,7 @@



(def node-twitter (node/require "/root/projects/node-twitter/lib/twitter"))
(def node-twitter (node/require config/path-to-patched-node-twitter))

(def keys-and-tokens (clj->js {:consumer_key config/consumer-key
:consumer_secret config/consumer-secret
Expand Down
14 changes: 7 additions & 7 deletions src/cljs/shared/templates.cljs
Expand Up @@ -64,13 +64,13 @@
is-reverse? (>= now when)
time-str (utils/format-seconds seconds)
time-html (if is-reverse?
(cond (= seconds 0) [:li {:class (str revenue " refresh")} time-str]
(< seconds 40) [:li {:class revenue} "Approaching"]
(= seconds 40) [:li {:class (str revenue " refresh")} "Approaching"]
(< seconds 80) [:li {:class revenue} "Arriving"]
(= seconds 80) [:li {:class (str revenue " refresh")} "Arriving"]
(< seconds 100) [:li {:class revenue} "Departing"]
(= seconds 100) [:li {:class (str revenue " refresh")} "Departing"])
(cond (= seconds 0) [:li {:class (str revenue " refresh")} time-str]
(< seconds 25) [:li {:class revenue} "Approaching"]
(= seconds 25) [:li {:class (str revenue " refresh")} "Approaching"]
(< seconds 50) [:li {:class revenue} "Arriving"]
(= seconds 50) [:li {:class (str revenue " refresh")} "Arriving"]
(< seconds 80) [:li {:class revenue} "Departing"]
(= seconds 80) [:li {:class (str revenue " refresh")} "Departing"])
[:li time-str])]
time-html))))]])])])

Expand Down

0 comments on commit 252ae95

Please sign in to comment.