From c5827a3bb1a6b2eb6cfbc7d9104bd73514311246 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 21 Jul 2019 22:43:29 -0700 Subject: Add status template, use for comment deletion status --- youtube/templates/status.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 youtube/templates/status.html (limited to 'youtube/templates/status.html') diff --git a/youtube/templates/status.html b/youtube/templates/status.html new file mode 100644 index 0000000..1e18b5c --- /dev/null +++ b/youtube/templates/status.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block page_title %}{{ title if (title is defined) else 'Status'}}{% endblock %} + +{% block main %} + {{ message }} +{% endblock %} + -- cgit v1.2.3 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/status.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'youtube/templates/status.html') diff --git a/youtube/templates/status.html b/youtube/templates/status.html index 1e18b5c..901aa5b 100644 --- a/youtube/templates/status.html +++ b/youtube/templates/status.html @@ -1,7 +1,6 @@ +{% set page_title = (title if (title is defined) else 'Status') %} {% extends "base.html" %} -{% block page_title %}{{ title if (title is defined) else 'Status'}}{% endblock %} - {% block main %} {{ message }} {% endblock %} -- cgit v1.2.3