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)
|
ident Text sqltype=varchar(255)
|
||||||
fullName Text sqltype=varchar(500)
|
fullName Text sqltype=varchar(500)
|
||||||
email Text sqltype=varchar(255)
|
email Text sqltype=varchar(255)
|
||||||
|
note Text
|
||||||
password Text Maybe sqltype=varchar(255) default=NULL
|
password Text Maybe sqltype=varchar(255) default=NULL
|
||||||
UniqueUser ident
|
UniqueUser ident
|
||||||
deriving Typeable
|
deriving Typeable
|
||||||
|
|
|
@ -220,6 +220,7 @@ instance YesodAuth App where
|
||||||
{ userIdent = credsIdent creds
|
{ userIdent = credsIdent creds
|
||||||
, userFullName = ""
|
, userFullName = ""
|
||||||
, userEmail = ""
|
, userEmail = ""
|
||||||
|
, userNote = ""
|
||||||
, userPassword = Nothing
|
, userPassword = Nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<img .card-img-top.u-photo src=#{avatar} alt="Avatar for #{userFullName user}">
|
<img .card-img-top.u-photo src=#{avatar} alt="Avatar for #{userFullName user}">
|
||||||
<div .card-body>
|
<div .card-body>
|
||||||
<h4 .card-title.p-name>#{userFullName user}
|
<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}">
|
<a .card-link.u-email rel="me" href="mailto:#{userEmail user}">
|
||||||
<i .fa.fa-envelope>
|
<i .fa.fa-envelope>
|
||||||
#{userEmail user}
|
#{userEmail user}
|
||||||
|
|
Loading…
Reference in a new issue