Commit Graph

4 Commits (28ddbd2ce623d18c8b19eee49be9d7949a66886a)

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
page_fragments.html.
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 github.com/rubenv/sql-migrate
- 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