Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

inline_post.html 2.4 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {% set post_url = "/" + post.website_group + "?view=post&name=" + post.name %}
  2. {% set edit_url = "/" + post.website_group + "?view=edit&name=" + post.name %}
  3. <div class="media post {% if post.parent_post -%} child-post {%- endif %}"
  4. data-name="{{ post.name }}"
  5. data-group="{{ post.website_group }}"
  6. itemscope itemtype="http://schema.org/Article">
  7. <a class="pull-left media-link" href="{{ post_url }}">
  8. <img class="media-object post-avatar" src="{{ post.user_image|scrub_relative_url }}">
  9. </a>
  10. <div class="media-body">
  11. {%- if not post.parent_post -%}
  12. <h4 class="media-heading" itemprop="headline">
  13. {%- if view != "post" -%}
  14. <a class="no-decoration"
  15. href="{{ post_url }}">{{ post.title }}</a>
  16. {%- else -%}
  17. {{ post.title }}
  18. {%- endif -%}
  19. </h4>
  20. {%- endif -%}
  21. <ul class="list-inline small text-muted post-options">
  22. {% if view and view.upvote %}<li class="upvote">
  23. <a><span class="upvote-count {% if not post.upvotes %}hide{% endif %}">{{ post.upvotes }}</span>
  24. <i class="icon-thumbs-up"></i></a></li>{% endif %}
  25. {%- if not post.parent_post and view.name != "post" -%}
  26. <li><a itemprop="url" href="{{ post_url }}">
  27. {% if not post.post_reply_count -%}
  28. <i class="icon-reply"></i> Reply
  29. {% elif post.post_reply_count == 1 %}
  30. {{ post.post_reply_count }} Reply
  31. {% else %}
  32. {{ post.post_reply_count }} Replies
  33. {%- endif %}
  34. </a></li>
  35. {%- endif -%}
  36. <li><span class="wn-timestamp" data-timestamp="{{ post.creation }}"></span></li>
  37. <li>by <span itemprop="author">{{ post.first_name or "" }} {{ post.last_name or "" }}</span></li>
  38. <li class="edit-post pull-right hide" data-owner="{{ post.owner }}">
  39. <a class="text-muted" href="{{ edit_url }}">[edit]</a>
  40. </li>
  41. </ul>
  42. <div itemprop="articleBody" class="post-content">
  43. {%- if post.is_task==1 and post.assigned_to -%}
  44. <span class="label label-info assigned-label">
  45. <i class="icon-pencil"></i> {{ post.assigned_to_fullname }}</span>
  46. {%- elif post.is_event==1 and post.event_datetime -%}
  47. <span class="label label-info event-label"><i class="icon-calendar"></i>
  48. <span class="event-timestamp" data-timestamp="{{ post.event_datetime }}"></span></span>
  49. {%- endif -%}
  50. {{ post.content|markdown }}
  51. {%- if post.picture_url -%}
  52. <img src="{{ post.picture_url|scrub_relative_url }}" class="img-responsive post-picture" />
  53. {%- endif -%}
  54. </div>
  55. </div>
  56. </div>