reply.twig 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. {% include 'header.twig' %}
  2. <div class="reply">
  3. <h3>Reply to <em><a href="{{ ('user/' ~ comment.username|url_encode)|docroot }}">{{ comment.username }}</a></em></h3>
  4. <div class="info">
  5. posted <em><a href="{{ 'post/'|docroot ~ comment.postHashId }}#comment-{{ comment.hashId }}">{{ comment.created|ago }}</a></em>
  6. on <a href="{{ ('post/' ~ comment.postHashId)|docroot }}">{{ comment.postTitle }}</a>
  7. </div>
  8. <div style="margin: 2em 0;">
  9. {{ comment.text|markdown|raw }}
  10. </div>
  11. {# "shortcut-submit" is a class used exclusively from javascript
  12. # to submit the form when a key (Ctrl+Enter) is pressed.
  13. #}
  14. <form action="" method="post" class="shortcut-submit">
  15. <input type="hidden" name="parent_comment" value="{{ comment.hashId }}" />
  16. <div style="margin: 2em 0;">
  17. <textarea name="text" required="required" rows=10 class="form-control"></textarea>
  18. </div>
  19. <div>
  20. <input type="submit" class="button button_info" value="Reply" />
  21. </div>
  22. </form>
  23. </div>
  24. {% include 'footer.twig' %}