summaryrefslogtreecommitdiff
path: root/web/templates/partials
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates/partials')
-rw-r--r--web/templates/partials/completed-atom.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/web/templates/partials/completed-atom.html b/web/templates/partials/completed-atom.html
new file mode 100644
index 0000000..74b605d
--- /dev/null
+++ b/web/templates/partials/completed-atom.html
@@ -0,0 +1,17 @@
+{{define "completed-atom"}}
+<div class="bg-white/5 rounded-lg border border-white/5 opacity-60">
+ <div class="flex items-start gap-2 sm:gap-3 p-3 sm:p-4">
+ <input type="checkbox" checked
+ hx-post="/uncomplete-atom"
+ hx-vals='{"id": "{{.ID}}", "source": "{{.Source}}"}'
+ hx-target="closest div.rounded-lg"
+ hx-swap="outerHTML"
+ class="mt-1 h-5 w-5 rounded bg-black/40 border-white/30 text-green-600 cursor-pointer flex-shrink-0">
+ <span class="text-lg flex-shrink-0">&#10003;</span>
+ <div class="flex-1 min-w-0">
+ <h3 class="text-sm font-medium text-white/40 line-through break-words">{{.Title}}</h3>
+ <div class="text-xs text-green-400/70 mt-1">Completed - click to undo</div>
+ </div>
+ </div>
+</div>
+{{end}}