Merge pull request #1857 from bookwyrm-social/about-page-superlatives

Fixes display controls for about page superlatives
This commit is contained in:
Mouse Reeve 2022-01-20 17:20:04 -08:00 committed by GitHub
commit b35efb6eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,7 @@
{% block about_content %} {% block about_content %}
{# seven day cache #} {# seven day cache #}
{% cache 604800 about_page %} {% cache 604800 about_page %}
{% get_book_superlatives as superlatives %} {% get_book_superlatives as superlatives %}
<section class="content pb-4"> <section class="content pb-4">
<h2> <h2>
@ -26,7 +27,7 @@
</p> </p>
<div class="columns"> <div class="columns">
{% if top_rated %} {% if superlatives.top_rated %}
{% with book=superlatives.top_rated.default_edition rating=top_rated.rating %} {% with book=superlatives.top_rated.default_edition rating=top_rated.rating %}
<div class="column is-one-third is-flex"> <div class="column is-one-third is-flex">
<div class="media notification"> <div class="media notification">
@ -45,7 +46,7 @@
{% endwith %} {% endwith %}
{% endif %} {% endif %}
{% if wanted %} {% if superlatives.wanted %}
{% with book=superlatives.wanted.default_edition %} {% with book=superlatives.wanted.default_edition %}
<div class="column is-one-third is-flex"> <div class="column is-one-third is-flex">
<div class="media notification"> <div class="media notification">
@ -64,7 +65,7 @@
{% endwith %} {% endwith %}
{% endif %} {% endif %}
{% if controversial %} {% if superlatives.controversial %}
{% with book=superlatives.controversial.default_edition %} {% with book=superlatives.controversial.default_edition %}
<div class="column is-one-third is-flex"> <div class="column is-one-third is-flex">
<div class="media notification"> <div class="media notification">