fixing percentages.
This commit is contained in:
@@ -28,6 +28,17 @@
|
||||
|
||||
|
||||
|
||||
(defn- nf%
|
||||
[num]
|
||||
(.format (doto
|
||||
(NumberFormat. Format/PERCENT)
|
||||
(.setMaximumFractionDigits 1)
|
||||
(.setMinimumFractionDigits 1))
|
||||
(str num)))
|
||||
|
||||
(defn ->% [x]
|
||||
(nf% x))
|
||||
|
||||
(defn active-when= [active-page candidate]
|
||||
(when (= active-page candidate) " is-active"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user