WebsiteBench / tasks /change /solution /site /implementation /clone /frontend /templates /policy.html
Download tasks/change/solution/site/implementation/clone/frontend/templates/policy.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 2.31 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/change/solution/site/implementation/clone/frontend/templates/policy.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/change/solution/site/implementation/clone/frontend/templates/policy.html
-
curl -L -o policy.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/change/solution/site/implementation/clone/frontend/templates/policy.html
2.31 kB
| {% extends "base.html" %} | |
| {% block content %} | |
| <article class="policy-page policy-page-{{ policy.slug }}"> | |
| <header> | |
| <h1>{{ policy.title }}</h1> | |
| <p>Last updated: {{ policy.updated }}</p> | |
| </header> | |
| <nav class="policy-tabs" aria-label="Policies"> | |
| <a href="/about">Policies</a> | |
| <a class="{% if policy.slug == 'terms-of-service' %}active{% endif %}" href="/policies/terms-of-service">Terms</a> | |
| <a class="{% if policy.slug == 'privacy' %}active{% endif %}" href="/policies/privacy">Privacy</a> | |
| <a class="{% if policy.slug == 'cookies' %}active{% endif %}" href="/policies/cookies">Cookies</a> | |
| <a class="{% if policy.slug == 'community' %}active{% endif %}" href="/policies/community">Community Guidelines</a> | |
| </nav> | |
| <div class="policy-copy"> | |
| {% set introduction = policy.sections[0] %} | |
| <section class="policy-introduction" id="{{ introduction.id }}"> | |
| {% for paragraph in introduction.paragraphs %} | |
| <p>{% if paragraph is mapping %}{{ paragraph.html|safe }}{% else %}{{ paragraph }}{% endif %}</p> | |
| {% endfor %} | |
| </section> | |
| {% if policy.toc %} | |
| <nav class="policy-toc" aria-label="Table of contents"> | |
| <strong>TABLE OF CONTENTS</strong> | |
| <ol> | |
| {% for item in policy.toc %} | |
| <li | |
| class="{% if item.nested %}nested{% endif %}" | |
| {% if not item.nested %}value="{{ item.id }}"{% endif %} | |
| ><a href="#{{ item.id }}">{{ item.label }}</a></li> | |
| {% endfor %} | |
| </ol> | |
| </nav> | |
| {% endif %} | |
| <div class="policy-sections"> | |
| {% for section in policy.sections[1:] %} | |
| <section id="{{ section.id }}"> | |
| {% if section.title %}<h2>{{ section.title }}</h2>{% endif %} | |
| {% for paragraph in section.paragraphs %} | |
| <p>{% if paragraph is mapping %}{{ paragraph.html|safe }}{% else %}{{ paragraph }}{% endif %}</p> | |
| {% endfor %} | |
| {% if section.points %} | |
| <ul> | |
| {% for point in section.points %} | |
| <li>{% if point is mapping %}<strong>{{ point.title }}</strong><br>{{ point.body }}{% else %}{{ point }}{% endif %}</li> | |
| {% endfor %} | |
| </ul> | |
| {% endif %} | |
| </section> | |
| {% endfor %} | |
| </div> | |
| </div> | |
| </article> | |
| {% endblock %} | |