Skip to content

Commit

Permalink
feat: version on index page
Browse files Browse the repository at this point in the history
  • Loading branch information
lumpsoid committed Jul 5, 2024
1 parent 4a10ad6 commit 594b431
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/server/webapi/handlers/index_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
var Index = server.Get("/", func(s *server.Server) echo.HandlerFunc {
return func(c echo.Context) error {
return c.Render(http.StatusOK, "index.html", map[string]interface{}{
"version": "0.0.3",
"version": "0.5.1",
})
}
})
12 changes: 7 additions & 5 deletions web/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
</head>

<body>
<h1>Expenses management</h1>
<h1>Expenses management
<span style="font-size: small; font-weight: normal;">{{.version}}</span>
</h1>
<div>
<h2>Add bill</h2>
<ul>
Expand All @@ -24,21 +26,21 @@ <h2>Add bill</h2>
<h2>Management</h2>
<ul>
<li>
<a href="{{call .reverse "browse-landing"}}">Browse</a>
<a href="{{call .reverse " browse-landing"}}">Browse</a>
</li>
<li>
<a href="{{call .reverse "search"}}">Search</a>
<a href="{{call .reverse " search"}}">Search</a>
</li>
</ul>
</div>
<div>
<h2>DB</h2>
<ul>
<li>
<a href="{{call .reverse "db-save"}}">Backup</a>
<a href="{{call .reverse " db-save"}}">Backup</a>
</li>
<li>
<a href="{{call .reverse "db-upload"}}">Upload</a>
<a href="{{call .reverse " db-upload"}}">Upload</a>
</li>
</ul>
</div>
Expand Down

0 comments on commit 594b431

Please sign in to comment.