31 lines
1.4 KiB
HTML
31 lines
1.4 KiB
HTML
|
|
<table id="manage-results">
|
|
<tr>
|
|
<th> </th>
|
|
<th hx-post="/manage/results?sort=title" hx-target="#manage-results">title/url</th>
|
|
<th>tags</th>
|
|
<th hx-post="/manage/results?sort=created" hx-target="#manage-results" class="show-for-large">created</th>
|
|
<th hx-post="/manage/results?sort=scraped" hx-target="#manage-results" class="show-for-large">scraped</th>
|
|
</tr>
|
|
{{ range .bookmarks }}
|
|
<tr>
|
|
<th><a class="button" href="/edit/{{ .ID }}">edit</a></th>
|
|
<td>
|
|
<a href="{{ .URL }}">{{ .Info.Title }}</a>
|
|
<br>
|
|
<a href="{{ .URL }}">{{ niceURL .URL }}</a>
|
|
</td>
|
|
<td>
|
|
{{ range .Tags }}
|
|
<span class="label primary">{{ . }}</span>
|
|
{{ end }}
|
|
</td>
|
|
<td class="show-for-large">{{ (nicetime .TimestampCreated).HumanDuration }} ago</td>
|
|
<td class="show-for-large">{{ (nicetime .TimestampLastScraped).HumanDuration }} ago</td>
|
|
|
|
<td>
|
|
<a class="button" hx-swap="outerHTML" hx-post="/scrape/{{ .ID }}">scrape</button>
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
</table> |