Переглянути джерело

Show "no matches found" if result.url is None.

pull/24/head
Ben Kurtovic 11 роки тому
джерело
коміт
1f9dafb81d
1 змінених файлів з 5 додано та 1 видалено
  1. +5
    -1
      pages/copyvios.mako

+ 5
- 1
pages/copyvios.mako Переглянути файл

@@ -91,7 +91,11 @@
% endif % endif
<ul id="cv-result-list"> <ul id="cv-result-list">
% if not result.violation and not query.url: % if not result.violation and not query.url:
<li>Best match: <a href="${result.url | h}">${result.url | urlstrip, h}</a>.</li>
% if result.url:
<li>Best match: <a href="${result.url | h}">${result.url | urlstrip, h}</a>.</li>
% else:
<li>No matches found.</li>
% endif
% endif % endif
<li><b><tt>${round(result.confidence * 100, 1)}%</tt></b> confidence of a violation.</li> <li><b><tt>${round(result.confidence * 100, 1)}%</tt></b> confidence of a violation.</li>
% if result.cached: % if result.cached:


Завантаження…
Відмінити
Зберегти