31 lines
837 B
Go
31 lines
837 B
Go
|
package repolist
|
||
|
|
||
|
import "go.wit.com/gui"
|
||
|
|
||
|
// This creates a view of the repos
|
||
|
// you can only have one at this point
|
||
|
func GuireleaserView(parent *gui.Node) *RepoList {
|
||
|
if me != nil {
|
||
|
return me
|
||
|
}
|
||
|
me = new(RepoList)
|
||
|
me.allrepos = make(map[string]*Repo)
|
||
|
me.viewName = "guireleaser"
|
||
|
|
||
|
// me.reposbox = gui.RawBox()
|
||
|
me.reposbox = parent
|
||
|
|
||
|
me.reposgroup = me.reposbox.NewGroup("go repositories (configure in ~/.config/myrepolist)")
|
||
|
me.reposgrid = me.reposgroup.NewGrid("test", 0, 0)
|
||
|
|
||
|
me.reposgrid.NewLabel("") // path goes here
|
||
|
me.reposgrid.NewLabel("last tag").SetProgName("last tag")
|
||
|
me.reposgrid.NewLabel("master version")
|
||
|
me.reposgrid.NewLabel("Status")
|
||
|
me.reposgrid.NewLabel("GO Status")
|
||
|
me.reposgrid.NewLabel("Current Version").SetProgName("Current Version")
|
||
|
me.reposgrid.NextRow()
|
||
|
me.blind = gui.RawBox()
|
||
|
return me
|
||
|
}
|