| @@ -6,34 +6,26 @@ | |||||
| <%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 query.submitted: | % if query.submitted: | ||||
| % if query.error == "bad action": | |||||
| <div id="info-box" class="red-box"> | |||||
| <p>Unknown action: <b><span class="mono">${query.action | h}</span></b>.</p> | |||||
| </div> | |||||
| % elif query.error == "no search method": | |||||
| <div id="info-box" class="red-box"> | |||||
| <p>No copyvio search methods were selected. A check can only be made using a search engine, links present in the page, or both.</p> | |||||
| </div> | |||||
| % elif query.error == "no URL": | |||||
| <div id="info-box" class="red-box"> | |||||
| <p>URL comparison mode requires a URL to be entered. Enter one in the text box below, or choose copyvio search mode to look for content similar to the article elsewhere on the web.</p> | |||||
| </div> | |||||
| % elif query.error == "bad URI": | |||||
| <div id="info-box" class="red-box"> | |||||
| <p>Unsupported URI scheme: <a href="${query.url | h}">${query.url | h}</a>.</p> | |||||
| </div> | |||||
| % elif query.error == "no data": | |||||
| <div id="info-box" class="red-box"> | |||||
| <p>Couldn't find any text in <a href="${query.url | h}">${query.url | h}</a>. <i>Note:</i> only HTML and plain text pages are supported, and content generated by JavaScript or found inside iframes is ignored.</p> | |||||
| </div> | |||||
| % elif query.error == "timeout": | |||||
| <div id="info-box" class="red-box"> | |||||
| <p>The URL <a href="${query.url | h}">${query.url | h}</a> timed out before any data could be retrieved.</p> | |||||
| </div> | |||||
| % elif query.error == "search error": | |||||
| <div id="info-box" class="red-box"> | |||||
| <p>An error occurred while using the search engine (${query.exception}). Try reloading the page. If the error persists, <a href="${request.url | httpsfix, h}&use_engine=0">repeat the check without using the search engine</a>.</p> | |||||
| </div> | |||||
| % if query.error: | |||||
| <div id="info-box" class="red-box"><p> | |||||
| % if query.error == "bad action": | |||||
| Unknown action: <b><span class="mono">${query.action | h}</span></b>. | |||||
| % elif query.error == "no search method": | |||||
| No copyvio search methods were selected. A check can only be made using a search engine, links present in the page, or both. | |||||
| % elif query.error == "no URL": | |||||
| URL comparison mode requires a URL to be entered. Enter one in the text box below, or choose copyvio search mode to look for content similar to the article elsewhere on the web. | |||||
| % elif query.error == "bad URI": | |||||
| Unsupported URI scheme: <a href="${query.url | h}">${query.url | h}</a>. | |||||
| % elif query.error == "no data": | |||||
| Couldn't find any text in <a href="${query.url | h}">${query.url | h}</a>. <i>Note:</i> only HTML and plain text pages are supported, and content generated by JavaScript or found inside iframes is ignored. | |||||
| % elif query.error == "timeout": | |||||
| The URL <a href="${query.url | h}">${query.url | h}</a> timed out before any data could be retrieved. | |||||
| % elif query.error == "search error": | |||||
| An error occurred while using the search engine (${query.exception}). Try reloading the page. If the error persists, <a href="${request.url | httpsfix, h}&use_engine=0">repeat the check without using the search engine</a>. | |||||
| % else: | |||||
| An unknown error occurred. | |||||
| % endif | |||||
| </p></div> | |||||
| % elif not query.site: | % elif not query.site: | ||||
| <div id="info-box" class="red-box"> | <div id="info-box" class="red-box"> | ||||
| <p>The given site (project=<b><span class="mono">${query.project | h}</span></b>, language=<b><span class="mono">${query.lang | h}</span></b>) doesn't seem to exist. It may also be closed or private. <a href="//${query.lang | h}.${query.project | h}.org/">Confirm its URL.</a></p> | <p>The given site (project=<b><span class="mono">${query.project | h}</span></b>, language=<b><span class="mono">${query.lang | h}</span></b>) doesn't seem to exist. It may also be closed or private. <a href="//${query.lang | h}.${query.project | h}.org/">Confirm its URL.</a></p> | ||||