A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

45 rader
2.2 KiB

  1. <%page args="environ, cookies, title, slug=None, add_css=(), add_js=()"/>\
  2. <%namespace module="copyvios.background" import="set_background"/>\
  3. <%!
  4. from os import path
  5. %>\
  6. <%
  7. root = path.dirname(environ["SCRIPT_NAME"])
  8. this = environ["PATH_INFO"]
  9. pretty = path.split(root)[0]
  10. if not slug:
  11. slug = path.split(this)[1]
  12. if slug.endswith(".fcgi"):
  13. slug = slug[:-5]
  14. %>\
  15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  16. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
  17. <head>
  18. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  19. <title>${title}</title>
  20. <link rel="stylesheet" href="${root}/static/style.css" type="text/css" />
  21. <script src="${root}/static/script.js" type="text/javascript"></script>
  22. </head>
  23. <% selected = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "plain" %>\
  24. % if selected == "plain":
  25. <body style="background-image: url('${root}/static/background.png');">
  26. % else:
  27. <% bg_url = set_background(cookies, selected) %>\
  28. <body onload="update_screen_size()" style="background-image: url('${bg_url | h}'); background-size: cover;">
  29. % endif
  30. <div id="header">
  31. <p id="heading"><a class="dark" href="${pretty}">earwig</a><span class="light">@</span><a class="mid" href="https://wiki.toolserver.org/">toolserver</a><span class="light">:</span><a class="dark" href="${this}">${slug}</a></p>
  32. <p id="links"><span class="light">&gt;</span>
  33. % for num, tool in enumerate(tools, 1):
  34. % if tool != "DIVIDER":
  35. <% name, tool, link, complete, desc = tool %>\
  36. <abbr title="${name}${' (incomplete)' if not complete else ''}"><a class="${'dark' if complete else 'mid'}" href="${pretty}/${link}">${tool}</a></abbr>
  37. % endif
  38. % if num < len(tools):
  39. <span class="light">&#124;</span>
  40. % endif
  41. % endfor
  42. </p>
  43. </div>
  44. <div id="container">