diff --git a/tildes/tildes/templates/macros/comments.jinja2 b/tildes/tildes/templates/macros/comments.jinja2 index 8ff4595..aa18200 100644 --- a/tildes/tildes/templates/macros/comments.jinja2 +++ b/tildes/tildes/templates/macros/comments.jinja2 @@ -2,6 +2,7 @@ {# SPDX-License-Identifier: AGPL-3.0-or-later #} {% from 'datetime.jinja2' import adaptive_date_responsive %} +{% from 'forms.jinja2' import markdown_textarea %} {% from 'links.jinja2' import username_linked %} {% macro render_single_comment(comment) %} @@ -303,3 +304,22 @@ {% endmacro %} + +{% macro comment_reply_template() %} + +{% endmacro %} diff --git a/tildes/tildes/templates/notifications_unread.jinja2 b/tildes/tildes/templates/notifications_unread.jinja2 index 428a13f..b586436 100644 --- a/tildes/tildes/templates/notifications_unread.jinja2 +++ b/tildes/tildes/templates/notifications_unread.jinja2 @@ -3,7 +3,7 @@ {% extends 'base_user_menu.jinja2' %} -{% from 'macros/comments.jinja2' import comment_label_options_template, render_single_comment with context %} +{% from 'macros/comments.jinja2' import comment_label_options_template, comment_reply_template, render_single_comment with context %} {% from 'macros/links.jinja2' import group_linked, username_linked %} {% block title %}Unread notifications{% endblock %} @@ -79,3 +79,7 @@ {% if request.user %}{{ comment_label_options_template(comment_label_options) }}{% endif %} {% endblock %} + +{% block templates %} + {{ comment_reply_template() }} +{% endblock %} diff --git a/tildes/tildes/templates/topic.jinja2 b/tildes/tildes/templates/topic.jinja2 index 2e1db66..97ad29f 100644 --- a/tildes/tildes/templates/topic.jinja2 +++ b/tildes/tildes/templates/topic.jinja2 @@ -3,7 +3,7 @@ {% extends 'base.jinja2' %} -{% from 'macros/comments.jinja2' import comment_label_options_template, render_comment_tree with context %} +{% from 'macros/comments.jinja2' import comment_label_options_template, comment_reply_template, render_comment_tree with context %} {% from 'macros/datetime.jinja2' import adaptive_date_responsive, time_ago %} {% from 'macros/forms.jinja2' import markdown_textarea %} {% from 'macros/links.jinja2' import group_linked, username_linked %} @@ -12,22 +12,7 @@ {% block title %}{{ topic.title }} - ~{{ topic.group.path }}{% endblock %} {% block templates %} - + {{ comment_reply_template() }} {% endblock %} {% block header_context_link %}