botserver/ui/suite/partials/message.html
Rodrigo Rodriguez (Pragmatismo) e68a12176d Add Suite app documentation, templates, and Askama config
- Add askama.toml for template configuration (ui/ directory)
- Add Suite app documentation with flow diagrams (SVG)
  - App launcher, chat flow, drive flow, tasks flow
  - Individual app docs: chat, drive, tasks, mail, etc.
- Add HTML templates for Suite apps
  - Base template with header and app launcher
  - Auth login page
  - Chat, Drive, Mail, Meet, Tasks templates
  - Partial templates for messages, sessions, notifications
- Add Extensions type to AppState for type-erased storage
- Add mTLS module for service-to-service authentication
- Update web handlers to use new template paths (suite/)
- Fix auth module to avoid axum-extra TypedHeader dependency
2025-11-30 21:00:48 -03:00

16 lines
562 B
HTML

<div class="message {% if is_user %}user{% else %}bot{% endif %}" id="msg-{{ id }}">
<div class="message-avatar">
{% if is_user %}
<span class="avatar-user">U</span>
{% else %}
<span class="avatar-bot">🤖</span>
{% endif %}
</div>
<div class="message-content">
<div class="message-header">
<span class="message-sender">{{ sender }}</span>
<span class="message-time">{{ timestamp }}</span>
</div>
<div class="message-body">{{ content }}</div>
</div>
</div>