Changeset View
Changeset View
Standalone View
Standalone View
profiles/templates/profiles/components/action_summary.html
- This file was added.
| <a href="{% firstof action.action_object.get_absolute_url action.action_object_url %}" | |||||
| class="list-group-item activity-list-item {% if notification and not notification.date_read %}unread{% endif %}" | |||||
| {% if notification %} data-mark-read-url="{{ notification.mark_read_url }}" | |||||
| data-is-read={% if notification.date_read %}"true"{% else %}"false"{% endif %} {% endif %}> | |||||
| <span class="name"> | |||||
| <span style="background-image: url({{ action.actor.profile.image_url }});" class="profile col-profile"></span> | |||||
| {% if action.actor.get_absolute_url %} | |||||
| {{ action.actor }} | |||||
| {% else %} | |||||
| {% firstof action.actor.profile.full_name action.actor %} | |||||
| {% endif %} | |||||
| </span> | |||||
| <span class="text"> | |||||
| {{ action.verb|capfirst }} | |||||
| {% if action.action_object and action.action_object.user == user %} | |||||
| your {{ action.action_object_content_type.name|lower }} | |||||
| {% endif %} | |||||
| {% if action.action_object and action.target %} | |||||
| on {{ action.target }} | |||||
| {% endif %} | |||||
| </span> | |||||
| <span class="date">{{ action.timestamp|date:"U" }}</span> | |||||
| </a> | |||||