summaryrefslogtreecommitdiff
blob: d1d9072720a503e83758204df9e690572826a312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module View.MessageBoard.Error exposing (get_html)

-- Elm -------------------------------------------------------------------------
import Html
import Html.Attributes

-- Battlemap -------------------------------------------------------------------
import Struct.Error
import Struct.Event
import Struct.Model

--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
get_html : (
      Struct.Model.Type ->
      Struct.Error.Type ->
      (Html.Html Struct.Event.Type)
   )
get_html model error =
   (Html.div
      [
         (Html.Attributes.class "battlemap-help"),
         (Html.Attributes.class "battlemap-error")
      ]
      [
         (Html.text (Struct.Error.to_string error))
      ]
   )