A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 

37 řádky
1.7 KiB

  1. <%page args="environ, title, slug=None"/>\
  2. <%namespace name="index" file="/index.mako" import="get_tools"/>\
  3. <%!
  4. from itertools import count
  5. from os import path
  6. %>\
  7. <%
  8. tools = get_tools()
  9. root = path.dirname(environ["SCRIPT_NAME"])
  10. this = environ["PATH_INFO"]
  11. pretty = path.split(root)[0]
  12. if not slug:
  13. slug = path.split(this)[1]
  14. if slug.endswith(".fcgi"):
  15. slug = slug[:-5]
  16. %>\
  17. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  18. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
  19. <head>
  20. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  21. <title>${title} - earwig@toolserver</title>
  22. <link rel="stylesheet" href="${root}/static/css/main.css" type="text/css" />
  23. <script src="${root}/static/js/potd.js" type="text/javascript"></script>
  24. </head>
  25. <body onload="potd_set_background()">
  26. <div id="header">
  27. <p id="heading"><a class="dark" href="${pretty}">earwig</a><span class="light">@</span><a class="mid" href="http://wiki.toolserver.org/">toolserver</a><span class="light">:</span><a class="dark" href="${this}">${slug}</a></p>
  28. <p id="links"><span class="light">&gt;</span>
  29. % for (name, tool, link, complete, desc), num in zip(tools, count(1)):
  30. <abbr title="${name}${' (incomplete)' if not complete else ''}"><a class="${'dark' if complete else 'mid'}" href="${pretty}/${link}">${tool}</a></abbr>
  31. % if num < len(tools):
  32. <span class="light">&#124;</span>
  33. % endif
  34. % endfor
  35. </p>
  36. </div>
  37. <div id="container">