Browse Source

Only show percent confidence if there's a possible match.

pull/24/head
Ben Kurtovic 10 years ago
parent
commit
8c172fb032
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      templates/index.mako

+ 3
- 1
templates/index.mako View File

@@ -129,7 +129,9 @@
<li>No matches found.</li> <li>No matches found.</li>
% endif % endif
% endif % endif
<li><b><span class="mono">${round(result.confidence * 100, 1)}%</span></b> confidence of a violation.</li>
% if result.url:
<li><b><span class="mono">${round(result.confidence * 100, 1)}%</span></b> confidence of a violation.</li>
% endif
% if query.redirected_from: % if query.redirected_from:
<li>Redirected from <a href="${query.redirected_from.url}">${query.redirected_from.title | h}</a>. <a href="${request.url | httpsfix, h}&amp;noredirect=1">Check the original page.</a></li> <li>Redirected from <a href="${query.redirected_from.url}">${query.redirected_from.title | h}</a>. <a href="${request.url | httpsfix, h}&amp;noredirect=1">Check the original page.</a></li>
% endif % endif


Loading…
Cancel
Save