Boost the links in the invoice table

This commit is contained in:
jordi fita mas 2023-03-28 09:57:48 +02:00
parent 2417b4ebd2
commit a5dc434aa2
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ func ServeInvoice(w http.ResponseWriter, r *http.Request, params httprouter.Para
w.Header().Set("Content-Type", "application/pdf")
mustWriteInvoicePdf(w, r, inv)
} else {
mustRenderAppTemplate(w, r, "invoices/view.gohtml", inv)
mustRenderMainTemplate(w, r, "invoices/view.gohtml", inv)
}
}

View File

@ -49,7 +49,7 @@
aria-label="{{ $title }}"
title="{{ $title }}"/></td>
<td>{{ .Date|formatDate }}</td>
<td><a href="{{ companyURI "/invoices/"}}{{ .Slug }}">{{ .Number }}</a></td>
<td><a href="{{ companyURI "/invoices/"}}{{ .Slug }}" data-hx-target="main" data-hx-boost="true">{{ .Number }}</a></td>
<td>{{ .CustomerName }}</td>
<td>
<details class="invoice-status menu">
@ -76,7 +76,7 @@
<td>
{{- range $index, $tag := .Tags }}
{{- if gt $index 0 }}, {{ end -}}
<a href="?tag={{ . }}">{{ . }}</a>
<a href="?tag={{ . }}" data-hx-target="main" data-hx-boost="true">{{ . }}</a>
{{- end }}
</td>
<td class="numeric">{{ .Total|formatPrice }}</td>