view_message.html.twig 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {% extends '@ChamiloTheme/Layout/layout_one_col.html.twig' %}
  2. {% block content %}
  3. {% autoescape false %}
  4. <div id="message_{{ message.id }}" data-status="{{ message.status }}" class="mail-email">
  5. <div class="email-head">
  6. <div class="email-head-subject">
  7. <div class="title">
  8. <a class="active" href="#">
  9. <span class="icon">
  10. <i class="fas fa-star"></i>
  11. </span>
  12. </a>
  13. <span>
  14. {{ message.title }}
  15. </span>
  16. <div class="icons">
  17. <div class="btn-group" role="group" >
  18. <a href="{{ message.url.back }}" class="btn btn-outline-secondary icon"><i class="fas fa-arrow-circle-left"></i> {{ 'Back'|trans }}</a>
  19. <a href="#" onclick="window.print();" class="btn btn-outline-secondary icon"><i class="fas fa-print"></i> {{ 'Print'|trans }}</a>
  20. <a href="{{ message.url.new_message }}" class="btn btn-outline-secondary icon"><i class="fas fa-reply"></i> {{ 'Reply'|trans }}</a>
  21. <a href="{{ message.url.delete }}" class="btn btn-outline-secondary icon"><i class="fas fa-trash"></i> {{ 'Delete'|trans }}</a>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. <div class="email-head-sender">
  27. <div class="date">{{ message.date }}</div>
  28. <div class="avatar">
  29. <img src="{{ message.form_user.avatar }}" alt="Avatar" class="rounded-circle user-avatar-md">
  30. </div>
  31. <div class="sender">
  32. <a href="{{ _p.web }}main/social/profile.php?u={{ message.form_user.id }}">{{ message.form_user.name }}</a>
  33. <div class="email">{{ message.form_user.email }}</div>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="email-body">
  38. {{ message.content }}
  39. </div>
  40. {% if message.attachments %}
  41. <div class="email-attachments">
  42. <div class="title">{{ 'Attachments'|trans }} <span>({{ message.attachments.quantity }} {{ 'Files'|trans }}, {{ message.attachments.total_size }})</span></div>
  43. <ul>
  44. {% for item in message.attachments.files %}
  45. <li>
  46. <a href="{{ item.url }}">
  47. <i class="fas fa-paperclip"></i> {{ item.filename }}
  48. <span>({{ item.size }})</span>
  49. </a>
  50. </li>
  51. {% endfor %}
  52. </ul>
  53. </div>
  54. {% endif %}
  55. </div>
  56. {% endautoescape %}
  57. {% endblock %}