Ver código fonte

Show and link to the rev ID when relevant.

pull/24/head
Ben Kurtovic 9 anos atrás
pai
commit
3e1fdf4bc6
1 arquivos alterados com 9 adições e 2 exclusões
  1. +9
    -2
      templates/index.mako

+ 9
- 2
templates/index.mako Ver arquivo

@@ -108,10 +108,17 @@
<% show_details = "CopyviosShowDetails" in g.cookies and g.cookies["CopyviosShowDetails"].value == "True" %>
<div class="divider"></div>
<div id="cv-result" class="${'red' if result.violation else 'green'}-box">
<%def name="get_page_link()">
% if query.oldid:
<a href="${query.page.url}">${query.page.title | h}</a> @<a href="//${query.site.domain | h}/w/index.php?oldid=${query.oldid | h}">${query.oldid | h}</a>
% else:
<a href="${query.page.url}">${query.page.title | h}</a>
% endif
</%def>
% if result.violation:
<h2 id="cv-result-header"><a href="${query.page.url}">${query.page.title | h}</a> is a suspected violation of <a href="${result.url | h}">${result.url | urlstrip, h}</a>.</h2>
<h2 id="cv-result-header">${get_page_link()} is a suspected violation of <a href="${result.url | h}">${result.url | urlstrip, h}</a>.</h2>
% else:
<h2 id="cv-result-header">No violations detected in <a href="${query.page.url}">${query.page.title | h}</a>.</h2>
<h2 id="cv-result-header">No violations detected in ${get_page_link()}.</h2>
% endif
<ul id="cv-result-list">
% if not result.violation and not query.url:


Carregando…
Cancelar
Salvar