-
-
Save jkjuopperi/34f79db2832a43c79dd4 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
(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