瀏覽代碼

[WIP] Improve style and turnitin report display

pull/24/head
Frances Hocutt 9 年之前
父節點
當前提交
f0bbb29621
共有 2 個檔案被更改,包括 18 行新增7 行删除
  1. +11
    -0
      static/style.css
  2. +7
    -7
      templates/index.mako

+ 11
- 0
static/style.css 查看文件

@@ -63,6 +63,17 @@ div#info-box {
margin: 10px 5px;
}

div#turnitin-container {
padding: 5px 10px;
margin: 15px 10px 10px 5px;
}

div#turnitin-title {
margin-bottom: -5px;
text-align: center;
font-weight: bold;
}

div#cv-result {
padding: 5px;
margin: 10px 5px;


+ 7
- 7
templates/index.mako 查看文件

@@ -150,6 +150,7 @@
</tr>
</table>
</form>

% if result:
<div id="generation-time">
Results
@@ -166,14 +167,14 @@
</div>

% if query.turnitin:
<div id="turnitin-result" class="${'red' if query.turnitin_result else 'green'}-box">
<p>Turnitin results (this should be centered like "checked sources")</p>
% if query.turnitin_result:
Turnitin (through <a href="https://en.wikipedia.org/wiki/User:EranBot">EranBot</a>) found revisions that may have been plagiarized. Please review them. (Does this need some sort of p tag or something?)
<div id="turnitin-container" class="${'red' if query.turnitin_result.reports else 'green'}-box">
<div id="turnitin-title">Turnitin Results</div>
% 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>

%for report in turnitin_result.reports:
<ul>
<li><a href="https://tools.wmflabs.org/eranbot/ithenticate.py?rid=${report.reportid}">Turnitin report</a>
<li><a href="https://tools.wmflabs.org/eranbot/ithenticate.py?rid=${report.reportid}">Turnitin report ${report.reportid}</a>
<ul>
% for source in report.sources:
<li> ${source['percent']}% of revision text (${source['words']} words) found at <a href="${source['url']}">${source['url']}</a></li>
@@ -181,10 +182,9 @@
</ul></li>
%endfor
</ul>
${turnitin_result}

% else:
Turnitin (through <a href="https://en.wikipedia.org/wiki/User:EranBot">EranBot</a>) found no matching sources.
<p>Turnitin (through <a href="https://en.wikipedia.org/wiki/User:EranBot">EranBot</a>) found no matching sources.</p>
% endif
</div>
% endif


Loading…
取消
儲存