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