Initial progress on styling
This commit is contained in:
parent
c650c27825
commit
2c44a69ec3
38 changed files with 748 additions and 412 deletions
22
templates/fragments/submit_post_details.html
Normal file
22
templates/fragments/submit_post_details.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{% 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>
|
||||
</article>
|
||||
{% else %}
|
||||
<article id="parent-post" hx-swap-oob="outerHTML" hidden></article>
|
||||
{% endif %}
|
||||
<ul id="tags-list" hx-swap-oob="outerHTML">
|
||||
{% for tag in tags %}
|
||||
<li>
|
||||
<a href="/posts?tags={{ tag.name }}">{{ tag.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue