Commit graph

23 commits

Author SHA1 Message Date
5977eb5a7a Implement CSRF protection 2018-03-31 10:50:06 +02:00
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
2018-03-29 21:26:12 +02:00
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
2018-03-29 20:08:41 +02:00
e5d0b98514 Improve denied error page and output current authenticated user 2018-01-14 14:25:41 +01:00
14ed5a5020 Change motion content formatting
Use a linebreak sensitive paragraph instead of <pre> for motion content
output.
2017-05-14 15:01:12 +02:00
c48bd9e356 Use Semantic UI for all HTML templates 2017-04-30 02:37:29 +02:00
4d23b6a48f Switch to more flexible go-logging
This commit switches from loggo to the more flexible go-logging
framework. Logs of severity INFO or higher are now written to a separate
boardvoting.log file.

Errors during execution of mail templates are now logged.

A reasoning for the vote result is now logged and put into the mail
notification when a decision is closed.
2017-04-22 20:07:39 +02:00
5a449926f4 Use loggo for logging 2017-04-22 00:14:38 +02:00
fd0a8ed972 Run goose migration on application startup 2017-04-22 00:14:38 +02:00
8d1f18e16d Implement direct voting 2017-04-22 00:14:11 +02:00
2cac50ee86 Implement proxy voting 2017-04-22 00:14:08 +02:00
b6ad5d8ad3 Implement reminder job 2017-04-22 00:12:38 +02:00
dcdd5f715f Implement decision closing job 2017-04-22 00:12:38 +02:00
2de96dc13d Implement vote closing, refactor notifications 2017-04-22 00:12:38 +02:00
0ce9ad6dcc Implement withdraw motion 2017-04-22 00:12:38 +02:00
bc194e8943 Implement motion editing 2017-04-22 00:12:38 +02:00
cc0f5c0b7b Implement motion creation mail template 2017-04-22 00:12:38 +02:00
bcfbad42b6 Add version and build number output 2017-04-22 00:12:32 +02:00
471daf12ea Partialy add new motion creation 2017-04-22 00:12:32 +02:00
e0be1a6aa5 Switch to context API 2017-04-22 00:12:24 +02:00
6fe515ea52 Implement proper model, actions and template structure 2017-04-22 00:12:24 +02:00
f4360b98c8 Implement more RESTful URLs for motions
This commit implements URLs /motions/ and /motions/{:tag} handlers.
2017-04-22 00:12:24 +02:00
74987ce184 Initial Go code for reimplementation 2017-04-15 19:23:40 +02:00