From 21bbbbdfeab31f28fe8f2be2b4ec194e6ed786e7 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 20 Jan 2016 01:52:49 -0600 Subject: [PATCH] Reorder/tweak template more. --- static/style.css | 24 ++++++++++++------------ templates/index.mako | 45 +++++++++++++++++++++++---------------------- 2 files changed, 35 insertions(+), 34 deletions(-) diff --git a/static/style.css b/static/style.css index da19a33..c9ce040 100644 --- a/static/style.css +++ b/static/style.css @@ -63,22 +63,16 @@ div#info-box { margin: 10px 5px; } -div#turnitin-container { - padding: 5px 10px; - margin: 15px 5px 10px 5px; -} - -div#turnitin-title { - margin-bottom: -5px; - text-align: center; - font-weight: bold; -} - div#cv-result { padding: 5px; margin: 10px 5px; } +div#turnitin-container { + padding: 5px; + margin: 15px 5px 10px 5px; +} + div#sources-container { padding: 5px 10px; margin: 15px 5px 10px 5px; @@ -86,12 +80,17 @@ div#sources-container { border: 1px solid #BBB; } -div#sources-title { +div#turnitin-title, div#sources-title { margin-bottom: -5px; text-align: center; font-weight: bold; } +div#turnitin-summary { + padding-bottom: 5px; + font-style: italic; +} + div#cv-additional { display: none; } @@ -146,6 +145,7 @@ table#cv-result-head-table { width: 100%; text-align: center; table-layout: fixed; + border-spacing: 0; } table#cv-result-head-table col:nth-child(odd) { diff --git a/templates/index.mako b/templates/index.mako index d1da714..5aed91d 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -167,28 +167,6 @@ Permalink. - % if query.turnitin_result: -
-
Turnitin Results
- % if query.turnitin_result.reports: -

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

- - - % for report in turnitin_result.reports: - - % endfor -
Turnitin report ${report.reportid} for text added at ${report.time_posted}: -
    - % 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.

- % endif -
- % endif -
@@ -232,6 +210,29 @@
+ + % if query.turnitin_result: +
+
Turnitin Results
+ % if query.turnitin_result.reports: +

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

+ + + % for report in turnitin_result.reports: + + % endfor +
Turnitin report ${report.reportid} for text added at ${report.time_posted}: +
    + % for source in report.sources: +
  • ${source['percent']}% of revision text (${source['words']} words) found at ${source['url']}
  • + % endfor +
+ % else: +
No matching sources found.
+ % endif +
+ % endif + % if query.action == "search": <% skips = False %>