diff --git a/templates/index.mako b/templates/index.mako
index 032dec0..2cce0e6 100644
--- a/templates/index.mako
+++ b/templates/index.mako
@@ -163,7 +163,7 @@
% endif
- % if result.action == "search":
+ % if query.action == "search":
% for source in result.sources:
- ${source.url | h}: ${round(source.confidence * 100, 1)}
@@ -171,7 +171,7 @@
% endif
- % if result.action == "compare":
+ % if query.action == "compare":
- ${round(result.confidence * 100, 1)}% confidence of a violation.
% endif
% if query.redirected_from:
@@ -179,7 +179,7 @@
% endif
% if result.cached:
- Results are cachedTo save time (and money), this tool will retain the results of checks for up to 72 hours. This includes the URLs of the checked sources, but neither their content nor the content of the article. Future checks on the same page (assuming it remains unchanged) will not involve additional search queries, but a fresh comparison against the source URL will be made. If the page is modified, a new check will be run. from ${result.cache_age} ago. Originally generated in ${round(result.time, 3)} seconds using ${result.queries} queries. Bypass the cache.
- % elif result.action == "compare":
+ % elif query.action == "compare":
- Results generated in ${round(result.time, 3)} seconds.
% else:
- Results generated in ${round(result.time, 3)} seconds using ${result.queries} queries.