Compact recent list to one line per receipt

Drop the (usually garbage) original filename. Each row is now a single line:
amount link · date · category · who, attachments as 📎 links (filename on hover),
and a small muted upload time.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jean-Michel Tremblay 2026-06-19 08:54:37 -04:00
parent 99b8541da0
commit 2a3077fa26
2 changed files with 10 additions and 6 deletions

View file

@ -86,8 +86,12 @@ table.tally .muted { color: #bbb; }
/* Recent lists + tabs + pager. */ /* Recent lists + tabs + pager. */
p.tabs a.active { font-weight: 700; text-decoration: none; color: #137333; } p.tabs a.active { font-weight: 700; text-decoration: none; color: #137333; }
ul.recent { list-style: none; padding: 0; } ul.recent { list-style: none; padding: 0; }
ul.recent li { padding: .5rem 0; border-bottom: 1px solid #eee; } ul.recent li { padding: .35rem 0; border-bottom: 1px solid #eee; font-size: .92rem; }
ul.recent small { color: #555; } ul.recent .amt { font-weight: 600; }
ul.recent .meta { color: #333; }
ul.recent .atts { margin-left: .15rem; }
ul.recent .atts a { text-decoration: none; }
ul.recent .when { color: #999; font-size: .8rem; margin-left: .35rem; }
p.pager { margin-top: 1rem; } p.pager { margin-top: 1rem; }
.err { .err {

View file

@ -15,10 +15,10 @@
<ul class="recent"> <ul class="recent">
{{range .Rows}} {{range .Rows}}
<li> <li>
<a href="/receipt/{{.ID}}/file" target="_blank">${{.Amount}}</a> <a class="amt" href="/receipt/{{.ID}}/file" target="_blank">${{.Amount}}</a>
· {{.Date}} · {{.Category}}{{if .Who}} · {{.Who}}{{end}} <span class="meta">{{.Date}} · {{.Category}}{{if .Who}} · {{.Who}}{{end}}</span>
<br><small>{{.Filename}} — uploaded {{.When}}</small> {{if .Attachments}}<span class="atts">{{range .Attachments}}<a href="/attachment/{{.ID}}/file" target="_blank" title="{{.Filename}}">📎</a>{{end}}</span>{{end}}
{{if .Attachments}}<br><small>attachments: {{range $i, $a := .Attachments}}{{if $i}}, {{end}}<a href="/attachment/{{$a.ID}}/file" target="_blank">{{$a.Filename}}</a>{{end}}</small>{{end}} <span class="when">{{.When}}</span>
</li> </li>
{{end}} {{end}}
</ul> </ul>