| 1 |
{% extends "base.html" %} |
| 2 |
|
| 3 |
{% block title %}{{ item.title }} - Library - Makenotwork{% endblock %} |
| 4 |
{% block body_attrs %} class="padded-page"{% endblock %} |
| 5 |
|
| 6 |
{% block head %} |
| 7 |
<meta name="robots" content="noindex"> |
| 8 |
{% endblock %} |
| 9 |
|
| 10 |
{% block content %} |
| 11 |
{% include "partials/site_header.html" %} |
| 12 |
|
| 13 |
<div class="container"> |
| 14 |
<h1 class="page-title">{{ item.title }}</h1> |
| 15 |
<p class="library-locked-byline">by <a href="/u/{{ creator_username }}">{{ creator_username }}</a></p> |
| 16 |
|
| 17 |
{% if let Some(cover) = item.cover_image_url %} |
| 18 |
<img src="{{ cover }}" alt="{{ item.title }}" class="library-locked-cover"> |
| 19 |
{% endif %} |
| 20 |
|
| 21 |
<div class="purchase-box library-locked-purchase"> |
| 22 |
<h2 class="subsection-title">You don't have access to this yet</h2> |
| 23 |
<p class="library-locked-lead">This is the library view, available to people who own this item. Visit the store page to purchase or learn more.</p> |
| 24 |
|
| 25 |
<div class="library-locked-actions"> |
| 26 |
<a href="/i/{{ item.id }}" class="btn-primary">View store page</a> |
| 27 |
{% if !is_logged_in %} |
| 28 |
<a href="/login?redirect=/l/{{ item.id }}" class="btn-secondary">Log in</a> |
| 29 |
{% endif %} |
| 30 |
</div> |
| 31 |
|
| 32 |
{% if !containing_bundles.is_empty() %} |
| 33 |
<div class="library-locked-bundles"> |
| 34 |
<p class="library-locked-bundles-title">Available in:</p> |
| 35 |
{% for bundle in containing_bundles %} |
| 36 |
<p class="library-locked-bundle"><a href="/i/{{ bundle.id }}">{{ bundle.title }}</a> <span class="library-locked-bundle-price">{{ bundle.price }}</span></p> |
| 37 |
{% endfor %} |
| 38 |
</div> |
| 39 |
{% endif %} |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
{% endblock %} |
| 43 |
|