Download tasks/imdb/solution/site/implementation/clone/frontend/templates/title.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 16.7 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/imdb/solution/site/implementation/clone/frontend/templates/title.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/imdb/solution/site/implementation/clone/frontend/templates/title.html
-
curl -L -o title.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/imdb/solution/site/implementation/clone/frontend/templates/title.html
16.7 kB
| {% extends "base.html" %} | |
| {% block content %} | |
| <article class="title-page" data-title-id="{{ title.id }}" data-recent-entry | |
| data-recent-kind="title" data-recent-id="{{ title.id }}" | |
| data-recent-title="{{ title.title }}" data-recent-href="/title/{{ title.id }}/" | |
| data-recent-poster="{{ title.poster }}"> | |
| <header class="title-hero"> | |
| <div class="title-heading"> | |
| {% if title.title_type == 'episode' and title.series_id %}<p class="title-parent"><a href="/title/{{ title.series_id }}/">{{ title.series_title }}</a> · S{{ title.season_number }}.E{{ title.episode_number }}</p>{% endif %} | |
| <h1>{{ title.title }}</h1> | |
| <ul class="title-facts"> | |
| <li>{{ title.year }}</li> | |
| <li>{{ title.cert }}</li> | |
| <li>{{ title.runtime }}</li> | |
| </ul> | |
| </div> | |
| <div class="title-scores"> | |
| <div class="score-block"> | |
| <span class="score-label">IMDb RATING · READ ONLY</span> | |
| <p class="score-value"> | |
| <span class="star-glyph" aria-hidden="true">★</span> | |
| <strong>{{ title.imdb_rating }}</strong>{% if title.imdb_rating != 'Not rated' %}<span class="score-out">/10</span>{% endif %} | |
| </p> | |
| <span class="score-votes">{{ title.votes }}</span> | |
| </div> | |
| <div class="score-block"> | |
| <span class="score-label">YOUR RATING</span> | |
| {% if signed_in %} | |
| {% if user_rating %} | |
| <button class="rate-button rated" type="button" data-open-dialog="rate-dialog"> | |
| <span class="star-glyph rated-star" aria-hidden="true">★</span> | |
| <strong>{{ user_rating }}</strong><span class="score-out">/10</span> | |
| </button> | |
| {% else %} | |
| <button class="rate-button" type="button" data-open-dialog="rate-dialog"> | |
| <span class="star-glyph outline" aria-hidden="true">☆</span> Rate | |
| </button> | |
| {% endif %} | |
| <span class="score-hint">{{ local_rating_disclosure }}</span> | |
| {% else %} | |
| <a class="rate-button" href="{{ signin_here }}"> | |
| <span class="star-glyph outline" aria-hidden="true">☆</span> Rate | |
| </a> | |
| <span class="score-hint">Sign in to rate</span> | |
| {% endif %} | |
| </div> | |
| <div class="score-block"> | |
| <span class="score-label">POPULARITY</span> | |
| <p class="score-value"><strong>{{ title.popularity }}</strong></p> | |
| </div> | |
| </div> | |
| </header> | |
| {% if watchlist_flash == "added" %} | |
| <p class="flash flash-ok" role="status">Added to your Watchlist. This change is stored for this local session only.</p> | |
| {% elif watchlist_flash == "exists" %} | |
| <p class="flash flash-info" role="status">Already in your Watchlist — nothing duplicated.</p> | |
| {% endif %} | |
| {% if rating_flash == "saved" %} | |
| <p class="flash flash-ok" role="status">Rating saved.</p> | |
| {% elif rating_flash == "removed" %} | |
| <p class="flash flash-info" role="status">Rating removed. The title is unrated again.</p> | |
| {% endif %} | |
| <div class="title-body"> | |
| <img class="title-poster" src="{{ title.poster }}" alt="{{ title.title }} poster" width="380" height="562"> | |
| <div class="title-main"> | |
| <a class="title-backdrop" href="/title/{{ title.id }}/mediaindex/" aria-label="Open {{ title.title }} media"> | |
| <img src="{{ title.poster if editorial.directory_media else assets_base ~ '/' ~ editorial.asset_group ~ '/rich-hero.jpg' }}" alt="{{ title.title }} featured video still" width="1000" height="563"> | |
| <span><span class="play-button" aria-hidden="true">▶</span> Featured media</span> | |
| </a> | |
| <ul class="genre-chips"> | |
| {% for genre in title.genres %}<li>{{ genre }}</li>{% endfor %} | |
| </ul> | |
| <p class="title-plot">{{ title.plot }}</p> | |
| <dl class="credit-list"> | |
| {% if title.catalog_credit %} | |
| <div><dt>Credits</dt><dd>{{ title.catalog_credit }}</dd></div> | |
| {% else %} | |
| <div><dt>Director</dt><dd>{{ title.director }}</dd></div> | |
| <div><dt>Writers</dt><dd>{{ title.writers }}</dd></div> | |
| <div><dt>Stars</dt><dd>{{ title.stars }}</dd></div> | |
| {% endif %} | |
| </dl> | |
| <p class="title-meta"> | |
| <span class="metascore">{{ title.metascore }}</span> Metascore · | |
| {{ title.top_rank }} | |
| </p> | |
| </div> | |
| <aside class="title-actions"> | |
| <div class="watchlist-split{% if in_watchlist %} in-watchlist{% endif %}"> | |
| <form class="watchlist-form" action="{{ '/watchlist/remove' if in_watchlist else '/watchlist/add' }}" method="post" data-submit-state> | |
| <input type="hidden" name="csrf" value="{{ csrf }}"> | |
| <input type="hidden" name="title_id" value="{{ title.id }}"> | |
| <input type="hidden" name="next" value="/title/{{ title.id }}/"> | |
| {% if signed_in %}<input type="hidden" name="owner" value="{{ account.id }}">{% endif %} | |
| {% if in_watchlist %} | |
| <button class="watchlist-button added" type="submit" aria-pressed="true"> | |
| <span aria-hidden="true">✓</span> In Watchlist | |
| </button> | |
| {% else %} | |
| <button class="watchlist-button" type="submit"> | |
| <span aria-hidden="true">+</span> Watchlist | |
| </button> | |
| {% endif %} | |
| </form> | |
| <button class="watchlist-chevron" type="button" aria-haspopup="menu" | |
| aria-expanded="false" aria-controls="watchlist-menu" | |
| aria-label="More Watchlist options"> | |
| <span class="chevron-glyph" aria-hidden="true">▾</span> | |
| </button> | |
| <div id="watchlist-menu" class="watchlist-menu" role="menu" hidden> | |
| {% if signed_in %} | |
| {% if user_lists %} | |
| {% for user_list in user_lists %} | |
| <form action="/list/{{ user_list.id }}/add" method="post" role="none"> | |
| <input type="hidden" name="csrf" value="{{ csrf }}"> | |
| <input type="hidden" name="title_id" value="{{ title.id }}"> | |
| <button class="menu-item" type="submit" role="menuitem"> | |
| Add to {{ user_list.name }} | |
| </button> | |
| </form> | |
| {% endfor %} | |
| {% else %} | |
| <p class="menu-empty" role="none">No custom lists yet.</p> | |
| {% endif %} | |
| <a class="menu-item" href="/list/create/" role="menuitem">Create new list</a> | |
| <a class="menu-item" href="/list/watchlist/" role="menuitem">View Watchlist</a> | |
| {% else %} | |
| <a class="menu-item" href="{{ signin_here }}" role="menuitem">Sign in to add to a list</a> | |
| {% endif %} | |
| </div> | |
| </div> | |
| <p class="watchlist-count">Added by {{ title.watchlist_count }} users</p> | |
| </aside> | |
| </div> | |
| <section id="rate-dialog" class="rate-dialog" role="dialog" aria-modal="true" | |
| aria-labelledby="rate-dialog-title" data-state="{{ rating_dialog_state }}" | |
| {% if rating_dialog_state not in ("validation",) %}hidden{% endif %}> | |
| <div class="rate-dialog-card"> | |
| <button class="dialog-close" type="button" aria-label="Close rating dialog">×</button> | |
| <span class="dialog-kicker">RATE THIS</span> | |
| <h2 id="rate-dialog-title">{{ title.title }}</h2> | |
| {% if rating_errors %} | |
| <ul class="form-errors" role="alert"> | |
| {% for error in rating_errors %}<li>{{ error }}</li>{% endfor %} | |
| </ul> | |
| {% endif %} | |
| {% if signed_in %} | |
| <form class="rate-form" action="/title/{{ title.id }}/rate" method="post"> | |
| <input type="hidden" name="csrf" value="{{ csrf }}"> | |
| <div class="star-row" role="radiogroup" aria-label="Rate 1 to 10"> | |
| {% for value in range(1, 11) %} | |
| <label class="star-option{% if user_rating and value <= user_rating %} filled{% endif %}"> | |
| <input type="radio" name="rating" value="{{ value }}" | |
| {% if user_rating == value %}checked{% endif %}> | |
| <span class="star-glyph" aria-hidden="true">★</span> | |
| <span class="sr-only">{{ value }}</span> | |
| </label> | |
| {% endfor %} | |
| </div> | |
| <button class="button-primary rate-submit" type="submit">Rate</button> | |
| </form> | |
| {% if user_rating %} | |
| <form class="rate-remove-form" action="/title/{{ title.id }}/rate/remove" method="post"> | |
| <input type="hidden" name="csrf" value="{{ csrf }}"> | |
| <button class="remove-rating" type="submit">Remove rating</button> | |
| </form> | |
| {% endif %} | |
| {% else %} | |
| <p class="dialog-signin">Sign in to rate this title.</p> | |
| <a class="button-primary" href="{{ signin_here }}">Sign in</a> | |
| {% endif %} | |
| </div> | |
| </section> | |
| {% if not signed_in %} | |
| <section class="signin-banner"> | |
| <p>Sign in to rate and Watchlist for personalized recommendations</p> | |
| <a class="button-secondary" href="{{ signin_here }}">Sign in</a> | |
| </section> | |
| {% endif %} | |
| <section class="title-summary-strip" aria-label="Reviews and awards"> | |
| <div><strong>{{ editorial.user_review_count }}</strong><span><a href="/title/{{ title.id }}/reviews/">User reviews{% if editorial.local_review_count %} · {{ editorial.local_review_count }} here{% endif %}</a></span></div> | |
| <div><strong>{{ editorial.critic_review_count }}</strong><span>Critic reviews</span></div> | |
| <div><strong>{{ title.metascore }}</strong><span>Metascore</span></div> | |
| <p>{{ editorial.award }}</p> | |
| </section> | |
| <section class="rich-section videos-section" aria-labelledby="videos-heading"> | |
| <h2 id="videos-heading"><span class="section-accent"></span><a href="/title/{{ title.id }}/mediaindex/">Videos</a> <small>{{ editorial.video_count }}</small></h2> | |
| <div class="video-rail"> | |
| {% for number in range(1, 4) %} | |
| <article class="media-card"> | |
| <a href="/title/{{ title.id }}/mediaindex/"><img src="{{ title.poster if editorial.directory_media else assets_base ~ '/' ~ editorial.asset_group ~ '/rich-video-' ~ number ~ '.jpg' }}" alt="{{ title.title }} video still {{ number }}" loading="lazy"><span class="media-play" aria-hidden="true">▶</span></a> | |
| <h3><a href="/title/{{ title.id }}/mediaindex/">{% if number == 1 %}Official Trailer{% elif number == 2 %}Featured Clip{% else %}Behind the scenes{% endif %}</a></h3> | |
| <p>{% if number == 1 %}Trailer{% else %}Clip{% endif %}</p> | |
| </article> | |
| {% endfor %} | |
| </div> | |
| </section> | |
| <section class="rich-section photos-section" aria-labelledby="photos-heading"> | |
| <h2 id="photos-heading"><span class="section-accent"></span><a href="/title/{{ title.id }}/mediaindex/">Photos</a> <small>{{ editorial.photo_count }}</small></h2> | |
| <div class="photo-mosaic"> | |
| <img src="{{ title.poster if editorial.directory_media else assets_base ~ '/' ~ editorial.asset_group ~ '/rich-video-1.jpg' }}" alt="{{ title.title }} production photo 1" loading="lazy"> | |
| <img src="{{ title.poster if editorial.directory_media else assets_base ~ '/' ~ editorial.asset_group ~ '/rich-video-2.jpg' }}" alt="{{ title.title }} production photo 2" loading="lazy"> | |
| <img src="{{ title.poster if editorial.directory_media else assets_base ~ '/' ~ editorial.asset_group ~ '/rich-video-3.jpg' }}" alt="{{ title.title }} production photo 3" loading="lazy"> | |
| </div> | |
| </section> | |
| <section class="rich-section cast-section" aria-labelledby="cast-heading"> | |
| <h2 id="cast-heading"><span class="section-accent"></span>Top Cast</h2> | |
| <div class="cast-grid"> | |
| {% for person in editorial.cast %} | |
| <article class="cast-card"> | |
| <img src="{{ person[2] if editorial.directory_media else assets_base ~ '/' ~ editorial.asset_group ~ '/rich-cast-' ~ loop.index ~ '.jpg' }}" alt="{{ person[0] }}" loading="lazy"> | |
| <div><h3>{{ person[0] }}</h3><p>{{ person[1] }}</p></div> | |
| </article> | |
| {% endfor %} | |
| </div> | |
| <dl class="credit-list rich-credits"> | |
| {% if title.catalog_credit %} | |
| <div><dt>Credits</dt><dd>{{ title.catalog_credit }}</dd></div> | |
| {% else %} | |
| <div><dt>Director</dt><dd>{{ title.director }}</dd></div> | |
| <div><dt>Writers</dt><dd>{{ title.writers }}</dd></div> | |
| <div><dt>Stars</dt><dd>{{ title.stars }}</dd></div> | |
| {% endif %} | |
| </dl> | |
| </section> | |
| <section class="rich-section reviews-section" aria-labelledby="reviews-heading"> | |
| <h2 id="reviews-heading"><span class="section-accent"></span><a href="/title/{{ title.id }}/reviews/">User reviews</a> <small>{{ editorial.user_review_count }}</small></h2> | |
| <div class="rating-distribution" aria-label="Rating overview"> | |
| <strong>{{ title.imdb_rating }}</strong><span>/10</span> | |
| <div class="rating-bars"> | |
| {% for value in range(10, 0, -1) %} | |
| <span class="rating-width-{{ value }}"><b>{{ value }}</b><i></i></span> | |
| {% endfor %} | |
| </div> | |
| </div> | |
| <article class="featured-review"> | |
| <span class="review-rating">★ 10</span> | |
| <h3>{{ editorial.review_title }}</h3> | |
| <p>{{ editorial.review_body }}</p> | |
| <footer>{{ editorial.review_author }} · Featured review</footer> | |
| </article> | |
| </section> | |
| <section class="rich-section related-section" aria-labelledby="related-heading"> | |
| <h2 id="related-heading"><span class="section-accent"></span>More like this</h2> | |
| <div class="related-rail"> | |
| <article><img src="{{ assets_base }}/watchlist-page/poster-tt0468569-280x414.jpg" alt="The Dark Knight"><h3>The Dark Knight</h3><p>★ 9.1</p></article> | |
| <article><img src="{{ assets_base }}/watchlist-page/poster-tt0816692-280x414.jpg" alt="Interstellar"><h3>Interstellar</h3><p>★ 8.7</p></article> | |
| <article><img src="{{ assets_base }}/watchlist-page/poster-tt0110912-280x414.jpg" alt="Pulp Fiction"><h3>Pulp Fiction</h3><p>★ 8.8</p></article> | |
| <article><img src="{{ assets_base }}/home/home-fanpick-1-280x414.jpg" alt=""><h3>Popular with IMDb fans</h3><p>Watch options</p></article> | |
| <article><img src="{{ assets_base }}/home/home-fanpick-2-280x414.jpg" alt=""><h3>Top rated pick</h3><p>Watch options</p></article> | |
| </div> | |
| </section> | |
| <section class="rich-section storyline-section" aria-labelledby="storyline-heading"> | |
| <h2 id="storyline-heading"><span class="section-accent"></span>Storyline</h2> | |
| <p class="storyline-plot">{{ title.plot }}</p> | |
| <div class="story-facts"> | |
| <article><h3>Did you know</h3><h4>Trivia</h4><p>{{ editorial.trivia }}</p></article> | |
| <article><h3>Quotes</h3><p>{{ editorial.quote }}</p></article> | |
| <article><h3>Crazy credits</h3><p>Explore memorable credit details, alternate versions, and production notes.</p></article> | |
| <article><h3>Connections</h3><p>Discover related titles, references, and soundtrack connections.</p></article> | |
| </div> | |
| </section> | |
| <section class="rich-section faq-section" aria-labelledby="faq-heading"> | |
| <h2 id="faq-heading"><span class="section-accent"></span>FAQ</h2> | |
| <details open><summary>What is {{ title.title }} about?</summary><p>{{ title.plot }}</p></details> | |
| <details><summary>Who directed the movie?</summary><p>{{ title.director }}</p></details> | |
| <details><summary>Who are the principal stars?</summary><p>{{ title.stars }}</p></details> | |
| </section> | |
| <div class="details-grid"> | |
| <section class="rich-section details-section" aria-labelledby="details-heading"> | |
| <h2 id="details-heading"><span class="section-accent"></span>Details</h2> | |
| <dl> | |
| {% for row in editorial.details %}<div><dt>{{ row[0] }}</dt><dd>{{ row[1] }}</dd></div>{% endfor %} | |
| </dl> | |
| </section> | |
| <section class="rich-section box-office-section" aria-labelledby="box-heading"> | |
| <h2 id="box-heading"><span class="section-accent"></span>Box office</h2> | |
| <dl> | |
| {% for row in editorial.box_office %}<div><dt>{{ row[0] }}</dt><dd>{{ row[1] }}</dd></div>{% endfor %} | |
| </dl> | |
| </section> | |
| </div> | |
| <section class="rich-section tech-section" aria-labelledby="tech-heading"> | |
| <h2 id="tech-heading"><span class="section-accent"></span>Tech specs</h2> | |
| <dl class="tech-list"> | |
| <div><dt>Runtime</dt><dd>{{ title.runtime }}</dd></div> | |
| <div><dt>Color</dt><dd>Color</dd></div> | |
| <div><dt>Sound mix</dt><dd>Dolby Digital · DTS</dd></div> | |
| <div><dt>Aspect ratio</dt><dd>2.39 : 1</dd></div> | |
| </dl> | |
| </section> | |
| <section class="contribute-panel"> | |
| <h2>Contribute to this page</h2> | |
| <p>Suggest an edit or add missing content</p> | |
| <a class="button-secondary" href="/availability/contributor/">Open contributor boundary</a> | |
| </section> | |
| </article> | |
| {% endblock %} | |