Download tasks/backcountry/environment/reference/clone/frontend/templates/orders.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 1.8 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/backcountry/environment/reference/clone/frontend/templates/orders.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/backcountry/environment/reference/clone/frontend/templates/orders.html
-
curl -L -o orders.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/backcountry/environment/reference/clone/frontend/templates/orders.html
1.8 kB
| {% extends "base.html" %} | |
| {% from "_account_nav.html" import account_nav %} | |
| {% block title %}Order History | Backcountry.com{% endblock %} | |
| {% block content %} | |
| <div class="page"> | |
| <h1 class="plp__head">Order History</h1> | |
| <div class="account"> | |
| {{ account_nav(account_section) }} | |
| <div> | |
| {% if orders %} | |
| {% for o in orders %} | |
| <div class="card"> | |
| <div class="order__head"> | |
| <div><span>Order Placed</span>{{ o.placed_on }}</div> | |
| <div><span>Total</span>{{ o.total | money }}</div> | |
| <div><span>Ship To</span>{{ o.ship_to }}</div> | |
| <div><span>Order #</span><a href="/account/orders/{{ o.order_number }}">{{ o.order_number }}</a></div> | |
| <div><span>Status</span>{{ o.status }}</div> | |
| </div> | |
| {% for line in o.lines %} | |
| <div class="cart__line"> | |
| <a href="{{ line.product_slug }}"> | |
| <img src="{{ line.product.mainImage if line.product }}" alt="" width="120" height="120"></a> | |
| <div> | |
| <p class="cart__line-brand">{{ line.product.brand if line.product }}</p> | |
| <p class="cart__line-title"><a href="{{ line.product_slug }}">{{ line.product.title if line.product else line.product_slug }}</a></p> | |
| <p class="cart__line-variant">Color: {{ line.color }}{% if line.size %} | Size: {{ line.size }}{% endif %} | Qty {{ line.quantity }}</p> | |
| </div> | |
| <div class="cart__line-price">{{ (line.unit_price * line.quantity) | money }}</div> | |
| </div> | |
| {% endfor %} | |
| </div> | |
| {% endfor %} | |
| {% else %} | |
| <div class="emptystate"><h2>You have no orders yet.</h2> | |
| <p><a class="btn btn--secondary btn--sm" href="/cat/travel">Start Shopping</a></p></div> | |
| {% endif %} | |
| </div> | |
| </div> | |
| </div> | |
| {% endblock %} | |