trash.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {% set page_title = _("Trash") %}
  2. {% from theme('macros.html') import render_pagination %}
  3. {% extends theme("message/message_layout.html") %}
  4. {% block message_content %}
  5. <div class="panel panel-default conversation">
  6. <div class="panel-heading">
  7. <span class="glyphicon glyphicon-comment"></span>
  8. <h3 class="panel-title">{% trans %}Deleted Conversations{% endtrans %}</h3>
  9. <span class="label label-info">{{ message_count }}/{{ flaskbb_config["MESSAGE_QUOTA"] }}</span>
  10. </div>
  11. <div class="panel-body">
  12. <ul class="list-group">
  13. {% for conversation in conversations.items %}
  14. <li class="list-group-item">
  15. <div class="row">
  16. <div class="col-xs-2 col-md-1">
  17. {% if conversation.from_user.avatar %}
  18. <img src="{{ url_for('conversation.from_user.avatar') }}" class="img-circle img-responsive" alt="" />
  19. {% else %}
  20. <span class="fa fa-user" style="font-size: 80px; color: #E5E5E5"></span>
  21. {% endif %}
  22. </div>
  23. <div class="col-xs-10 col-md-11">
  24. <div>
  25. <a href="{{ url_for('message.view_conversation', conversation_id=conversation.id) }}">
  26. <strong>{{ conversation.subject }}</strong>
  27. </a>
  28. <div class="mic-info">
  29. By: <a href="#">{{ conversation.from_user.username }}</a> on {{ conversation.date_created|format_date("%d %B %Y - %H:%M") }}
  30. </div>
  31. </div>
  32. <div class="comment-text">
  33. {# the first message of conversation is always the starting message #}
  34. {{ conversation.messages[0].message }}
  35. </div>
  36. <div class="action">
  37. <button type="button" class="btn btn-danger btn-xs" title="Delete">
  38. <span class="glyphicon glyphicon-trash"></span>
  39. </button>
  40. </div>
  41. </div>
  42. </div>
  43. </li>
  44. {% else %}
  45. <li class="list-group-item">
  46. <div class="row">
  47. <div class="col-xs-12">
  48. {% trans %}No conversations found.{% endtrans %}
  49. </div>
  50. </div>
  51. </li>
  52. {% endfor %}
  53. </ul>
  54. </div>
  55. </div>
  56. {{ render_pagination(conversations, url_for("message.inbox")) }}
  57. {% endblock %}