From 8c172fb032c66919d40331a7ce5676f7dc45e3f5 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 16 Jul 2014 03:08:26 -0400 Subject: [PATCH] Only show percent confidence if there's a possible match. --- templates/index.mako | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/index.mako b/templates/index.mako index 2ed95a5..543c70f 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -129,7 +129,9 @@
  • No matches found.
  • % endif % endif -
  • ${round(result.confidence * 100, 1)}% confidence of a violation.
  • + % if result.url: +
  • ${round(result.confidence * 100, 1)}% confidence of a violation.
  • + % endif % if query.redirected_from:
  • Redirected from ${query.redirected_from.title | h}. Check the original page.
  • % endif