Added link to profile on username (#5)

This commit is contained in:
Nicolas Lœuillet 2017-04-20 15:43:15 +02:00 committed by Nicolas Perriault
parent 556fab7daa
commit c769df0933

View File

@ -39,7 +39,9 @@ statusView status =
Nothing ->
div [ class "status" ]
[ img [ class "avatar", src status.account.avatar ] []
, div [ class "username" ] [ text status.account.username ]
, div [ class "username" ]
[ a [ href status.account.url ] [ text status.account.username ]
]
, div [ class "status-text" ]
(HtmlParser.parse status.content |> toVirtualDom)
]