Table basics with some HTMX to allow data refresh
This commit is contained in:
13
templates/feed.html
Normal file
13
templates/feed.html
Normal 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>
|
||||
Reference in New Issue
Block a user