Add a p-note to the h-card
This commit is contained in:
parent
e81a44d122
commit
208a46e346
3 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -220,6 +220,7 @@ instance YesodAuth App where
|
|||
{ userIdent = credsIdent creds
|
||||
, userFullName = ""
|
||||
, userEmail = ""
|
||||
, userNote = ""
|
||||
, userPassword = Nothing
|
||||
}
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue