mirror of
https://gitee.com/dcren/initializr.git
synced 2025-05-12 00:28:07 +08:00
Sort types and styles
This commit is contained in:
parent
7e69d4cc6a
commit
f8254bc961
@ -36,6 +36,10 @@ class MainController {
|
||||
model["styles"] << [name:"Remote Shell", value:"shell-remote"]
|
||||
model["styles"] << [name:"Mobile", value:"mobile"]
|
||||
model["types"] = [[name:"Maven POM", value:"pom.xml", selected: false], [name:"Maven Project", value:"starter.zip", selected: true], [name:"Gradle Build", value:"build.gradle", selected: false]]
|
||||
|
||||
// sort lists
|
||||
model["styles"] = model["styles"].sort { it.name }
|
||||
model["types"] = model["types"].sort { it.name }
|
||||
template "home.html", model
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user