From 6cafb14991955805245614fcbcb4a50b5f1f96c1 Mon Sep 17 00:00:00 2001 From: Frances Hocutt Date: Fri, 18 Dec 2015 18:38:13 -0800 Subject: [PATCH] Fix wrapping issue; start reworking report display --- templates/index.mako | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/templates/index.mako b/templates/index.mako index dafc474..1e4340e 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -114,9 +114,8 @@ -
- - + + @@ -172,16 +171,18 @@ % if query.turnitin_result.reports:

Turnitin (through EranBot) found revisions that may have been plagiarized. Please review them.

+ + ## TODO: make this prettier/tabular %for report in turnitin_result.reports: - %endfor - +
Turnitin report ${report.reportid} for text added in revision ${loop.index} +## TODO: Rework this to something like: [Turnitin report](link) for [revision at timestamp](diff link). Requires API-result-parsing/TurnitinReport changes. Shouldn't be too bad. Reason: needs to make it clear that Turnitin is looking at individual revisions; current report does not.
    % for source in report.sources:
  • ${source['percent']}% of revision text (${source['words']} words) found at ${source['url']}
  • % endfor -
+
% else:

Turnitin (through EranBot) found no matching sources.