Author avatar on activities list

This commit is contained in:
2016-11-01 15:56:36 +01:00
parent f48e5dc9a2
commit 2e26c01efd
3 changed files with 16 additions and 14 deletions

View File

@@ -36,6 +36,7 @@
| {% for act in activities['_items'] %} | {% for act in activities['_items'] %}
li li
a(href="{{ act.link }}") a(href="{{ act.link }}")
img.actor-avatar(src="{{ act['actor_user']['email'] | gravatar }}")
span.date(title="{{ act._created }}") {{ act._created | pretty_date_time }} span.date(title="{{ act._created }}") {{ act._created | pretty_date_time }}
span.actor {{ act['actor_user']['full_name'] }} span.actor {{ act['actor_user']['full_name'] }}
span.verb {{ act.verb }} span.verb {{ act.verb }}

View File

@@ -1,15 +1,15 @@
.d-activity .d-activity
| {% if activities['_meta']['total'] %} | {% if activities['_meta']['total'] %}
ul
ul | {% for act in activities['_items'] %}
| {% for act in activities['_items'] %} li
li img.actor-avatar(src="{{ act['actor_user']['email'] | gravatar }}")
span.date(title="{{ act._created }}") {{ act._created | pretty_date_time }} span.date(title="{{ act._created }}") {{ act._created | pretty_date_time }}
span.actor {{ act['actor_user']['full_name'] }} span.actor {{ act['actor_user']['full_name'] }}
span.verb {{ act.verb }} span.verb {{ act.verb }}
| {% endfor %} | {% endfor %}
| {% else %} | {% else %}
p. p.
No activity detected, which is strange, as we also consider creation No activity detected, which is strange, as we also consider creation
to be an activity. to be an activity.
| {% endif %} | {% endif %}

View File

@@ -3,6 +3,7 @@
ul ul
| {% for act in activities['_items'] %} | {% for act in activities['_items'] %}
li li
img.actor-avatar(src="{{ act['actor_user']['email'] | gravatar }}")
span.date(title="{{ act._created }}") {{ act._created | pretty_date_time }} span.date(title="{{ act._created }}") {{ act._created | pretty_date_time }}
span.actor {{ act['actor_user']['full_name'] }} span.actor {{ act['actor_user']['full_name'] }}
span.verb {{ act.verb }} span.verb {{ act.verb }}