Made all the templating work with gin instead

This commit is contained in:
2025-07-28 13:50:10 +01:00
parent 0d373d1990
commit 8b257a3e13
25 changed files with 140 additions and 270 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ func ExpensesGlobalPage(c *gin.Context) {
return
}
c.HTML(http.StatusOK, "terminal.html", gin.H{
c.HTML(http.StatusOK, "terminal", gin.H{
"page": "expenses",
"renderNavBar": true,
"content": "expenses",
@@ -96,7 +96,7 @@ func expensePage(c *gin.Context) {
return
}
c.HTML(http.StatusOK, "terminal.html", gin.H{
c.HTML(http.StatusOK, "terminal", gin.H{
"page": "expense",
"renderNavBar": false,
"content": "expense",
@@ -135,7 +135,7 @@ func newExpensePage(c *gin.Context) {
return
}
c.HTML(http.StatusOK, "terminal.html", gin.H{
c.HTML(http.StatusOK, "terminal", gin.H{
"page": "expenseNew",
"renderNavBar": false,
"content": "newExpense",