<commit_before>{% use atoms apps.reaktor_documents.atoms as docs %}


<div class="preorder-list">
	{% if not preorderlist.items %}
		<div class="tx-margin-top-large text-center">
			<h6 class="highlight">{{ _("You have no pre-ordered books") }}</h6>
			<h6 class="highlight subheader">
				{{ _("You can pre-order books from our store before the official release date.") }}
				{{ _("You can view and cancel your pre-orders here.") }}
				{{ _("You will only be charged once the book has been released and sent to your library.") }}
			</h6>
		</div>
	{% else %}
		<h6 class="highlight">{{ ngettext("You have %d pre-ordered book", "You have %d pre-ordered books", preorderlist|length) % preorderlist|length }}</h6>

		<div class="tx-list">
			<ul class="tx-list-list tx-list-shadow small-block-grid-1 large-block-grid-1">
			{% for item in preorderlist.notified_items %}
				{% set doc = item.document %}
				{% set oldest_notif = item.notifications[-1] if item.notifications else None %}

				<li>
					<div class="tx-list-item">
						<div class="tx-list-item-image tx-margin-bottom-small">
							{% atom docs:image(request, doc) %}
						</div>

						<div class="tx-list-item-details">
							<div class="tx-header-group">
								<h6 class="highlight">{% atom docs:title(doc, False, True, tracking) %}</h6>
								<h6 class="subheader">{% atom docs:author(doc.authors) %}</h6>
							</div>

							<div class="tx-margin-top-tiny tx-margin-bottom-tiny">
								<p class="tx-smaller">
									{% if doc.is_preorder and doc.attributes.publication_date %}
										<span>{{ _('Date of Publication') }}:&nbsp;</span>
										<span>{{ doc.attributes.publication_date|nice_date }}</span>
									{% endif %}
								</p>
							</div>

							<h5>
								{% if item.pre_paid %}
									{{ _("Pre-release voucher card purchase") }}
								{% elif oldest_notif and oldest_notif.previous_price != doc.price %}
									{{ _("Pre-ordered on %s for %s, the current price is %s.") % (item.creation_date|nice_date, oldest_notif.previous_price|currencyfmt, doc.price|currencyfmt) }}
									{{ _("You save %s.") % ((oldest_notif.previous_price - doc.price)|currencyfmt) }}
								{% else %}
									{{ _("Pre-ordered on %s for %s") % (item.creation_date|nice_date, doc.price|currencyfmt) }}
								{% endif %}
							</h5>
						</div>
<commit_msg>SKINSTXTRCOM-4611 | Changing wording for cardcode preorder item to include the date.<commit_after>{% use atoms apps.reaktor_documents.atoms as docs %}


<div class="preorder-list">
	{% if not preorderlist.items %}
		<div class="tx-margin-top-large text-center">
			<h6 class="highlight">{{ _("You have no pre-ordered books") }}</h6>
			<h6 class="highlight subheader">
				{{ _("You can pre-order books from our store before the official release date.") }}
				{{ _("You can view and cancel your pre-orders here.") }}
				{{ _("You will only be charged once the book has been released and sent to your library.") }}
			</h6>
		</div>
	{% else %}
		<h6 class="highlight">{{ ngettext("You have %d pre-ordered book", "You have %d pre-ordered books", preorderlist|length) % preorderlist|length }}</h6>

		<div class="tx-list">
			<ul class="tx-list-list tx-list-shadow small-block-grid-1 large-block-grid-1">
			{% for item in preorderlist.notified_items %}
				{% set doc = item.document %}
				{% set oldest_notif = item.notifications[-1] if item.notifications else None %}

				<li>
					<div class="tx-list-item">
						<div class="tx-list-item-image tx-margin-bottom-small">
							{% atom docs:image(request, doc) %}
						</div>

						<div class="tx-list-item-details">
							<div class="tx-header-group">
								<h6 class="highlight">{% atom docs:title(doc, False, True, tracking) %}</h6>
								<h6 class="subheader">{% atom docs:author(doc.authors) %}</h6>
							</div>

							<div class="tx-margin-top-tiny tx-margin-bottom-tiny">
								<p class="tx-smaller">
									{% if doc.is_preorder and doc.attributes.publication_date %}
										<span>{{ _('Date of Publication') }}:&nbsp;</span>
										<span>{{ doc.attributes.publication_date|nice_date }}</span>
									{% endif %}
								</p>
							</div>

							<h5>
								{% if item.pre_paid %}
									{{ _("Added on %s using an eBook card.") % item.creation_date|nice_date }}
								{% elif oldest_notif and oldest_notif.previous_price != doc.price %}
									{{ _("Pre-ordered on %s for %s, the current price is %s.") % (item.creation_date|nice_date, oldest_notif.previous_price|currencyfmt, doc.price|currencyfmt) }}
									{{ _("You save %s.") % ((oldest_notif.previous_price - doc.price)|currencyfmt) }}
								{% else %}
									{{ _("Pre-ordered on %s for %s") % (item.creation_date|nice_date, doc.price|currencyfmt) }}
								{% endif %}
							</h5>
						</div>

{'fraction_non_alphanumeric': 0.16988978997712623, 'fraction_numerical': 0.007070076939072572, 'mean_word_length': 2.9686468646864688, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '2367330', 'n_tokens_mistral': 2087, 'n_tokens_neox': 1546, 'n_words': 392}