A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

header.mako 1.1 KiB

11 vuotta sitten
11 vuotta sitten
11 vuotta sitten
12 vuotta sitten
12 vuotta sitten
11 vuotta sitten
12345678910111213141516171819202122232425262728
  1. <%page args="environ, cookies, title"/>\
  2. <%namespace module="copyvios.background" import="set_background"/>\
  3. <%!
  4. from os import path
  5. %>\
  6. <%
  7. root = path.dirname(environ["SCRIPT_NAME"])
  8. %>\
  9. <!DOCTYPE html>
  10. <html lang="en">
  11. <head>
  12. <meta charset="utf-8">
  13. <title>${title}</title>
  14. <link rel="stylesheet" href="${root}/static/style.css" type="text/css" />
  15. <script src="${root}/static/script.js" type="text/javascript"></script>
  16. </head>
  17. <% selected = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "plain" %>\
  18. % if selected == "plain":
  19. <body style="background-image: url('${root}/static/background.png');">
  20. % else:
  21. <% bg_url = set_background(cookies, selected) %>\
  22. <body onload="update_screen_size()" style="background-image: url('${bg_url | h}'); background-size: cover;">
  23. % endif
  24. <div id="header">
  25. <p id="heading"><a class="dark" href="${root}">Earwig's Copyvio Detector</a></p>
  26. <p id="links"><a class="mid" href="${root}/settings">Settings</a></p>
  27. </div>
  28. <div id="container">