From c1810ee269f46dd2f764f76723d9909a53b4c289 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 5 Sep 2013 03:48:00 -0400 Subject: [PATCH] Input field for specifying a revision ID. --- pages/index.mako | 63 +++++++++++++++++++++++++++++++++-------------------- pages/settings.mako | 3 +-- static/style.css | 35 ++++++++++++++++++++--------- 3 files changed, 65 insertions(+), 36 deletions(-) diff --git a/pages/index.mako b/pages/index.mako index f9986d1..4af6c01 100644 --- a/pages/index.mako +++ b/pages/index.mako @@ -19,10 +19,10 @@

This tool attempts to detect copyright violations in articles. Simply give the title of the page or ID of the revision you want to check and hit Submit. The tool will search for similar content elsewhere on the web and display a report if a match is found. If you also provide a URL, it will not query any search engines and instead display a report comparing the article to that particular webpage, like the Duplication Detector. Check out the FAQ for more information and technical details.

Note: The tool is still in beta. You are completely welcome to use it and provide feedback, but be aware that it may produce strange or broken results.

- +
- - - % if page: - - % elif query.title: - - % else: - - % endif + + + + - - % if query.url: - - % else: - - % endif + + % if query.nocache or (result and result.cached): - - % if query.nocache: - - % else: - - % endif + + % endif - - +
Site: + http://
Page title:Page title: + % if page: + + % elif query.title: + + % else: + + % endif + or revision ID: + % if query.oldid: + + % else: + + %endif +
URL (optional):URL (optional): + % if query.url: + + % else: + + % endif +
Bypass cache:Bypass cache: + % if query.nocache: + + % else: + + % endif +
+ +
diff --git a/pages/settings.mako b/pages/settings.mako index a62c644..663732c 100644 --- a/pages/settings.mako +++ b/pages/settings.mako @@ -60,11 +60,10 @@ % endfor - + - diff --git a/static/style.css b/static/style.css index 1aa3222..1d41e40 100644 --- a/static/style.css +++ b/static/style.css @@ -78,11 +78,32 @@ p#links { margin: 8px 0 10px 0; } +table#cv-form { + width: 750px; +} + table#cv-chain-table { width: 100%; border-spacing: 10px; } +td#cv-col1 { + width: 15%; +} + +td#cv-col2 { + width: 55%; +} + +td#cv-col3 { + width: 15%; + text-align: center; +} + +td#cv-col4 { + width: 15%; +} + h2#cv-result-header { margin-bottom: 0; } @@ -149,21 +170,15 @@ div.cv-chain-detail { border: 1px solid #BBB; } -p.toolname { - font-size: 18px; - margin: 6px 0 6px 0; - background-color: #E7E7E7; -} - -p.tooldesc { - margin: 6px 0 6px 0; -} - td.cv-chain-cell { width: 50%; vertical-align: top; } +input.cv-text { + width: 100%; +} + span.cv-hl { background: #FAA; }