Explorar el Código

Pluralize queries; clean up duplication.

pull/24/head
Ben Kurtovic hace 9 años
padre
commit
8acc6b7374
Se han modificado 1 ficheros con 7 adiciones y 4 borrados
  1. +7
    -4
      templates/index.mako

+ 7
- 4
templates/index.mako Ver fichero

@@ -142,12 +142,15 @@
</form>
% if result:
<div id="generation-time">
Results
% 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 query.action == "search":
Results generated in <span class="mono">${round(result.time, 3)}</span> seconds using <span class="mono">${result.queries}</span> queries.
<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
% endif
generated in <span class="mono">${round(result.time, 3)}</span>
% if query.action == "search":
seconds using <span class="mono">${result.queries}</span> quer${"y" if result.queries == 1 else "ies"}.
% else:
Results generated in <span class="mono">${round(result.time, 3)}</span> seconds.
seconds.
% endif
</div>
<div id="cv-result" class="${'red' if result.confidence >= T_SUSPECT else 'yellow' if result.confidence >= T_POSSIBLE else 'green'}-box">


Cargando…
Cancelar
Guardar