From a4e01da27c08e43a67b2618ad1e71c1f8f86d5cd Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 19 Sep 2024 15:33:11 +0530 Subject: youtube fronend --- youtube/templates/search.html | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 youtube/templates/search.html (limited to 'youtube/templates/search.html') diff --git a/youtube/templates/search.html b/youtube/templates/search.html new file mode 100644 index 0000000..af87c90 --- /dev/null +++ b/youtube/templates/search.html @@ -0,0 +1,34 @@ +{% set search_box_value = query %} +{% set page_title = query + ' - Search' %} +{% extends "base.html" %} +{% import "common_elements.html" as common_elements %} +{% block style %} + + +{% endblock style %} + +{% block main %} +
+
Approximately {{ '{:,}'.format(estimated_results) }} results ({{ '{:,}'.format(estimated_pages) }} pages)
+ {% if corrections['type'] == 'showing_results_for' %} +
Showing results for {{ common_elements.text_runs(corrections['corrected_query_text']) }}
+
Search instead for {{ corrections['original_query_text'] }}
+ {% elif corrections['type'] == 'did_you_mean' %} +
Did you mean {{ common_elements.text_runs(corrections['corrected_query_text']) }}
+ {% endif %} +
+ + +
+ {% for info in results %} + {{ common_elements.item(info, description=true) }} + {% endfor %} +
+
+ + +{% endblock main %} -- cgit v1.2.3-59-g8ed1b