{% load i18n mobile_tags %}{# TODO: remove mobile_tags if orga can participate #} {% load and_op has_perm_to from creme_core_tags %}{% has_perm_to change activity as edit_perm %} {% with participant_relations=activity.get_participant_relations organisations=activity|mobile_organisation_subjects has_button=buttons_template|and_op:edit_perm start=activity.start %}
{% if start %} {% if activity.is_all_day %} {% if show_date %}{{start|date:_('d/m/Y')}} {% endif %}{% translate 'All day' %} {% elif is_floating %} {% if show_date %}{{start|date:_('d/m/Y')}} {% endif %}{% translate 'In day' %} {% else %} {% if show_date %}{{start|date:_('d/m/Y H:i')}}{% else %}{{start|date:_('H:i')}}{% endif %} – {{activity.end|date:_('H:i')}} {% endif %} / {{activity.type}} {% else %} {{activity.type}} {% endif %}
{{activity.title}}
{% if has_button %}
{% include buttons_template %}
{% endif %} {% if participant_relations or organisations %}
{% for relation in participant_relations %} {% with contact=relation.real_object %} {% if contact.id != user_contact_id %} {% include 'mobile/frags/contact_card.html' with card_classes='participant participant-type-contact card-component' %} {% endif %} {% endwith %} {% endfor %} {% for orga in organisations %} {% include 'mobile/frags/orga_card.html' with card_classes='participant participant-type-orga card-component' %} {% endfor %}
{% endif %}
{% endwith %}