Boost the links in the invoice table
This commit is contained in:
parent
2417b4ebd2
commit
a5dc434aa2
|
@ -144,7 +144,7 @@ func ServeInvoice(w http.ResponseWriter, r *http.Request, params httprouter.Para
|
||||||
w.Header().Set("Content-Type", "application/pdf")
|
w.Header().Set("Content-Type", "application/pdf")
|
||||||
mustWriteInvoicePdf(w, r, inv)
|
mustWriteInvoicePdf(w, r, inv)
|
||||||
} else {
|
} else {
|
||||||
mustRenderAppTemplate(w, r, "invoices/view.gohtml", inv)
|
mustRenderMainTemplate(w, r, "invoices/view.gohtml", inv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
aria-label="{{ $title }}"
|
aria-label="{{ $title }}"
|
||||||
title="{{ $title }}"/></td>
|
title="{{ $title }}"/></td>
|
||||||
<td>{{ .Date|formatDate }}</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>{{ .CustomerName }}</td>
|
||||||
<td>
|
<td>
|
||||||
<details class="invoice-status menu">
|
<details class="invoice-status menu">
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
<td>
|
<td>
|
||||||
{{- range $index, $tag := .Tags }}
|
{{- range $index, $tag := .Tags }}
|
||||||
{{- if gt $index 0 }}, {{ end -}}
|
{{- if gt $index 0 }}, {{ end -}}
|
||||||
<a href="?tag={{ . }}">{{ . }}</a>
|
<a href="?tag={{ . }}" data-hx-target="main" data-hx-boost="true">{{ . }}</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</td>
|
</td>
|
||||||
<td class="numeric">{{ .Total|formatPrice }}</td>
|
<td class="numeric">{{ .Total|formatPrice }}</td>
|
||||||
|
|
Loading…
Reference in New Issue