From 3e1fdf4bc68c2950481493a309fbb044db081665 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 15 Jul 2014 21:11:50 -0400 Subject: [PATCH] Show and link to the rev ID when relevant. --- templates/index.mako | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/index.mako b/templates/index.mako index e9ecf3f..ccc5d28 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -108,10 +108,17 @@ <% show_details = "CopyviosShowDetails" in g.cookies and g.cookies["CopyviosShowDetails"].value == "True" %>
+ <%def name="get_page_link()"> + % if query.oldid: + ${query.page.title | h} @${query.oldid | h} + % else: + ${query.page.title | h} + % endif + % if result.violation: -

${query.page.title | h} is a suspected violation of ${result.url | urlstrip, h}.

+

${get_page_link()} is a suspected violation of ${result.url | urlstrip, h}.

% else: -

No violations detected in ${query.page.title | h}.

+

No violations detected in ${get_page_link()}.

% endif