mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-31 14:43:20 +02:00
45 lines
2.4 KiB
HTML
45 lines
2.4 KiB
HTML
{% block latest_content_section %}
|
|
<ul id="latest_content_section" class="list bg-base-100 rounded-box shadow-md">
|
|
<li class="p-4 pb-2 text-xs opacity-60 tracking-wide">Recently added content</li>
|
|
{% for item in latest_text_contents %}
|
|
<li class="list-row">
|
|
<div class="bg-accent rounded-box size-10 flex justify-center items-center text-accent-content">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
|
|
class="size-8">
|
|
<path stroke-linecap="round" stroke-linejoin="round"
|
|
d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z" />
|
|
</svg>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
{{item.created_at|datetimeformat(format="short", tz=user.timezone)}}</div>
|
|
<div
|
|
class="text-xs font-semibold opacity-60 [&:before]:content-['Instructions:_'] [&:before]:uppercase [&:before]:opacity-60">
|
|
{{item.instructions}}
|
|
</div>
|
|
</div>
|
|
<p class="list-col-wrap text-xs [&:before]:content-['Content:_'] [&:before]:uppercase [&:before]:opacity-60">
|
|
{{item.text}}
|
|
</p>
|
|
<!-- <button class="btn disabled btn-square btn-ghost"> -->
|
|
<!-- <svg class="size-[1.2em]" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> -->
|
|
<!-- <g stroke-linejoin="round" stroke-linecap="round" stroke-width="2" fill="none" stroke="currentColor"> -->
|
|
<!-- <path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75z"></path> -->
|
|
<!-- <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"></path> -->
|
|
<!-- </g> -->
|
|
<!-- </svg> -->
|
|
<!-- </button> -->
|
|
<button hx-delete="/text-content/{{item.id}}" hx-target="#latest_content_section" hx-swap="outerHTML"
|
|
class="btn btn-square btn-ghost">
|
|
<svg class="size-[1.2em]" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
<g stroke-linejoin="round" stroke-linecap="round" stroke-width="2" fill="none" stroke="currentColor">
|
|
<path d="M3 6h18"></path>
|
|
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
|
|
</g>
|
|
</svg>
|
|
</button>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %} |