From 297b61b182db196a68d1b112b8a218f6fb56cd7b Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 16 Jul 2014 02:04:07 -0400 Subject: [PATCH] Fix a margin; clean up cache message. --- static/style.css | 1 + templates/index.mako | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/static/style.css b/static/style.css index 0bd4f81..25720a4 100644 --- a/static/style.css +++ b/static/style.css @@ -64,6 +64,7 @@ table#cv-form { table#cv-chain-table { width: 100%; + margin-bottom: 10px; border-spacing: 10px 0; } diff --git a/templates/index.mako b/templates/index.mako index c46823b..0713d3f 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -131,14 +131,15 @@ % endif
  • ${round(result.confidence * 100, 1)}% confidence of a violation.
  • % if result.cached: -
  • Results are cached - To save time (and money), this tool will retain the results of checks for up to 72 hours. This includes the URL of the "violated" source, but neither its 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_time} (${result.cache_age} ago). Bypass the cache.
  • - % if result.queries: -
  • Retrieved from cache in ${round(result.time, 3)} seconds (originally generated in ${round(result.original_time, 3)}s using ${result.queries} queries; ${round(result.original_time - result.time, 3)}s saved).
  • - % else: -
  • Retrieved from cache in ${round(result.time, 3)} seconds (originally generated in ${round(result.original_time, 3)}s; ${round(result.original_time - result.time, 3)}s saved).
  • - % endif +
  • + Results are cachedTo save time (and money), this tool will retain the results of checks for up to 72 hours. This includes the URL of the "violated" source, but neither its 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. Retrieved in ${round(result.time, 3)} seconds (originally generated in + % if result.queries: + ${round(result.original_time, 3)}s using ${result.queries} queries). + % else: + ${round(result.original_time, 3)}s). + % endif + Bypass the cache. +
  • % else:
  • Results generated in ${round(result.time, 3)} seconds using ${result.queries} queries.
  • % endif