Skip to content

Commit

Permalink
Also show the new preview on the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
C4ptainCrunch committed Jul 9, 2023
1 parent a537d7f commit 2bc3536
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions www/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,13 @@ <h1 class="fs-3 border-bottom d-flex align-items-center gap-2">
<a href="{% url 'document_show' document.pk %}"
class="d-flex align-items-center gap-2 text-reset text-decoration-none">
<div class="rounded border bg-light p-1">
<img src="{% static "images/default_page.webp" %}"
width="60" height="50" style="object-fit: cover;">
{% if document.thumbnail %}
<img src="{{ document.thumbnail.url }}"
width="60" height="50" style="object-fit: cover;">
{% else %}
<img src="{% static "images/default_page.webp" %}"
width="60" height="50" style="object-fit: cover;">
{% endif %}
</div>
<div>
<div class="hover-underline">
Expand Down

0 comments on commit 2bc3536

Please sign in to comment.