From 9284a730c2f1c5ef041e27ee28617338ee10e402 Mon Sep 17 00:00:00 2001 From: Deimos Date: Tue, 30 Apr 2019 17:33:58 -0600 Subject: [PATCH] Fix replying not working from notifications page Whoops, need to have that {% 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 %}