diff --git a/templates/index.mako b/templates/index.mako index 6f92c3a..42d4b71 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -113,20 +113,21 @@ <% hide_comparison = "CopyviosHideComparison" in g.cookies and g.cookies["CopyviosHideComparison"].value == "True" %>
- % if result.confidence >= T_POSSIBLE: - <% vio_type = "suspected" if result.confidence >= T_SUSPECT else "possible" %> - % if query.oldid: -

${query.page.title | h} @${query.oldid | h} is a ${vio_type} violation of ${result.url | urlstrip, h}.

- % else: -

${query.page.title | h} is a ${vio_type} violation of ${result.url | urlstrip, h}.

- % endif - % else: - % if query.oldid: -

No violations detected in ${query.page.title | h} @${query.oldid | h}.

+

+ % if result.confidence >= T_POSSIBLE: + ${query.page.title | h} + % if query.oldid: + @${query.oldid | h} + % endif + is a ${"suspected" if result.confidence >= T_SUSPECT else "possible"} violation of ${result.url | urlstrip, h}. % else: -

No violations detected in ${query.page.title | h}.

+ % if query.oldid: + No violations detected in ${query.page.title | h} @${query.oldid | h}. + % else: + No violations detected in ${query.page.title | h}. + % endif % endif - % endif +