Support for displaying avatar and note on h-card

This commit is contained in:
Danielle McLean 2017-10-23 10:39:17 +11:00
parent afcf101d09
commit 24c83674ba
Signed by untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -2,10 +2,12 @@
{% block main %} {% block main %}
<aside class="author"> <aside class="author">
<article class="h-card card p-author"> <article class="h-card card p-author">
{% if user.avatar %}<img class="card-img-top u-photo" src="{{ user.avatar.url }}" alt="{{ user.first_name }} {{ user.last_name }}" />{% endif %}
<div class="card-body"> <div class="card-body">
<h4 class="card-title p-name"> <h4 class="card-title p-name">
<span class="p-given-name">{{ user.first_name }}</span> <span class="p-family-name">{{ user.last_name }}</span> <span class="p-given-name">{{ user.first_name }}</span> <span class="p-family-name">{{ user.last_name }}</span>
</h4> </h4>
{% if user.note %}<p class="p-note">{{ user.note }}</p>{% endif %}
</div> </div>
<div class="card-footer"> <div class="card-footer">