Add part7

This commit is contained in:
Richard Feldman
2018-05-05 04:54:47 -04:00
parent f6bef58e3d
commit 825dea437b
575 changed files with 79140 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
module Views.Author exposing (view)
{-| View an author. We basically render their username and a link to their
profile, and that's it.
-}
import Data.User as User exposing (Username)
import Html exposing (Html, a)
import Html.Attributes exposing (attribute, class, href, id, placeholder)
import Route exposing (Route)
view : Username -> Html msg
view username =
a [ class "author", Route.href (Route.Profile username) ]
[ User.usernameToHtml username ]