Skip to content

Commit

Permalink
Hide empty taxes table
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed May 8, 2024
1 parent 57777f0 commit 399ebcf
Show file tree
Hide file tree
Showing 7 changed files with 756 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
*.hide.json
*.hide.html

# Ingore all templ txt files
*_templ.txt

# Go workspace file
go.work

Expand Down
2 changes: 1 addition & 1 deletion components/bill/invoice/taxes.templ
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

templ taxes(inv *bill.Invoice, taxes *tax.Total) {
if taxes != nil {
if taxes != nil && len(taxes.Categories) > 0 {
<section class="taxes">
@t.Scope("billing.invoice.taxes") {
<h2>
Expand Down
2 changes: 1 addition & 1 deletion components/bill/invoice/taxes_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 399ebcf

Please sign in to comment.