Fixes display toggle for about page superlatives

This commit is contained in:
Mouse Reeve 2022-01-20 17:00:15 -08:00
parent ca21238e60
commit a8776843bd

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">