add support for project inactivity, added new checkbox component.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -14,15 +14,11 @@ import (
|
||||
func Project(g *gin.RouterGroup, db database.Database) {
|
||||
l := services.Loader{DB: db}
|
||||
|
||||
defaultActive := true
|
||||
|
||||
g.GET("/", handler("projects", func(c *gin.Context) (interface{}, error) {
|
||||
filter := models.ProjectFilter{}
|
||||
if setting := c.Query("active"); setting != "" {
|
||||
active := setting == "true"
|
||||
filter.Active = &active
|
||||
} else {
|
||||
filter.Active = &defaultActive
|
||||
}
|
||||
if setting := c.Query("expiring"); setting != "" {
|
||||
filter.Expiring = setting == "true"
|
||||
|
||||
Reference in New Issue
Block a user