summaryrefslogtreecommitdiff
path: root/internal/template/functions.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-04-14ui: add tag entries pageGravatar Romain de Laage 1-2/+4
2024-03-20Rename PROXY_* options to MEDIA_PROXY_*Gravatar Frédéric Guillot 1-6/+6
2024-02-28Simplify formatFileSizeGravatar jvoisin 1-10/+6
No need to use a loop with divisions and multiplications when we have logarithms.
2024-02-28Simplify durationImplGravatar jvoisin 1-7/+4
2024-02-28Inline some templating functionsGravatar jvoisin 1-18/+6
2024-02-28Make use of printer.Print when possibleGravatar jvoisin 1-4/+4
2024-02-24Make use of go≥1.21 slices package instead of hand-rolled loopsGravatar jvoisin 1-6/+2
This makes the code a tad smaller, moderner, and maybe even marginally faster, yay!
2023-11-08Avoid long duration strings: round to nearest secondGravatar Nick Parker 1-2/+8
For example, seeing "Next check: 14m56.245483933s" in feeds list after force-refreshing a feed. This rounds to the nearest second, so it'll instead be "14m56s" Other examples from latter two test cases: - "12.345678s" -> "12s" - "1m27.654321s" -> "1m28s"
2023-10-17Expose `next_check_at` in the web ui and APIGravatar Frédéric Guillot 1-1/+17
2023-08-13Rename internal url package to avoid overlap with net/urlGravatar Frédéric Guillot 1-3/+3
2023-08-10Move internal packages to an internal folderGravatar Frédéric Guillot 1-0/+216
For reference: https://go.dev/doc/go1.4#internalpackages