diff --git a/lib/repo.go b/lib/repo.go index b39a78c..2de5068 100644 --- a/lib/repo.go +++ b/lib/repo.go @@ -29,7 +29,7 @@ type Package struct { Repo string Desc string Size string - Sum string + Deps string URL string Ver string } @@ -61,11 +61,11 @@ func LoadPackgae(sec *ini.Section) (Package, error) { } pkg.Size = SizeFromBytes(size) - k, err = sec.GetKey("sum") + k, err = sec.GetKey("depends") if err != nil { return pkg, err } - pkg.Sum = k.String() + pkg.Deps = k.String() return pkg, nil } diff --git a/public/style.css b/public/style.css index 60c763a..40679e0 100644 --- a/public/style.css +++ b/public/style.css @@ -142,6 +142,7 @@ form select { table { margin-top: 20px; border-collapse: collapse; + width: 100%; } table tr { diff --git a/templates/index.html b/templates/index.html index 02286ea..66bacee 100644 --- a/templates/index.html +++ b/templates/index.html @@ -35,7 +35,8 @@ Repo Version Size - Desc + Description + Dependencies {{range .pkgs}} @@ -44,6 +45,7 @@ {{.Ver }} {{.Size}} {{.Desc}} + {{.Deps}} {{end}}