aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-02 17:38:00 +0200
committerMax Magorsch <arzano@gentoo.org>2020-06-02 17:38:00 +0200
commit1fa4c179516d8be70352cc60164292465b0de928 (patch)
treed516e3507090fb99adcee8dcee258734baebff1a /web
parentUse localstorage to store devMode decision (diff)
downloadsoko-1fa4c179516d8be70352cc60164292465b0de928.tar.gz
soko-1fa4c179516d8be70352cc60164292465b0de928.tar.bz2
soko-1fa4c179516d8be70352cc60164292465b0de928.zip
Clean up the template of the pkgcheck results
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r--web/templates/packages/versionrow.tmpl19
-rw-r--r--web/templates/packages/versions.tmpl22
2 files changed, 25 insertions, 16 deletions
diff --git a/web/templates/packages/versionrow.tmpl b/web/templates/packages/versionrow.tmpl
index a50fd5a..764beb9 100644
--- a/web/templates/packages/versionrow.tmpl
+++ b/web/templates/packages/versionrow.tmpl
@@ -68,13 +68,18 @@
</tr>
{{ if .PkgCheckResults }}
- <tr class="text-muted dev-mode d-none">
- <td colspan="11" class="kk-version kk-cell-sep-right">
- {{ range .PkgCheckResults }}
- <strong>{{ .Class }}:</strong> {{ .Message }} <br/>
- {{end}}
- </td>
- </tr>
+ {{ range .PkgCheckResults }}
+ <tr class="text-muted dev-mode d-none">
+ <td colspan="1" class="kk-version kk-cell-sep-right">
+ <strong>{{ .Class }}</strong>
+ </td>
+ <td colspan="10" class="kk-version kk-cell-sep-right">
+
+ {{ .Message }}
+
+ </td>
+ </tr>
+ {{end}}
{{end}}
{{end}}
diff --git a/web/templates/packages/versions.tmpl b/web/templates/packages/versions.tmpl
index 0a1a1d8..3e3bbef 100644
--- a/web/templates/packages/versions.tmpl
+++ b/web/templates/packages/versions.tmpl
@@ -36,15 +36,18 @@
</tr>
{{ if .Package.PkgCheckResults }}
- <tr class="text-muted dev-mode d-none">
- <td colspan="11" class="kk-version kk-cell-sep-right">
- {{ range $.Package.PkgCheckResults }}
- {{ if not .Version }}
- <strong>{{ .Class }}:</strong> {{ .Message }} <br/>
- {{end}}
- {{end}}
- </td>
- </tr>
+ {{ range $.Package.PkgCheckResults }}
+ {{ if not .Version }}
+ <tr class="text-muted dev-mode d-none">
+ <td colspan="1" class="kk-version kk-cell-sep-right">
+ <strong>{{ .Class }}</strong>
+ </td>
+ <td colspan="10" class="kk-version kk-cell-sep-right">
+ {{ .Message }}
+ </td>
+ </tr>
+ {{end}}
+ {{end}}
{{end}}
{{range $index, $element := .Package.Versions}}
@@ -55,3 +58,4 @@
</div>
</div>
{{end}}
+< \ No newline at end of file