|
@@ -4,6 +4,7 @@ |
|
|
from copyvios.misc import cache |
|
|
from copyvios.misc import cache |
|
|
%>\ |
|
|
%>\ |
|
|
<%include file="/support/header.mako" args="title='Earwig\'s Copyvio Detector'"/> |
|
|
<%include file="/support/header.mako" args="title='Earwig\'s Copyvio Detector'"/> |
|
|
|
|
|
<%namespace module="copyvios.attribution" import="get_attribution_info"/>\ |
|
|
<%namespace module="copyvios.highlighter" import="highlight_delta"/>\ |
|
|
<%namespace module="copyvios.highlighter" import="highlight_delta"/>\ |
|
|
<%namespace module="copyvios.misc" import="httpsfix, urlstrip"/>\ |
|
|
<%namespace module="copyvios.misc" import="httpsfix, urlstrip"/>\ |
|
|
% if notice: |
|
|
% if notice: |
|
@@ -211,6 +212,14 @@ |
|
|
</table> |
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<% attrib = get_attribution_info(query.site, query.page) %> |
|
|
|
|
|
% if attrib: |
|
|
|
|
|
<% attrib_page = query.site.get_page(attrib.name) %> |
|
|
|
|
|
<div id="attribution-warning" class="yellow-box"> |
|
|
|
|
|
This article contains an attribution template: <tt>{{<a href="attrib_page.url">${attrib_page.title | h}</a>}}</tt>. Please verify that any potential copyvios are not from properly attributed sources. |
|
|
|
|
|
</div> |
|
|
|
|
|
% endif |
|
|
|
|
|
|
|
|
% if query.turnitin_result: |
|
|
% if query.turnitin_result: |
|
|
<div id="turnitin-container" class="${'red' if query.turnitin_result.reports else 'green'}-box"> |
|
|
<div id="turnitin-container" class="${'red' if query.turnitin_result.reports else 'green'}-box"> |
|
|
<div id="turnitin-title">Turnitin Results</div> |
|
|
<div id="turnitin-title">Turnitin Results</div> |
|
|