cover: List curation:
- Reduce Padding around covers. - Remove `content` which is applying too extensive default styles. - Style headings. - Replace table with definition list. - Clip cover container to avoid caption overflowing.
This commit is contained in:
parent
75a69988e4
commit
783cc6edf0
|
@ -2,49 +2,71 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% block panel %}
|
{% block panel %}
|
||||||
|
|
||||||
<section class="content block">
|
<section class="block">
|
||||||
<h2>{% trans "Pending Books" %}</h2>
|
<div class="columns is-mobile is-multiline is-align-items-baseline">
|
||||||
<p><a href="{% url 'list' list.id %}">{% trans "Go to list" %}</a></p>
|
<div class="column is-narrow">
|
||||||
|
<h2 class="title is-4">{% trans "Pending Books" %}</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="column is-narrow"><a href="{% url 'list' list.id %}">{% trans "Go to list" %}</a></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if not pending.exists %}
|
{% if not pending.exists %}
|
||||||
<p>{% trans "You're all set!" %}</p>
|
<p>{% trans "You're all set!" %}</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<table class="table is-striped">
|
|
||||||
<tr>
|
<dl>
|
||||||
<th></th>
|
|
||||||
<th>{% trans "Book" %}</th>
|
|
||||||
<th>{% trans "Suggested by" %}</th>
|
|
||||||
<th></th>
|
|
||||||
</tr>
|
|
||||||
{% for item in pending %}
|
{% for item in pending %}
|
||||||
<tr>
|
{% with book=item.book %}
|
||||||
<td>
|
<div
|
||||||
<a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=item.book size="small" %}</a>
|
class="
|
||||||
</td>
|
columns is-gapless
|
||||||
<td>
|
is-vcentered is-justify-content-space-between
|
||||||
{% include 'snippets/book_titleby.html' with book=item.book %}
|
mb-6
|
||||||
</td>
|
"
|
||||||
<td>
|
>
|
||||||
<a href="{{ item.user.local_path }}">{{ item.user.display_name }}</a>
|
<dt class="column is-5-tablet is-6-desktop">
|
||||||
</td>
|
<div class="columns is-mobile is-gapless is-vcentered">
|
||||||
<td>
|
<a
|
||||||
<div class="field has-addons">
|
class="column"
|
||||||
<form class="control" method="POST" action="{% url 'list-curate' list.id %}">
|
href="{{ book.local_path }}"
|
||||||
{% csrf_token %}
|
aria-hidden="true"
|
||||||
<input type="hidden" name="item" value="{{ item.id }}">
|
>
|
||||||
<input type="hidden" name="approved" value="true">
|
{% include 'snippets/book_cover.html' with size="small" %}
|
||||||
<button class="button">{% trans "Approve" %}</button>
|
</a>
|
||||||
</form>
|
|
||||||
<form class="control" method="POST" action="{% url 'list-curate' list.id %}">
|
<div class="column is-9-mobile is-10-tablet ml-3">
|
||||||
{% csrf_token %}
|
{% include 'snippets/book_titleby.html' %}
|
||||||
<input type="hidden" name="item" value="{{ item.id }}">
|
</div>
|
||||||
<input type="hidden" name="approved" value="false">
|
</div>
|
||||||
<button class="button is-danger is-light">{% trans "Discard" %}</button>
|
</dt>
|
||||||
</div>
|
|
||||||
</form>
|
<dd class="column is-3-tablet is-3-desktop my-3">
|
||||||
</td>
|
{% trans "Suggested by" %}
|
||||||
</tr>
|
|
||||||
|
<a href="{{ item.user.local_path }}">
|
||||||
|
{{ item.user.display_name }}
|
||||||
|
</a>
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dd class="column is-narrow field has-addons">
|
||||||
|
<form class="control" method="POST" action="{% url 'list-curate' list.id %}">
|
||||||
|
{% csrf_token %}
|
||||||
|
<input type="hidden" name="item" value="{{ item.id }}">
|
||||||
|
<input type="hidden" name="approved" value="true">
|
||||||
|
<button class="button">{% trans "Approve" %}</button>
|
||||||
|
</form>
|
||||||
|
<form class="control" method="POST" action="{% url 'list-curate' list.id %}">
|
||||||
|
{% csrf_token %}
|
||||||
|
<input type="hidden" name="item" value="{{ item.id }}">
|
||||||
|
<input type="hidden" name="approved" value="false">
|
||||||
|
<button class="button is-danger is-light">{% trans "Discard" %}</button>
|
||||||
|
</form>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</dl>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
<figure
|
<figure
|
||||||
class="
|
class="
|
||||||
cover-container
|
cover-container
|
||||||
|
is-clipped
|
||||||
is-flex
|
is-flex
|
||||||
is-align-items-center
|
is-align-items-center
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue