{% extends "layouts/app.twig" %} {% import 'macros/base.twig' as m %} {% import 'macros/form.twig' as f %} {% block title %}{{ __('message.title') }}{% endblock %} {% block content %}
{{ csrf() }}
{{ f.select('user_id', null, users, { 'class': 'pe-5', 'required': true, 'default_option': __('message.choose_angel'), }) }}
{{ f.submit(__('message.to_conversation'), {'btn_type': 'secondary'}) }}
{% for c in conversations %} {% endfor %}
{{ __('general.angel') }} {{ __('message.message') }} {{ __('title.date') }}
{{ m.user(c.other_user, {'pronoun': true, 'url': url('/messages/' ~ c.other_user.id ~ '#newest')}) }} {% if c.unread_messages > 0 %} {{ c.unread_messages }} {% endif %} {{ c.latest_message.text|length > 100 ? c.latest_message.text|slice(0, 100) ~ '…' : c.latest_message.text }} {{ c.latest_message.created_at.format(__('general.datetime')) }}
{% endblock %}