|
@@ -141,27 +141,25 @@ |
|
|
</table> |
|
|
</table> |
|
|
</form> |
|
|
</form> |
|
|
% if result: |
|
|
% if result: |
|
|
% if query.action == "compare": |
|
|
|
|
|
<div id="generation-time">Results generated in <span class="mono">${round(result.time, 3)}</span> seconds.</div> |
|
|
|
|
|
% endif |
|
|
|
|
|
|
|
|
<div id="generation-time"> |
|
|
|
|
|
% if result.cached: |
|
|
|
|
|
Results <a id="cv-cached" href="#">cached<span>To 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.</span></a> from <abbr title="${result.cache_time}">${result.cache_age} ago</abbr>. Originally generated in <span class="mono">${round(result.time, 3)}</span> seconds using <span class="mono">${result.queries}</span> queries. |
|
|
|
|
|
% elif result.action == "search": |
|
|
|
|
|
Results generated in <span class="mono">${round(result.time, 3)}</span> seconds using <span class="mono">${result.queries}</span> queries. |
|
|
|
|
|
% else: |
|
|
|
|
|
Results generated in <span class="mono">${round(result.time, 3)}</span> seconds. |
|
|
|
|
|
% endif |
|
|
|
|
|
</div> |
|
|
<div id="cv-result" class="${'red' if result.confidence >= T_SUSPECT else 'yellow' if result.confidence >= T_POSSIBLE else 'green'}-box"> |
|
|
<div id="cv-result" class="${'red' if result.confidence >= T_SUSPECT else 'yellow' if result.confidence >= T_POSSIBLE else 'green'}-box"> |
|
|
% if query.action == "search": |
|
|
|
|
|
|
|
|
% if query.action == "search" and not result.sources: |
|
|
<h2 id="cv-result-header"> |
|
|
<h2 id="cv-result-header"> |
|
|
% if result.confidence >= T_POSSIBLE: |
|
|
|
|
|
<a href="${query.page.url}">${query.page.title | h}</a> |
|
|
|
|
|
% if query.oldid: |
|
|
|
|
|
@<a href="//${query.site.domain | h}/w/index.php?oldid=${query.oldid | h}">${query.oldid | h}</a> |
|
|
|
|
|
% endif |
|
|
|
|
|
is a ${"suspected" if result.confidence >= T_SUSPECT else "possible"} violation of <a href="${result.url | h}">${result.url | urlstrip, h}</a>. |
|
|
|
|
|
|
|
|
% if query.oldid: |
|
|
|
|
|
No violations detected in <a href="${query.page.url}">${query.page.title | h}</a> @<a href="//${query.site.domain | h}/w/index.php?oldid=${query.oldid | h}">${query.oldid | h}</a>. |
|
|
% else: |
|
|
% else: |
|
|
% if query.oldid: |
|
|
|
|
|
No violations detected in <a href="${query.page.url}">${query.page.title | h}</a> @<a href="//${query.site.domain | h}/w/index.php?oldid=${query.oldid | h}">${query.oldid | h}</a>. |
|
|
|
|
|
% else: |
|
|
|
|
|
No violations detected in <a href="${query.page.url}">${query.page.title | h}</a>. |
|
|
|
|
|
% endif |
|
|
|
|
|
|
|
|
No violations detected in <a href="${query.page.url}">${query.page.title | h}</a>. |
|
|
% endif |
|
|
% endif |
|
|
</h2> |
|
|
</h2> |
|
|
% elif query.action == "compare": |
|
|
|
|
|
|
|
|
% else: |
|
|
<table id="cv-result-head-table"> |
|
|
<table id="cv-result-head-table"> |
|
|
<tr> |
|
|
<tr> |
|
|
<td> |
|
|
<td> |
|
@@ -192,8 +190,8 @@ |
|
|
</table> |
|
|
</table> |
|
|
% endif |
|
|
% endif |
|
|
</div> |
|
|
</div> |
|
|
<% skips = False %> |
|
|
|
|
|
% if query.action == "search": |
|
|
% if query.action == "search": |
|
|
|
|
|
<% skips = False %> |
|
|
<div id="sources-container"> |
|
|
<div id="sources-container"> |
|
|
<div id="sources-title">Checked Sources</div> |
|
|
<div id="sources-title">Checked Sources</div> |
|
|
% if result.sources: |
|
|
% if result.sources: |
|
@@ -225,29 +223,21 @@ |
|
|
% endfor |
|
|
% endfor |
|
|
</table> |
|
|
</table> |
|
|
% else: |
|
|
% else: |
|
|
<div id="cv-no-sources"> |
|
|
|
|
|
<span class="source-footer-text">No sources checked.</span> |
|
|
|
|
|
|
|
|
<div class="cv-source-footer"> |
|
|
|
|
|
No sources checked. |
|
|
</div> |
|
|
</div> |
|
|
% endif |
|
|
% endif |
|
|
% if len(result.sources) > 10: |
|
|
% if len(result.sources) > 10: |
|
|
<div id="cv-additional"> |
|
|
|
|
|
<span class="source-footer-text">${len(result.sources) - 10} URL${"s" if len(result.sources) > 11 else ""} with lower confidence hidden.</span> <a id="show-additional-sources" href="#">Show them.</a> |
|
|
|
|
|
|
|
|
<div id="cv-additional" class="cv-source-footer"> |
|
|
|
|
|
${len(result.sources) - 10} URL${"s" if len(result.sources) > 11 else ""} with lower confidence hidden. <a id="show-additional-sources" href="#">Show them.</a> |
|
|
</div> |
|
|
</div> |
|
|
% endif |
|
|
% endif |
|
|
</div> |
|
|
|
|
|
<ul id="cv-result-list"> |
|
|
|
|
|
% 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}&noredirect=1">Check the original page.</a></li> |
|
|
|
|
|
% endif |
|
|
|
|
|
% if skips: |
|
|
% if skips: |
|
|
<li>Since a suspected source was found with a high confidence value, some URLs were skipped. <a href="${request.url | httpsfix, h}&noskip=1">Check all URLs.</a></li> |
|
|
|
|
|
% endif |
|
|
|
|
|
% if result.cached: |
|
|
|
|
|
<li>Results are <a id="cv-cached" href="#">cached<span>To 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.</span></a> from <abbr title="${result.cache_time}">${result.cache_age} ago</abbr>. Originally generated in <span class="mono">${round(result.time, 3)}</span> seconds using <span class="mono">${result.queries}</span> queries. <a href="${request.url | httpsfix, h}&nocache=1">Bypass the cache.</a></li> |
|
|
|
|
|
% else: |
|
|
|
|
|
<li>Results generated in <span class="mono">${round(result.time, 3)}</span> seconds using <span class="mono">${result.queries}</span> queries.</li> |
|
|
|
|
|
|
|
|
<div class="cv-source-footer"> |
|
|
|
|
|
Since a suspected source was found with a high confidence value, some URLs were skipped. <a href="${request.url | httpsfix, h}&noskip=1">Check all URLs.</a> |
|
|
|
|
|
</div> |
|
|
% endif |
|
|
% endif |
|
|
</ul> |
|
|
|
|
|
|
|
|
</div> |
|
|
% endif |
|
|
% endif |
|
|
<div id="cv-chain-container"> |
|
|
<div id="cv-chain-container"> |
|
|
<table id="cv-chain-table"> |
|
|
<table id="cv-chain-table"> |
|
|