No match text is available for this file region.
+ {% endif %} +diff --git a/scancodeio/static/main.css b/scancodeio/static/main.css index f85577d7d1..b3601252bf 100644 --- a/scancodeio/static/main.css +++ b/scancodeio/static/main.css @@ -196,6 +196,21 @@ pre.wrap { pre.is-small { padding: 0.75rem 1rem; } +.license-match-text { + max-height: 24rem; + overflow: auto; +} +.license-match-comparison pre { + margin-bottom: 0.75rem; +} +.license-match-block { + border-top: 1px solid var(--bulma-border-weak); + padding-top: 0.75rem; +} +.license-match-block:first-child { + border-top: 0; + padding-top: 0; +} .nexb-orange { color: rgb(var(--nexb-orange)); } diff --git a/scanpipe/templates/scanpipe/includes/license_match_comparison.html b/scanpipe/templates/scanpipe/includes/license_match_comparison.html new file mode 100644 index 0000000000..7d7806125f --- /dev/null +++ b/scanpipe/templates/scanpipe/includes/license_match_comparison.html @@ -0,0 +1,16 @@ +
Matched text
+{{ match.matched_text|default:"" }}
+ Rule text
+{{ match.rule_text|default:"" }}
+ Diagnostic matched text
+{{ match.matched_text_diagnostics }}
+ {% endif %}
+No match text is available for this file region.
+ {% endif %} +