|
|
@@ -1,16 +1,10 @@ |
|
|
|
<%page args="environ, cookies, title, slug=None, add_css=(), add_js=()"/>\ |
|
|
|
<%page args="environ, cookies, title"/>\ |
|
|
|
<%namespace module="copyvios.background" import="set_background"/>\ |
|
|
|
<%! |
|
|
|
from os import path |
|
|
|
%>\ |
|
|
|
<% |
|
|
|
root = path.dirname(environ["SCRIPT_NAME"]) |
|
|
|
this = environ["PATH_INFO"] |
|
|
|
pretty = path.split(root)[0] |
|
|
|
if not slug: |
|
|
|
slug = path.split(this)[1] |
|
|
|
if slug.endswith(".py"): |
|
|
|
slug = slug[:-3] |
|
|
|
%>\ |
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us"> |
|
|
@@ -28,7 +22,7 @@ |
|
|
|
<body onload="update_screen_size()" style="background-image: url('${bg_url | h}'); background-size: cover;"> |
|
|
|
% endif |
|
|
|
<div id="header"> |
|
|
|
<p id="heading"><a class="dark" href="${pretty}">Earwig's Copyvio Detector</a></p> |
|
|
|
<p id="links"><a class="mid" href="${pretty}/settings">Settings</a></p> |
|
|
|
<p id="heading"><a class="dark" href="${root}">Earwig's Copyvio Detector</a></p> |
|
|
|
<p id="links"><a class="mid" href="${root}/settings">Settings</a></p> |
|
|
|
</div> |
|
|
|
<div id="container"> |