Changeset View
Changeset View
Standalone View
Standalone View
profiles/templates/profiles/components/action.html
- This file was added.
| <div class="mb-3"> | |||||
| {% if action.actor.get_absolute_url %}<a href="{{ action.actor.get_absolute_url }}">{{ action.actor }}</a> | |||||
| {% else %}<a href="{{ action.actor_url }}">{% firstof action.actor.profile.full_name action.actor %}</a>{% endif %} | |||||
| {{ action.verb }} | |||||
| {% if action.action_object %} | |||||
| {% if action.action_object.get_absolute_url %}<a href="{{ action.action_object.get_absolute_url }}">{{ action.action_object }}</a> | |||||
| {% else %}<a href="{{ action.action_object_url }}">{{ action.action_object }}</a>{% endif %} | |||||
| {% endif %} | |||||
| {% if action.action_object and action.target %}to{% endif %} | |||||
| {% if action.target %} | |||||
| {% if action.target.get_absolute_url %}<a href="{{ action.target.get_absolute_url }}">{{ action.target }}</a> | |||||
| {% else %}<a href="{{ action.target_url }}">{{ action.target }}</a>{% endif %} | |||||
| {% endif %} | |||||
| {{ action.timestamp|timesince }} ago | |||||
| </div> | |||||