From 0c65f16bb0f5ff2b116a453de05bab891e206e9d Mon Sep 17 00:00:00 2001
From: George Katsikas <giorgakis.katsikas@gmail.com>
Date: Mon, 18 Mar 2024 12:01:28 +0100
Subject: [PATCH] improve notes list item display

---
 .../pins/templates/pins/_hx_note_item.html           | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/scipost_django/pins/templates/pins/_hx_note_item.html b/scipost_django/pins/templates/pins/_hx_note_item.html
index fb3d7b84f..f7f4584fd 100644
--- a/scipost_django/pins/templates/pins/_hx_note_item.html
+++ b/scipost_django/pins/templates/pins/_hx_note_item.html
@@ -1 +1,11 @@
-{{ note.title }}
+<div class="my-1">
+  <div class="d-flex justify-content-between">
+    <span class="fw-bold text-truncate overflow-hidden">{{ note.title }}</span>
+    <span class="d-flex text-nowrap gap-2">
+      <span class="badge text-bg-secondary">{{ note.get_visibility_display }}</span>
+      <span class="fw-bold">{{ note.author.profile.full_name }}</span>
+      <span>{{ note.created }}</span>
+    </span>
+  </div>
+  <div>{{ note.description }}</div>
+</div>
-- 
GitLab