Table basics with some HTMX to allow data refresh

This commit is contained in:
2025-01-28 20:21:43 +01:00
parent acf7b5ab6b
commit 3c180625b2
8 changed files with 388 additions and 22 deletions

13
templates/feed.html Normal file
View File

@@ -0,0 +1,13 @@
<tr id="feed_{{feed.id}}">
<td>{{feed.name}}</td>
<td>{{feed.feed_url}}</td>
<td>{{feed.last_pub_date.clone().unwrap_or("None".to_string())}}</td>
<td>
<button hx-get="/feed/{{feed.id}}/"
hx-target="#feed_{{feed.id}}"
hx-swap="outerHTML"
hx-trigger="click">
Refresh
</button>
</td>
</tr>