Skip to content

Instantly share code, notes, and snippets.

@jkjuopperi
Created July 29, 2013 19:01
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 jkjuopperi/34f79db2832a43c79dd4 to your computer and use it in GitHub Desktop.
Save jkjuopperi/34f79db2832a43c79dd4 to your computer and use it in GitHub Desktop.
(defn ^:dynamic spot-fragment
[spot hidden]
(l/fragment
@spot-template
(l/class= "spot_id") (l/content (str (:id spot)))
(l/class= "spot_de_call") (l/content (:de_call spot))
(l/class= "spot_frequency") (l/content (.toString (.setScale (:frequency spot) 1)))
(l/class= "spot_dx_call") (l/content (:dx_call spot))
(l/class= "spot_time") (l/content (timeformat/unparse spot-time-formatter (:time spot)))
(l/class= "spot_dx_country") (l/content (:dx_country spot))
(l/class= "spot_info") (l/content (:info spot))
(when hidden
[(l/class= "spot") (comp (l/attr :style "display: none")
(l/add-class "hidden-spot"))])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment