aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-04-23 02:17:31 +0200
committerMax Magorsch <arzano@gentoo.org>2020-04-23 02:17:47 +0200
commit27f9487a7b023e8631708655f135348605cd21fa (patch)
tree34e716667524c058378518a721242e8edd0f8c8c /web
parentFix the package page in case there is no homepage (diff)
downloadsoko-27f9487a7b023e8631708655f135348605cd21fa.tar.gz
soko-27f9487a7b023e8631708655f135348605cd21fa.tar.bz2
soko-27f9487a7b023e8631708655f135348605cd21fa.zip
Hide the useflag column if there are no useflags
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r--web/templates/packages/metadata.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/templates/packages/metadata.tmpl b/web/templates/packages/metadata.tmpl
index f255b52..c31141c 100644
--- a/web/templates/packages/metadata.tmpl
+++ b/web/templates/packages/metadata.tmpl
@@ -34,7 +34,7 @@
</li>
{{end}}
-
+ {{ if or .LocalUseflags .GlobalUseflags .UseExpands }}
<li class="kk-metadata-item list-group-item">
<div class="row">
<div class="col-xs-12 col-md-3 kk-metadata-key">
@@ -46,6 +46,7 @@
</div>
</div>
</li>
+ {{end}}
{{ if (index .Versions 0).License }}