From d41a74c5a5430c152da4f1257343fdbac9181c48 Mon Sep 17 00:00:00 2001 From: Filip ZybaƂa Date: Wed, 22 Apr 2020 09:32:19 +0200 Subject: Fixed alignment and colors of platform tags. Common tag is always #F4F4F4. Platform tags are now based on target instead of analysis platform --- plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'plugins/base/src/main/kotlin') diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 65441909..48f1adb8 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -50,8 +50,10 @@ open class HtmlRenderer( ) { div("platform-tagged") { node.platforms.forEach { - div("platform-tag ${it.platformType.name}") { - text(it.platformType.key.toUpperCase()) + val targets = it.targets.joinToString(", ") + div("platform-tag") { + if( targets == "common" ) classes = classes + "common" + text(it.targets.joinToString(", ")) } } div("content") { @@ -151,8 +153,10 @@ open class HtmlRenderer( } td("platform-tagged") { it.platforms.forEach { - div(("platform-tag ${it.platformType.key}")) { - text(it.platformType.key.toUpperCase()) + div(("platform-tag")) { + val targets = it.targets.joinToString(", ") + if( targets == "common" ) classes = classes + "common" + text(it.targets.joinToString(", ")) } } } -- cgit