diff options
author | Joris Guyonvarch | 2015-03-17 21:26:40 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-17 21:26:40 +0100 |
commit | 0075abf51db5d1b54117525d7a7f9b06e31c9484 (patch) | |
tree | ed7a5b8c3ac74113dca96463a41dcd00548d20c8 /src/View/ActivatedClasses.elm | |
parent | c3e8b1a4d428160976c5d9ad770763e8db02f3bc (diff) |
Adding an edition mode for a timer
Diffstat (limited to 'src/View/ActivatedClasses.elm')
-rw-r--r-- | src/View/ActivatedClasses.elm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/View/ActivatedClasses.elm b/src/View/ActivatedClasses.elm new file mode 100644 index 0000000..9594448 --- /dev/null +++ b/src/View/ActivatedClasses.elm @@ -0,0 +1,15 @@ +module View.ActivatedClasses + ( activatedClasses + ) where + +import Html +import Html.Attributes (..) +import List +import String + +activatedClasses : List (Bool, String) -> Html.Attribute +activatedClasses = + class + << String.concat + << List.intersperse " " + << List.filterMap (\(activated, str) -> if activated then Just str else Nothing) |