diff options
Diffstat (limited to 'd1pkgweb.go')
-rw-r--r-- | d1pkgweb.go | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/d1pkgweb.go b/d1pkgweb.go index d416e27..60c761f 100644 --- a/d1pkgweb.go +++ b/d1pkgweb.go @@ -48,6 +48,17 @@ li.dep_item{ margin-left: 35px; } +div.rec_list { + margin-top:20px; + margin-left: 20px; +} + +li.rec_item{ + margin-left: 35px; +} + + + </style> <div class="pkgname">{{.Name}} {{.Version}}</div> <div class="description"> @@ -61,10 +72,18 @@ li.dep_item{ <div class="dep_list"> Depends: <ul> -{{range .Depends}}<li class="dep_item">{{ . }}</li> -{{else}}<div>No depends</div>{{end}} +{{range .Depends}}<li class="dep_item">{{ . }}</li>{{end}} </ul> </div> + +<div class="rec_list"> +Recommends: +<ul> +{{range .Recommends}}<li class="rec_item">{{ . }}</li>{{end}} +</ul> +</div> + + <div class="maintainer"> Maintainer: {{.Maintainer}} </div> |