WebsiteBench / tasks /eventbrite /environment /reference /clone /frontend /templates /directory.html
Download tasks/eventbrite/environment/reference/clone/frontend/templates/directory.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 13.4 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/eventbrite/environment/reference/clone/frontend/templates/directory.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/eventbrite/environment/reference/clone/frontend/templates/directory.html
-
curl -L -o directory.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/eventbrite/environment/reference/clone/frontend/templates/directory.html
13.4 kB
| {% extends "base.html" %} | |
| {% block page_css %}<link rel="stylesheet" href="/static/css/directory-current.css"> | |
| <link rel="stylesheet" href="/static/css/source-cookie.css">{% endblock %} | |
| {% block content %} | |
| {% set price_word = 'Free ' if price == 'free' else ('Paid ' if price == 'paid' else '') %} | |
| <nav class="breadcrumbs" aria-label="Breadcrumb"> | |
| <a href="/">Home</a> / | |
| <a href="/d/{{ national_place }}/all--events/">United States</a> / | |
| {% if city_browse %}<a href="/ttd/{{ place.slug }}/">Things to do in {{ breadcrumb_city }}</a> / | |
| <span>Events in {{ breadcrumb_city }}</span> | |
| {% else %}<a href="/d/{{ place.slug }}/all--events/">{{ breadcrumb_city }}</a> / | |
| <span>{{ price_word }}Events</span>{% endif %} | |
| </nav> | |
| {% if city_browse %} | |
| <section class="city-browse-hero" aria-labelledby="city-browse-title"> | |
| <img src="/static/assets/source-current/2026-08-10/page-families/directory-los-angeles/los-angeles-directory-hero.webp" alt="" width="1402" height="378"> | |
| <span class="city-browse-hero__shade" aria-hidden="true"></span> | |
| <div class="city-browse-hero__copy"> | |
| <h1 id="city-browse-title"><span>Best events in</span>{{ breadcrumb_city }}</h1> | |
| <p>L.A. is a massive mix of unique neighborhoods. Head downtown for The Broad and lunch at Grand Central Market. Sneakerheads should hit Fairfax between Melrose & Beverly Blvd. Drink at a speakeasy. Korean BBQ and ramen are musts. Skip the star tour, see the brilliance of Frank Lloyd Wright, Gehry, and Case Study mid-century masterpieces. Check out the latest in our event listings.</p> | |
| <a class="city-browse-location" href="/?state=location-overlay"><span aria-hidden="true">●</span> {{ breadcrumb_city }} <span aria-hidden="true">⌄</span></a> | |
| </div> | |
| </section> | |
| <section class="city-neighborhoods" aria-labelledby="city-neighborhoods-title"> | |
| <h2 id="city-neighborhoods-title">Explore by neighborhood</h2> | |
| <nav aria-label="Neighborhoods"> | |
| <a href="{{ current_path }}" aria-current="page">All</a> | |
| <a href="{{ current_path }}?neighborhood=hollywood">Hollywood</a> | |
| <a href="{{ current_path }}?neighborhood=downtown">Downtown LA</a> | |
| <a href="{{ current_path }}?neighborhood=south-park">South park</a> | |
| </nav> | |
| <ol class="city-neighborhood-cards"> | |
| {% for event in results[:4] %} | |
| {% set occurrence = event.occurrences[event.default_occurrence] %} | |
| <li> | |
| <a href="/e/{{ event.slug }}"><img src="{{ event.hero }}" alt="" width="232" height="130"></a> | |
| <h3><a href="/e/{{ event.slug }}">{{ event.title }}</a></h3> | |
| <p class="event-when">{{ occurrence.label }}</p> | |
| <p>{{ event.venue }}</p> | |
| <p class="price">{{ event.price_label }}</p> | |
| </li> | |
| {% endfor %} | |
| </ol> | |
| </section> | |
| {% include "partials/source_cookie_banner.html" %} | |
| {% endif %} | |
| {% if not city_browse %} | |
| <h1 class="directory-title">{{ price_word }}Events and Things to do in {{ city_label }}</h1> | |
| <p class="directory-sub">Search for something you love or check out popular events in your area.</p> | |
| <div class="directory-mobile-actions"> | |
| <button type="button" class="eds-btn eds-btn--ghost" data-filter-dialog-open aria-haspopup="dialog">Filters{% if chips %} ({{ chips | length }}){% endif %}</button> | |
| <a class="eds-btn eds-btn--ghost" href="{{ show_map_url }}">Map</a> | |
| </div> | |
| {% endif %} | |
| <div class="directory-layout" data-state="{{ state }}"> | |
| <dialog class="directory-filter-dialog" data-filter-dialog open aria-labelledby="directory-filter-title"> | |
| <div class="directory-filter-dialog__head"><h2 id="directory-filter-title">Filters</h2><button type="button" data-filter-dialog-close aria-label="Close filters">×</button></div> | |
| <form class="directory-filters" method="get" action="{{ filter_action }}" aria-label="Filters"> | |
| <h2 class="directory-filter-desktop-title">Filters</h2> | |
| {% if q %}<input type="hidden" name="q" value="{{ q }}">{% endif %} | |
| <fieldset> | |
| <legend>Category</legend> | |
| {% for option in categories[:filter_category_limit] %} | |
| <label><input type="checkbox" name="category" value="{{ option.slug }}" | |
| {% if option.slug in selected.categories %}checked{% endif %}> {{ option.label }}</label> | |
| {% endfor %} | |
| {% if categories | length > filter_category_limit %} | |
| <a class="filter-more" href="{{ more_categories_url }}">View more</a> | |
| {% endif %} | |
| </fieldset> | |
| <fieldset> | |
| <legend>Date</legend> | |
| {% for value, label in [('today','Today'),('tomorrow','Tomorrow'),('this-weekend','This weekend')] %} | |
| <label><input type="radio" name="dates" value="{{ value }}" | |
| {% if selected.dates == value %}checked{% endif %}> {{ label }}</label> | |
| {% endfor %} | |
| <label class="filter-date">Pick a date… | |
| <input type="date" name="on" value="{{ selected.on }}"> | |
| </label> | |
| </fieldset> | |
| <fieldset> | |
| <legend>Neighborhood</legend> | |
| {% for area in neighborhoods %} | |
| <label><input type="checkbox" name="neighborhood" value="{{ area.slug }}" | |
| {% if area.slug in selected.neighborhoods %}checked{% endif %}> {{ area.label }}</label> | |
| {% else %} | |
| <p class="filter-note">We don’t have neighborhoods mapped for {{ place.label }} yet.</p> | |
| {% endfor %} | |
| </fieldset> | |
| <fieldset> | |
| <legend>Price</legend> | |
| {% for value, label in [('', 'Any price'),('free','Free'),('paid','Paid')] %} | |
| <label><input type="radio" name="price" value="{{ value }}" | |
| {% if price == value %}checked{% endif %}> {{ label }}</label> | |
| {% endfor %} | |
| </fieldset> | |
| <fieldset> | |
| <legend>Format</legend> | |
| {% for value, label in [('class','Class'),('conference','Conference'),('festival','Festival'),('party','Party')] %} | |
| <label><input type="checkbox" name="format" value="{{ value }}" | |
| {% if value in selected.formats %}checked{% endif %}> {{ label }}</label> | |
| {% endfor %} | |
| </fieldset> | |
| <fieldset> | |
| <legend>Language</legend> | |
| {% for value, label in [('en','English'),('de','German'),('es','Spanish'),('fr','French')] %} | |
| <label><input type="checkbox" name="lang" value="{{ value }}" | |
| {% if value in selected.languages %}checked{% endif %}> {{ label }}</label> | |
| {% endfor %} | |
| </fieldset> | |
| <fieldset> | |
| <legend>Currency</legend> | |
| {% for value, label in [('usd','U.S. Dollar'),('cad','Canadian Dollar'),('eur','Euro'),('gbp','British Pound')] %} | |
| <label><input type="radio" name="currency" value="{{ value }}" | |
| {% if selected.currency == value %}checked{% endif %}> {{ label }}</label> | |
| {% endfor %} | |
| </fieldset> | |
| <fieldset> | |
| <legend>Sort by</legend> | |
| {% for value, label in [('recommended','Recommended'),('date','Date'),('price','Price: low to high'),('price-desc','Price: high to low')] %} | |
| <label><input type="radio" name="sort" value="{{ value }}" {% if selected_sort == value %}checked{% endif %}> {{ label }}</label> | |
| {% endfor %} | |
| </fieldset> | |
| <button type="submit" class="cta filter-apply">Apply filters</button> | |
| </form> | |
| </dialog> | |
| <section class="directory-results" aria-live="polite"> | |
| <div class="directory-result-toolbar"> | |
| <span>{{ total }} event{{ '' if total == 1 else 's' }}</span> | |
| <span>Sorted by {{ {'recommended':'recommended','date':'date','price':'price: low to high','price-desc':'price: high to low'}[selected_sort] }}</span> | |
| </div> | |
| {% if chips %} | |
| <div class="filter-summary"> | |
| <span>{{ chips | length }} filter{{ '' if chips | length == 1 else 's' }} applied</span> | |
| {% for chip in chips %} | |
| <a class="chip{% if chip.kind == 'free' %} chip-free{% endif %}" href="{{ chip.remove_url }}">{{ chip.label }} ×</a> | |
| {% endfor %} | |
| <a class="clear-all" href="/d/{{ place.slug }}/all--events/">Clear All</a> | |
| </div> | |
| {% endif %} | |
| {% if state == 'loading' %} | |
| <div class="state-panel state-loading" role="status"> | |
| <span class="spinner" aria-hidden="true"></span> | |
| <p>Loading free events…</p> | |
| <p><a href="{{ directory_url }}">Retry loading these events</a></p> | |
| </div> | |
| {% elif state == 'empty' %} | |
| <div class="state-panel state-empty"> | |
| <h2>No free events matched</h2> | |
| <p>Try changing your filters or searching a nearby area.</p> | |
| <p><a href="/d/{{ place.slug }}/all--events/">Clear filters</a></p> | |
| </div> | |
| {% elif state == 'error' %} | |
| <div class="state-panel state-error" role="alert"> | |
| <h2>We couldn’t load these events</h2> | |
| <p>Something went wrong. Please try loading the events again.</p> | |
| <p><a href="{{ directory_url }}">Try again</a></p> | |
| </div> | |
| {% else %} | |
| {% if broadened_to %} | |
| <p class="broadened-note">We don’t have events in {{ place.label }} yet — showing what’s on around {{ broadened_to.label }}.</p> | |
| {% endif %} | |
| <ol class="result-list"> | |
| {% for event in results %} | |
| {% set occurrence = event.occurrences[event.default_occurrence] %} | |
| <li class="result-card"> | |
| <a class="card-link" href="/e/{{ event.slug }}" tabindex="-1" aria-hidden="true"> | |
| <img src="{{ event.hero }}" alt="" width="220" height="110" loading="{% if loop.index <= 6 %}eager{% else %}lazy{% endif %}"> | |
| </a> | |
| <div class="result-copy"> | |
| {% if badges[loop.index0] %}<span class="event-badge">{{ badges[loop.index0] }}</span>{% endif %} | |
| <h3><a class="card-link" href="/e/{{ event.slug }}">{{ event.title }}</a></h3> | |
| <p class="event-when">{{ occurrence.label }}</p> | |
| <p>{{ event.city }} · {{ event.venue }}</p> | |
| <p class="price">{{ event.price_label }}</p> | |
| </div> | |
| <div class="result-actions" aria-label="Event actions"> | |
| <a href="/e/{{ event.slug }}" aria-label="Open {{ event.title }}">↗</a> | |
| <form class="save-form" method="post" action="/e/{{ event.slug }}/{{ 'unsave' if event.id in saved_ids else 'save' }}"> | |
| <input type="hidden" name="csrf" value="{{ csrf }}"> | |
| <input type="hidden" name="next" value="{{ current_path }}"> | |
| <button type="submit" aria-pressed="{{ 'true' if event.id in saved_ids else 'false' }}" | |
| aria-label="{{ 'Remove' if event.id in saved_ids else 'Save' }} {{ event.title }}">{{ '♥' if event.id in saved_ids else '♡' }}</button> | |
| </form> | |
| </div> | |
| </li> | |
| {% endfor %} | |
| </ol> | |
| <nav class="pagination" aria-label="Pagination"> | |
| {% if page > 1 %}<a class="page-prev" href="{{ page_url(page - 1) }}" rel="prev">‹</a>{% endif %} | |
| <span>{{ page }} of {{ page_count }}</span> | |
| {% if page < page_count %}<a class="page-next" href="{{ page_url(page + 1) }}" rel="next">›</a>{% endif %} | |
| </nav> | |
| {% endif %} | |
| </section> | |
| <aside class="directory-map{% if show_map %} is-active{% endif %}" aria-label="Map preview" | |
| data-directory-map tabindex="-1" {% if show_map %}role="dialog" aria-modal="true"{% endif %}> | |
| <img src="{{ placeholder_map }}" alt="Map of the selected area" width="450" height="600"> | |
| <button class="map-button" type="button" data-map-toggle | |
| aria-expanded="{{ 'true' if show_map else 'false' }}">{{ 'Hide map' if show_map else 'View map' }}</button> | |
| </aside> | |
| </div> | |
| <section class="directory-aftercare"> | |
| {% if recommendations %} | |
| <section class="directory-recommendations" aria-labelledby="directory-recommendations-title"> | |
| <h2 id="directory-recommendations-title">Based on your most recent searches</h2> | |
| <ol class="directory-recommendation-grid"> | |
| {% for card in recommendations %} | |
| <li> | |
| <a class="directory-recommendation-image" href="/search?q={{ card.title | urlencode }}"> | |
| <img src="{{ card.image }}" width="320" height="160" alt="" loading="lazy"> | |
| </a> | |
| <p class="event-badge">Promoted</p> | |
| <h3><a href="/search?q={{ card.title | urlencode }}">{{ card.title }}</a></h3> | |
| <p class="event-when">{{ card.when }}</p> | |
| <p>{{ card.where }}</p> | |
| <p class="price">{{ card.price }}</p> | |
| </li> | |
| {% endfor %} | |
| </ol> | |
| </section> | |
| {% endif %} | |
| <h2>Things to do around {{ breadcrumb_city }}</h2> | |
| <div class="city-chip-list"> | |
| {% for city in nearby %} | |
| <a href="/d/{{ city.slug }}/all--events/">Things to do in {{ city.label }} ↗</a> | |
| {% endfor %} | |
| </div> | |
| {% if trends %} | |
| <h2>Trends in {{ breadcrumb_city }}</h2> | |
| <ol class="trend-grid"> | |
| {% for trend in trends %} | |
| <li><a href="/d/{{ place.slug }}/all--events/?q={{ trend | urlencode }}">{{ trend }}</a></li> | |
| {% endfor %} | |
| </ol> | |
| {% endif %} | |
| <h2>Frequently asked questions about {{ breadcrumb_city }}</h2> | |
| <details><summary>What are the best free events to attend?</summary><p>Browse popular events above and use filters to find one that fits your plans.</p></details> | |
| <details><summary>Which events are currently trending?</summary><p>Explore the trending topics and popular categories in your area.</p></details> | |
| <details><summary>Which free events are coming up?</summary><p>Use the dates shown in the event list to plan your next outing.</p></details> | |
| </section> | |
| {% endblock %} | |
| {% block page_js %}<script src="/static/js/directory.js"></script> | |
| {% if city_browse %}<script src="/static/js/event-cookie.js"></script>{% endif %}{% endblock %} | |