Commit Graph

4 Commits (47af34f1cd1b1860d0804e5c8addf24963e7bfd2)

Author SHA1 Message Date
Jan Dittberner ea9641cfb1 Refine HTML layout
This commit improves the page structure and unifies the layout. Some
reusable parts of the HTML code have been moved into
5 years ago
Jan Dittberner 5977eb5a7a Implement CSRF protection 6 years ago
Jan Dittberner 94dcb5bd75 Use static assets for HTML templates
- implement custom http.Filesystem boardvoting.AssetFS
- replace "footer" and "header" with "footer.html" and "header.html"
- change renderTemplate to use Assets
- use boardvoting.GetAssetFS() with http.Fileserver
6 years ago
Jan Dittberner 4dd5e09820 Embed database migrations
- switch from goose to
- move assets (static, templates, migrations) to boardvoting package
- add generated boardvoting/assets.go
- remove unused static files from static directory
- add package db with db migration configuration
6 years ago