Fixes and more styling
This commit is contained in:
parent
2c44a69ec3
commit
3619063e68
21 changed files with 203 additions and 94 deletions
|
|
@ -1,14 +1,19 @@
|
|||
{% include "fragments/post_details.html" %} {% if let Some(parent_post) =
|
||||
parent_post %}
|
||||
<article id="parent-post" hx-swap-oob="outerHTML">
|
||||
<h2>Parent</h2>
|
||||
<a
|
||||
href="/post/{{ parent_post.id }}"
|
||||
title="{% if let Some(tags) = parent_post.tags %}{{ tags }}{% endif %}"
|
||||
>
|
||||
<img src="/files/{{ parent_post.thumbnail }}" />
|
||||
<div>{{ parent_post.rating }}</div>
|
||||
</a>
|
||||
<h2>Parent post</h2>
|
||||
<div style="width: min-content">
|
||||
<a
|
||||
href="/post/{{ parent_post.id }}"
|
||||
title="{% if let Some(tags) = parent_post.tags %}{{ tags }}{% endif %}"
|
||||
>
|
||||
<img src="/files/{{ parent_post.thumbnail }}" />
|
||||
<div class="flex">
|
||||
<div>{{ parent_post.rating | upper }}</div>
|
||||
<div>{{ parent_post.media_type }}</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</article>
|
||||
{% else %}
|
||||
<article id="parent-post" hx-swap-oob="outerHTML" hidden></article>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue