diff --git a/static/style.css b/static/style.css index c3ad35a..8c8d42e 100644 --- a/static/style.css +++ b/static/style.css @@ -193,6 +193,10 @@ span#redirected-from { font-style: italic; } +span#result-head-no-sources { + font-style: italic; +} + a#source-selected { font-weight: bold; } diff --git a/templates/index.mako b/templates/index.mako index 41aef23..7c7f1dd 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -154,44 +154,42 @@ % endif
- % if query.action == "search" and not result.sources: -

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

- % else: - - - + + +
- ${query.page.title | h} - % if query.oldid: - @${query.oldid | h} - % endif - % if query.redirected_from: -
- Redirected from ${query.redirected_from.title | h}. Check original. + + + + - - - -
+ ${query.page.title | h} + % if query.oldid: + @${query.oldid | h} + % endif + % if query.redirected_from: +
+ Redirected from ${query.redirected_from.title | h}. Check original. + % endif +
+
+ % if result.confidence >= T_SUSPECT: + Violation Suspected + % elif result.confidence >= T_POSSIBLE: + Violation Possible + % elif result.sources: + Violation Unlikely + % else: + No Violation % endif -
-
- % if result.confidence >= T_SUSPECT: - Violation Suspected - % elif result.confidence >= T_POSSIBLE: - Violation Possible - % else: - Violation Unlikely - % endif -
-
${round(result.confidence * 100, 1)}%
-
confidence
-
${result.url | urlstrip, h}
- % endif + +
${round(result.confidence * 100, 1)}%
+
confidence
+
+ % if result.url: + ${result.url | urlstrip, h} + % else: + No matches found. + % endif +
% if query.action == "search": <% skips = False %>