From 74cf3b2135661ae17b4e390c91182c673645cad7 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 21 Jul 2019 22:50:57 -0700 Subject: Use variable to set title on base template instead of block --- youtube/templates/post_comment.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'youtube/templates/post_comment.html') diff --git a/youtube/templates/post_comment.html b/youtube/templates/post_comment.html index 98316ab..67c54f1 100644 --- a/youtube/templates/post_comment.html +++ b/youtube/templates/post_comment.html @@ -1,8 +1,7 @@ +{% set page_title = 'Post reply' if replying else 'Post comment' %} {% extends "base.html" %} {% import "comments.html" as comments %} -{% block page_title %}{{ 'Post reply' if replying else 'Post comment' }}{% endblock %} - {% block style %} main{ display: grid; -- cgit v1.2.3