aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/search.html
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-12-14 23:44:29 -0500
committerJesús <heckyel@hyperbola.info>2020-12-14 23:44:29 -0500
commit7a765dc664d20f966e4e52abac1f5372045e166c (patch)
tree641f4de8cc11fd9f3234558f957b7bb6b8faf45b /youtube/templates/search.html
parent9d0be82e7425641a58a551fefce26385dee2f9d3 (diff)
downloadyt-local-7a765dc664d20f966e4e52abac1f5372045e166c.tar.lz
yt-local-7a765dc664d20f966e4e52abac1f5372045e166c.tar.xz
yt-local-7a765dc664d20f966e4e52abac1f5372045e166c.zip
Change general design theme
Diffstat (limited to 'youtube/templates/search.html')
-rw-r--r--youtube/templates/search.html61
1 files changed, 24 insertions, 37 deletions
diff --git a/youtube/templates/search.html b/youtube/templates/search.html
index 8b803e7..e742099 100644
--- a/youtube/templates/search.html
+++ b/youtube/templates/search.html
@@ -3,44 +3,31 @@
{% extends "base.html" %}
{% import "common_elements.html" as common_elements %}
{% block style %}
- main > * {
- max-width: 800px;
- margin: auto;
- }
- #result-info{
- margin-top: 10px;
- margin-bottom: 10px;
- padding-left: 10px;
- padding-right: 10px;
- }
- #number-of-results{
- font-weight:bold;
- }
- .item-list{
- padding-left: 10px;
- padding-right: 10px;
- }
- .badge{
- background-color:#cccccc;
- }
+ <link href="/youtube.com/static/search.css" rel="stylesheet">
{% endblock style %}
{% block main %}
- <div id="result-info">
- <div id="number-of-results">Approximately {{ '{:,}'.format(estimated_results) }} results ({{ '{:,}'.format(estimated_pages) }} pages)</div>
-{% if corrections['type'] == 'showing_results_for' %}
- <div>Showing results for <a>{{ common_elements.text_runs(corrections['corrected_query_text']) }}</a></div>
- <div>Search instead for <a href="{{ corrections['original_query_url'] }}">{{ corrections['original_query_text'] }}</a></div>
-{% elif corrections['type'] == 'did_you_mean' %}
- <div>Did you mean <a href="{{ corrections['corrected_query_url'] }}">{{ common_elements.text_runs(corrections['corrected_query_text']) }}</a></div>
-{% endif %}
- </div>
- <div class="item-list">
- {% for info in results %}
- {{ common_elements.item(info, description=true) }}
- {% endfor %}
- </div>
- <nav class="page-button-row">
- {{ common_elements.page_buttons(estimated_pages, '/https://www.youtube.com/search', parameters_dictionary) }}
- </nav>
+ <div class="result-info" id="result-info">
+ <div id="number-of-results">Approximately {{ '{:,}'.format(estimated_results) }} results ({{ '{:,}'.format(estimated_pages) }} pages)</div>
+ {% if corrections['type'] == 'showing_results_for' %}
+ <div>Showing results for <a>{{ common_elements.text_runs(corrections['corrected_query_text']) }}</a></div>
+ <div>Search instead for <a href="{{ corrections['original_query_url'] }}">{{ corrections['original_query_text'] }}</a></div>
+ {% elif corrections['type'] == 'did_you_mean' %}
+ <div>Did you mean <a href="{{ corrections['corrected_query_url'] }}">{{ common_elements.text_runs(corrections['corrected_query_text']) }}</a></div>
+ {% endif %}
+ </div>
+
+ <!-- video item -->
+ <div class="video-container">
+ {% for info in results %}
+ {{ common_elements.item(info, description=true) }}
+ {% endfor %}
+ </div>
+ <hr/>
+ <!-- /video item -->
+ <footer class="pagination-container">
+ <nav class="pagination-list">
+ {{ common_elements.page_buttons(estimated_pages, '/https://www.youtube.com/search', parameters_dictionary) }}
+ </nav>
+ </footer>
{% endblock main %}