Header fixes

This commit is contained in:
Joachim 2021-04-21 21:48:19 +02:00
parent 2cacf5146b
commit 17436b6657
1 changed files with 80 additions and 74 deletions

View File

@ -1,5 +1,6 @@
{% load bookwyrm_tags %} {% load bookwyrm_tags %}
{% load i18n %} {% load i18n %}
{% load humanize %}
<div class="media"> <div class="media">
<figure class="media-left"> <figure class="media-left">
@ -9,10 +10,7 @@
</figure> </figure>
<div class="media-content"> <div class="media-content">
<p class="is-size-7"> <p>
<a href="{{ status.remote_id }}">{{ status.published_date | post_date }}</a>
{% include 'snippets/privacy-icons.html' with item=status %}
</p>
<span <span
itemprop="author" itemprop="author"
itemscope itemscope
@ -73,18 +71,26 @@
{% include 'snippets/book_titleby.html' with book=status.book %} {% include 'snippets/book_titleby.html' with book=status.book %}
{% endif %} {% endif %}
{% elif status.mention_books %} {% elif status.mention_books %}
<a href="/book/{{ status.mention_books.first.id }}">{{ status.mention_books.first.title }}</a> <a href="/book/{{ status.mention_books.first.id }}">
{{ status.mention_books.first.title }}
</a>
{% endif %} {% endif %}
</p>
<p class="is-size-7 is-flex is-align-items-center">
<a href="{{ status.remote_id }}">{{ status.published_date|timesince }}</a>
{% if status.progress %} {% if status.progress %}
<p class="help"> <span class="help">
{% spaceless %}
({% if status.progress_mode == 'PG' %} ({% if status.progress_mode == 'PG' %}
{% include 'snippets/page_text.html' with page=status.progress total_pages=status.book.pages %} {% include 'snippets/page_text.html' with page=status.progress total_pages=status.book.pages %}
{% else %} {% else %}
{{ status.progress }}% {{ status.progress }}%
{% endif %}) {% endif %})
</p> {% endspaceless %}
</span>
{% endif %} {% endif %}
{% include 'snippets/privacy-icons.html' with item=status %}
</p>
</div> </div>
</div> </div>