Download tasks/capterra/environment/reference/clone/frontend/templates/search.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 8.84 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/capterra/environment/reference/clone/frontend/templates/search.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/capterra/environment/reference/clone/frontend/templates/search.html
-
curl -L -o search.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/capterra/environment/reference/clone/frontend/templates/search.html
8.84 kB
| {% extends "base.html" %} | |
| {% block content %} | |
| <section class="page-shell compact-hero"> | |
| <nav class="breadcrumbs" aria-label="Breadcrumb"><a href="/">Home</a><span aria-hidden="true">›</span><span>Software search</span></nav> | |
| <h1>Search results{% if query %} for “{{ query }}”{% endif %}</h1> | |
| <form class="wide-search" action="/software/search" method="get"> | |
| <label for="search-query">Find software</label> | |
| <div><input id="search-query" name="q" value="{{ query }}"><button type="submit" data-control-identity="search.query-submit">Search</button></div> | |
| </form> | |
| </section> | |
| <section class="page-shell results-layout" aria-live="polite" data-state="{{ state }}"> | |
| <aside class="filter-panel"> | |
| <h2>Filter results</h2> | |
| <label><input type="checkbox" checked> Task management</label> | |
| <label><input type="checkbox"> Collaboration</label> | |
| <label><input type="checkbox"> Free trial</label> | |
| </aside> | |
| <div class="results-panel"> | |
| {% if state == "loading" %} | |
| <div class="state-card loading-state"> | |
| <span class="spinner" aria-hidden="true"></span> | |
| <h2>Finding software…</h2> | |
| <p>We’re matching your search with relevant software.</p> | |
| <a class="text-link" href="/software/search?q=Notion" data-control-identity="search.retry">Show results</a> | |
| </div> | |
| {% elif state == "error" %} | |
| <div class="state-card error-state" role="alert"> | |
| <span class="state-icon" aria-hidden="true">!</span> | |
| <h2>We could not load results</h2> | |
| <p>Something went wrong while loading results. Please try again.</p> | |
| <a class="primary-button" href="/software/search?q=Notion" data-control-identity="search.retry">Try again</a> | |
| </div> | |
| {% elif state == "empty" or not has_results %} | |
| <div class="state-card"> | |
| <span class="state-icon" aria-hidden="true">⚲</span> | |
| <h2>No matching software</h2> | |
| <p>Try searching for Notion instead.</p> | |
| <a class="primary-button" href="/software/search?q=Notion" data-control-identity="search.empty-recovery">Search Notion</a> | |
| </div> | |
| {% else %} | |
| {% set first = results[0] %} | |
| <div class="result-summary"><strong>{{ results | length }} Products</strong><span>matching your search</span></div> | |
| <article class="result-card"> | |
| {% if first.id == "186596" %} | |
| <img class="product-logo large" src="{{ assets_base }}/notion-profile/notion-product-logo-128.png" alt="Notion logo" width="64" height="64"> | |
| {% elif first.logo_asset %} | |
| <img class="product-logo large" src="{{ first.logo_asset }}" alt="{{ first.name }} logo" width="64" height="64" loading="lazy"> | |
| {% else %} | |
| <span class="result-monogram" aria-hidden="true">{{ first.name[0] }}</span> | |
| {% endif %} | |
| <div class="result-copy"> | |
| <h2><a href="/p/{{ first.id }}/{{ first.url_slug }}/"{% if first.id == "186596" %} data-control-identity="search.notion-profile"{% endif %}>{{ first.name }}</a></h2> | |
| <p class="rating" aria-label="Rating {{ "%.1f" | format(first.rating) }} out of 5"><span class="stars rating-{{ first.rating | string | replace('.', '-') }}" aria-hidden="true"></span> <b>{{ "%.1f" | format(first.rating) }}</b> ({{ first.local_review_count }})</p> | |
| <p>{{ first.description }}</p> | |
| {% if first.sub_ratings %} | |
| <dl class="score-strip"> | |
| {% if first.sub_ratings.ease_of_use %}<div><dt>Ease of Use</dt><dd>{{ first.sub_ratings.ease_of_use }}</dd></div>{% endif %} | |
| {% if first.sub_ratings.customer_service %}<div><dt>Customer Service</dt><dd>{{ first.sub_ratings.customer_service }}</dd></div>{% endif %} | |
| {% if first.sub_ratings.features %}<div><dt>Features</dt><dd>{{ first.sub_ratings.features }}</dd></div>{% endif %} | |
| {% if first.sub_ratings.value_for_money %}<div><dt>Value for Money</dt><dd>{{ first.sub_ratings.value_for_money }}</dd></div>{% endif %} | |
| </dl> | |
| {% endif %} | |
| {% if first.pricing %} | |
| <p class="price-line">Starting from: <b>{{ first.pricing }}</b> · Pricing details provided by the vendor.</p> | |
| {% endif %} | |
| </div> | |
| <div class="result-actions"> | |
| <a class="primary-button" href="/p/{{ first.id }}/{{ first.url_slug }}/">View profile</a> | |
| <a class="secondary-button" href="/p/{{ first.id }}/{{ first.url_slug }}/reviews/"{% if first.id == "186596" %} data-control-identity="search.notion-reviews"{% endif %}>View all reviews</a> | |
| </div> | |
| </article> | |
| {% if similar_products %} | |
| <section class="similar-products" aria-labelledby="similar-title"> | |
| <h2 id="similar-title">Products similar to {{ first.name }}</h2> | |
| <div class="similar-grid"> | |
| {% for product in similar_products %} | |
| <article> | |
| {% if product.logo_asset %} | |
| <img class="product-logo" src="{{ product.logo_asset }}" alt="" width="48" height="48"> | |
| {% else %} | |
| <span class="result-monogram" aria-hidden="true">{{ product.name[0] }}</span> | |
| {% endif %} | |
| <strong><a class="text-link" href="/p/{{ product.id }}/{{ product.url_slug }}/">{{ product.name }}</a></strong> | |
| <p class="rating"><span class="stars rating-{{ product.rating | string | replace('.', '-') }}" aria-hidden="true"></span> {{ "%.1f" | format(product.rating) }}</p> | |
| <p class="muted">Starting from {{ product.pricing or "Contact vendor" }} · {{ product.local_review_count }} reviews</p> | |
| <a class="secondary-button" href="/p/{{ product.id }}/{{ product.url_slug }}/">View details</a> | |
| </article> | |
| {% endfor %} | |
| </div> | |
| </section> | |
| {% endif %} | |
| <div class="extended-results featured-related-results" aria-label="More products like this search"> | |
| {% for product in results[1:3] %} | |
| <article class="result-card compact-result"> | |
| {% if product.logo_asset %} | |
| <img class="product-logo" src="{{ product.logo_asset }}" alt="" width="48" height="48"> | |
| {% else %} | |
| <span class="result-monogram" aria-hidden="true">{{ product.name[0] }}</span> | |
| {% endif %} | |
| <div class="result-copy"> | |
| <h2><a class="text-link" href="/p/{{ product.id }}/{{ product.url_slug }}/">{{ product.name }}</a></h2> | |
| <p class="rating"><span class="stars rating-{{ product.rating | string | replace('.', '-') }}" aria-hidden="true"></span> <b>{{ "%.1f" | format(product.rating) }}</b> ({{ product.local_review_count }})</p> | |
| <p>{{ product.description }}</p> | |
| </div> | |
| <div class="result-actions"> | |
| <a class="secondary-button" href="/p/{{ product.id }}/{{ product.url_slug }}/">View profile</a> | |
| </div> | |
| </article> | |
| {% endfor %} | |
| </div> | |
| <section class="search-advisor-card"> | |
| <h2>Can't find what you're searching for?</h2> | |
| <p>Browse the software categories, or return to the Notion profile.</p> | |
| <label class="boundary-email-field">Email Address <input type="email" autocomplete="email" placeholder="name@example.com"></label> | |
| <button class="primary-button" type="button" data-effect-boundary="unavailable" data-control-identity="search.connect-now">Connect now</button> | |
| <small class="boundary-terms">Advisor requests and email delivery are unavailable from this page.</small> | |
| </section> | |
| <div class="extended-results" aria-label="Additional software results"> | |
| {% for product in results[3:] %} | |
| <article class="result-card compact-result"> | |
| {% if product.logo_asset %} | |
| <img class="product-logo" src="{{ product.logo_asset }}" alt="" width="48" height="48"> | |
| {% else %} | |
| <span class="result-monogram" aria-hidden="true">{{ product.name[0] }}</span> | |
| {% endif %} | |
| <div class="result-copy"> | |
| <h2><a class="text-link" href="/p/{{ product.id }}/{{ product.url_slug }}/">{{ product.name }}</a></h2> | |
| <p class="rating"><span class="stars rating-{{ product.rating | string | replace('.', '-') }}" aria-hidden="true"></span> <b>{{ "%.1f" | format(product.rating) }}</b> ({{ product.local_review_count }})</p> | |
| <p>{{ product.description }}</p> | |
| {% if product.pricing %} | |
| <p class="price-line">Starting from: <b>{{ product.pricing }}</b> · Pricing details provided by the vendor.</p> | |
| {% endif %} | |
| </div> | |
| <div class="result-actions"> | |
| <a class="secondary-button" href="/p/{{ product.id }}/{{ product.url_slug }}/">View profile</a> | |
| </div> | |
| </article> | |
| {% endfor %} | |
| </div> | |
| {% endif %} | |
| </div> | |
| </section> | |
| {% endblock %} | |