Permalink
Browse files

...

  • Loading branch information...
1 parent e4f4f85 commit 252ae95f0978d0831f5db41314c4341b2ac58ecc @ashafa committed Apr 3, 2012
Showing with 8 additions and 8 deletions.
  1. +1 −1 src/cljs/server/wheresthembta/twitter.cljs
  2. +7 −7 src/cljs/shared/templates.cljs
@@ -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
@@ -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))))]])])])

0 comments on commit 252ae95

Please sign in to comment.