lebd/templates/hcard.hamlet

27 lines
938 B
Text
Raw Permalink Normal View History

<div .card.h-card .bg-dark>
$maybe route <- mcurrentRoute
<a .u-uid.u-url rel="me" href=@{route} hidden>
$maybe avatar <- maybeAvatar
<img .card-img-top.u-photo src=#{avatar} alt="Avatar for #{userFullName user}">
<div .card-body>
<h4 .card-title.p-name>#{userFullName user}
$forall key <- pgpKeys
<a .card-subtitle.u-key rel="me" href=@{routeFromPgp key}>
<i .fa.fa-key>
#{prettyPgp key}
<link rel="pgpkey" type="application/pgp-keys" href=@{routeFromPgp key}>
2017-10-02 22:17:34 -04:00
<p .card-text.p-note .text-muted>#{userNote user}
<ul .profiles>
<li>
<a .u-email rel="me" href="mailto:#{userEmail user}">
<i .fa.fa-envelope>
#{userEmail user}
$forall (site, profile) <- userProfiles
<li>
<a .u-url rel="me" href="#{siteUrl site}#{profileUsername profile}">
<i .fa.fa-#{siteIcon site}>
#{profileUsername profile}