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.2 KiB

11 年之前
11 年之前
11 年之前
12345678910111213141516171819202122232425262728293031
  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 "list" %>\
  18. % if selected == "plain":
  19. <body style="background-image: url('${root}/static/background.png');">
  20. % else:
  21. <body onload="update_screen_size()" style="background-image: url('${set_background(cookies, selected) | h}'); background-size: cover;">
  22. % endif
  23. <div id="header">
  24. <table id="heading">
  25. <tr>
  26. <td id="head-home"><a id="a-home" href="${root}">Earwig's Copyvio Detector</a></td>
  27. <td id="head-settings"><a id="a-settings" href="${root}/settings">Settings</a></td>
  28. </tr>
  29. </table>
  30. </div>
  31. <div id="container">