| @@ -114,9 +114,8 @@ | |||||
| <input id="cv-cb-links" class="cv-search" type="checkbox" name="use_links" value="1" ${'checked="checked"' if (query.use_links != "0") else ""} /> | <input id="cv-cb-links" class="cv-search" type="checkbox" name="use_links" value="1" ${'checked="checked"' if (query.use_links != "0") else ""} /> | ||||
| <label for="cv-cb-links">Use links in page</label> | <label for="cv-cb-links">Use links in page</label> | ||||
| <input class="cv-search" type="hidden" name="use_links" value="0" /> | <input class="cv-search" type="hidden" name="use_links" value="0" /> | ||||
| <br> | |||||
| <input id="cv-cb-turnitin" class="cv-search" type="checkbox" name="turnitin" value="1" ${'checked="checked"' if (query.turnitin != "0") else ""}/> | |||||
| <label for="cv-cb-turnitin">Find reports through Turnitin</label> | |||||
| <span style="white-space:nowrap"><input id="cv-cb-turnitin" class="cv-search" type="checkbox" name="turnitin" value="1" ${'checked="checked"' if (query.turnitin != "0") else ""}/> | |||||
| <label for="cv-cb-turnitin">Search Turnitin reports</label></span> | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| @@ -172,16 +171,18 @@ | |||||
| % if query.turnitin_result.reports: | % if query.turnitin_result.reports: | ||||
| <p>Turnitin (through <a href="https://en.wikipedia.org/wiki/User:EranBot">EranBot</a>) found revisions that may have been plagiarized. Please review them.</p> | <p>Turnitin (through <a href="https://en.wikipedia.org/wiki/User:EranBot">EranBot</a>) found revisions that may have been plagiarized. Please review them.</p> | ||||
| <table id="turnitin-table"><tbody> | |||||
| ## TODO: make this prettier/tabular | |||||
| %for report in turnitin_result.reports: | %for report in turnitin_result.reports: | ||||
| <ul> | |||||
| <li><a href="https://tools.wmflabs.org/eranbot/ithenticate.py?rid=${report.reportid}">Turnitin report ${report.reportid}</a> | |||||
| <tr><td><a href="https://tools.wmflabs.org/eranbot/ithenticate.py?rid=${report.reportid}">Turnitin report ${report.reportid} for text added in revision ${loop.index}</a> | |||||
| ## 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. | |||||
| <ul> | <ul> | ||||
| % for source in report.sources: | % for source in report.sources: | ||||
| <li> ${source['percent']}% of revision text (${source['words']} words) found at <a href="${source['url']}">${source['url']}</a></li> | <li> ${source['percent']}% of revision text (${source['words']} words) found at <a href="${source['url']}">${source['url']}</a></li> | ||||
| % endfor | % endfor | ||||
| </ul></li> | |||||
| </ul></td></tr> | |||||
| %endfor | %endfor | ||||
| </ul> | |||||
| </tbody></table> | |||||
| % else: | % else: | ||||
| <p>Turnitin (through <a href="https://en.wikipedia.org/wiki/User:EranBot">EranBot</a>) found no matching sources.</p> | <p>Turnitin (through <a href="https://en.wikipedia.org/wiki/User:EranBot">EranBot</a>) found no matching sources.</p> | ||||