Author avatar on activities list
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
| {% for act in activities['_items'] %}
|
||||
li
|
||||
a(href="{{ act.link }}")
|
||||
img.actor-avatar(src="{{ act['actor_user']['email'] | gravatar }}")
|
||||
span.date(title="{{ act._created }}") {{ act._created | pretty_date_time }}
|
||||
span.actor {{ act['actor_user']['full_name'] }}
|
||||
span.verb {{ act.verb }}
|
||||
|
@@ -1,15 +1,15 @@
|
||||
.d-activity
|
||||
| {% if activities['_meta']['total'] %}
|
||||
|
||||
ul
|
||||
| {% for act in activities['_items'] %}
|
||||
li
|
||||
span.date(title="{{ act._created }}") {{ act._created | pretty_date_time }}
|
||||
span.actor {{ act['actor_user']['full_name'] }}
|
||||
span.verb {{ act.verb }}
|
||||
| {% endfor %}
|
||||
| {% else %}
|
||||
p.
|
||||
No activity detected, which is strange, as we also consider creation
|
||||
to be an activity.
|
||||
| {% endif %}
|
||||
| {% if activities['_meta']['total'] %}
|
||||
ul
|
||||
| {% for act in activities['_items'] %}
|
||||
li
|
||||
img.actor-avatar(src="{{ act['actor_user']['email'] | gravatar }}")
|
||||
span.date(title="{{ act._created }}") {{ act._created | pretty_date_time }}
|
||||
span.actor {{ act['actor_user']['full_name'] }}
|
||||
span.verb {{ act.verb }}
|
||||
| {% endfor %}
|
||||
| {% else %}
|
||||
p.
|
||||
No activity detected, which is strange, as we also consider creation
|
||||
to be an activity.
|
||||
| {% endif %}
|
||||
|
@@ -3,6 +3,7 @@
|
||||
ul
|
||||
| {% for act in activities['_items'] %}
|
||||
li
|
||||
img.actor-avatar(src="{{ act['actor_user']['email'] | gravatar }}")
|
||||
span.date(title="{{ act._created }}") {{ act._created | pretty_date_time }}
|
||||
span.actor {{ act['actor_user']['full_name'] }}
|
||||
span.verb {{ act.verb }}
|
||||
|
Reference in New Issue
Block a user