2015-11-13 17:04:42 +08:00
|
|
|
package types
|
|
|
|
|
2016-02-01 22:34:19 +08:00
|
|
|
/*
|
|
|
|
Package types is used to store the context struct which
|
|
|
|
is passed while templates are executed.
|
|
|
|
*/
|
2015-11-21 21:20:51 +08:00
|
|
|
//Task is the struct used to identify tasks
|
2015-11-13 17:04:42 +08:00
|
|
|
type Task struct {
|
2016-01-23 21:47:34 +08:00
|
|
|
Id int
|
|
|
|
Title string
|
|
|
|
Content string
|
|
|
|
Created string
|
|
|
|
Priority string
|
2015-11-13 17:04:42 +08:00
|
|
|
}
|
2015-11-21 21:20:51 +08:00
|
|
|
|
|
|
|
//Context is the struct passed to templates
|
|
|
|
type Context struct {
|
|
|
|
Tasks []Task
|
|
|
|
Navigation string
|
2015-11-21 22:12:44 +08:00
|
|
|
Search string
|
2015-11-22 11:51:29 +08:00
|
|
|
Message string
|
2016-01-18 09:02:15 +08:00
|
|
|
CSRFToken string
|
2015-11-21 21:20:51 +08:00
|
|
|
}
|