summaryrefslogtreecommitdiff
blob: 642634a43dea42e1c067f3c431ef4dbf9c01d8fc (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-message-board"),
         (Html.Attributes.class "battlemap-error")
      ]
      [
         (Html.text (Struct.Error.to_string error))
      ]
   )