Add a p-note to the h-card

This commit is contained in:
Danielle McLean 2017-10-03 13:17:34 +11:00
parent e81a44d122
commit 208a46e346
Signed by: 00dani
GPG key ID: 3844A6973C6058F1
3 changed files with 3 additions and 0 deletions

View file

@ -2,6 +2,7 @@ User
ident Text sqltype=varchar(255)
fullName Text sqltype=varchar(500)
email Text sqltype=varchar(255)
note Text
password Text Maybe sqltype=varchar(255) default=NULL
UniqueUser ident
deriving Typeable

View file

@ -220,6 +220,7 @@ instance YesodAuth App where
{ userIdent = credsIdent creds
, userFullName = ""
, userEmail = ""
, userNote = ""
, userPassword = Nothing
}

View file

@ -3,6 +3,7 @@
<img .card-img-top.u-photo src=#{avatar} alt="Avatar for #{userFullName user}">
<div .card-body>
<h4 .card-title.p-name>#{userFullName user}
<p .card-text.p-note .text-muted>#{userNote user}
<a .card-link.u-email rel="me" href="mailto:#{userEmail user}">
<i .fa.fa-envelope>
#{userEmail user}