<commit_before>{% extends 'layout/page.html' %}
{% import 'macros.twig' as scat %}

{% block title %}
  Wishlist @ Raw Materials Art Supplies
{% endblock %}

{% block content %}
  {% if person %}
    <h2>
      Welcome back!
      <small>
        (<a href="{{ url_for('account') }}">view your account</a>
        or <a href="{{ url_for('logout') }}">log out</a>)
      </small>
    </h2>
  {% else %}
    <h2>
      Welcome!
      <small>
        (<a href="{{ url_for('login') }}">log in</a>)
      </small>
    </h2>
  {% endif %}

  {% set items= wishlist.items.find_many() %}
  {% if not items|length %}
    <div class="alert alert-warning">
      <b>You don't have anything in your wishlist.</b>
      You can <a href="{{ url_for('catalog') }}">start browsing for art
      supplies</a> or use the search form at the top of the page to find
      what you want.
    </div>

    <ul class="smol-grid">
      {{ ad('basic', 6) }}
      {{ ad('basic', 7) }}
      {{ ad('basic', 8) }}
    </ul>
  {% else %}
    {% if not person and not wishlist.person_id %}
      <div class="alert alert-danger">
        {{ bootstrap_icon('exclamation-triangle') }}
        <b>Your wishlist isn't saved!</b> You need to <a href="{{ url_for('login') }}">log
        in</a> or <a href="/rewards">sign up for a rewards account</a> to save your wishlist.
      </div>
    {% endif %}

    {{ include('wishlist/links.twig') }}

    <div class="smol-fill-grid">
      {% for item in items %}
        {% set i= item.item %}
        <div class="card">
          <img src="{{ i.media[0].large_square }}" alt="{{ i.name }}">
          <h2><a href="{{ url_for('catalog', i.url_params()) }}">{{ i.name }}</a></h2>
          {% if not i.active or not i.no_backorder or i.stock > 0 %}
            {{ include('add-to-cart.twig', { item: i, no_add_to_wishlist: true, fixed_quantity: true }) }}
          {% else %}
            <button class="button" disabled>
              Unavailable<commit_msg>Make wishlist cards cold to deal with Firefox<commit_after>{% extends 'layout/page.html' %}
{% import 'macros.twig' as scat %}

{% block title %}
  Wishlist @ Raw Materials Art Supplies
{% endblock %}

{% block content %}
  {% if person %}
    <h2>
      Welcome back!
      <small>
        (<a href="{{ url_for('account') }}">view your account</a>
        or <a href="{{ url_for('logout') }}">log out</a>)
      </small>
    </h2>
  {% else %}
    <h2>
      Welcome!
      <small>
        (<a href="{{ url_for('login') }}">log in</a>)
      </small>
    </h2>
  {% endif %}

  {% set items= wishlist.items.find_many() %}
  {% if not items|length %}
    <div class="alert alert-warning">
      <b>You don't have anything in your wishlist.</b>
      You can <a href="{{ url_for('catalog') }}">start browsing for art
      supplies</a> or use the search form at the top of the page to find
      what you want.
    </div>

    <ul class="smol-grid">
      {{ ad('basic', 6) }}
      {{ ad('basic', 7) }}
      {{ ad('basic', 8) }}
    </ul>
  {% else %}
    {% if not person and not wishlist.person_id %}
      <div class="alert alert-danger">
        {{ bootstrap_icon('exclamation-triangle') }}
        <b>Your wishlist isn't saved!</b> You need to <a href="{{ url_for('login') }}">log
        in</a> or <a href="/rewards">sign up for a rewards account</a> to save your wishlist.
      </div>
    {% endif %}

    {{ include('wishlist/links.twig') }}

    <div class="smol-fill-grid">
      {% for item in items %}
        {% set i= item.item %}
        <div class="card cold">
          <img src="{{ i.media[0].large_square }}" alt="{{ i.name }}">
          <h2><a href="{{ url_for('catalog', i.url_params()) }}">{{ i.name }}</a></h2>
          {% if not i.active or not i.no_backorder or i.stock > 0 %}
            {{ include('add-to-cart.twig', { item: i, no_add_to_wishlist: true, fixed_quantity: true }) }}
          {% else %}
            <button class="button" disabled>
              Unavailable
{'fraction_non_alphanumeric': 0.19289851422815413, 'fraction_numerical': 0.00554016620498615, 'mean_word_length': 2.3632514817950887, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '785375', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1299, 'n_words': 371}