WebsiteBench / tasks /llbean /solution /site /implementation /clone /frontend /templates /search.html
Download tasks/llbean/solution/site/implementation/clone/frontend/templates/search.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 2.56 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/llbean/solution/site/implementation/clone/frontend/templates/search.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/llbean/solution/site/implementation/clone/frontend/templates/search.html
-
curl -L -o search.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/llbean/solution/site/implementation/clone/frontend/templates/search.html
2.56 kB
| {% extends "base.html" %} | |
| {% import "_macros.html" as m %} | |
| {% block title %}{% if batch.total %}Search results for "{{ query }}" | L.L.Bean{% else %}No exact results for "{{ query }}" | L.L.Bean{% endif %}{% endblock %} | |
| {% block content %} | |
| <div class="SearchResultsPage_container"> | |
| {% if batch.total or content %} | |
| <div class="Tab_list" role="tablist"> | |
| <a class="Tab_tab {% if tab != 'content' %}Tab_active{% endif %}" | |
| href="/llb/search?freeText={{ query|urlencode }}&tab=products">Products ({{ batch.total }})</a> | |
| <a class="Tab_tab {% if tab == 'content' %}Tab_active{% endif %}" | |
| href="/llb/search?freeText={{ query|urlencode }}&tab=content">Info & Stories ({{ content|length }})</a> | |
| </div> | |
| <h1 class="SearchResultsPage_title">{{ query }}</h1> | |
| {% if tab == 'content' %} | |
| <section class="SearchContent_container"> | |
| <div class="SearchContentHeader_header"><span class="ThumbnailHeader_count">{{ content|length }} Items</span></div> | |
| <ul class="ContentThumbnailList_list"> | |
| {% for entry in content %} | |
| <li class="ContentThumbnail_container"> | |
| <a href="/llb/shop/{{ entry.cat_id }}">{{ entry.name }}</a> | |
| </li> | |
| {% endfor %} | |
| </ul> | |
| </section> | |
| {% else %} | |
| <div class="CategoryPage_body"> | |
| <aside class="FilterNavigation_container"> | |
| {{ m.facet_panel(facets, selected, sort_options, '/llb/search', {'freeText': query, 'tab': 'products'}) }} | |
| </aside> | |
| <section class="SearchProducts_container"> | |
| <div class="ThumbnailHeader_header"> | |
| <h1 class="ThumbnailHeader_title">{{ query }}</h1> | |
| <span class="ThumbnailHeader_count">{{ batch.total }} Items</span> | |
| </div> | |
| {{ m.product_grid(batch.products) }} | |
| {{ m.load_more(batch, '/llb/search', { | |
| 'freeText': query, 'tab': 'products', 'sort_field': selected.sort_field, | |
| 'color': selected.color, 'brand': selected.brand, 'price': selected.price, | |
| 'sale': '1' if selected.sale else ''}) }} | |
| </section> | |
| </div> | |
| {% endif %} | |
| {% else %} | |
| <section class="NoSearchResults_container"> | |
| <h1 class="NoSearchResults_title">Sorry, we couldn't find "{{ query }}"</h1> | |
| <h2 class="NoSearchResults_subtitle">but our expert guides would love to help you find what you need.</h2> | |
| <h3 class="WebRecommendationsList_heading">Popular Items</h3> | |
| {{ m.product_grid(popular) }} | |
| </section> | |
| {% endif %} | |
| </div> | |
| {% endblock %} | |