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.

пре 12 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 13 година
пре 12 година
пре 13 година
пре 12 година
пре 12 година
пре 12 година
пре 12 година
пре 12 година
пре 12 година
пре 13 година
пре 13 година
пре 13 година
пре 12 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <%page args="environ, cookies, title, slug=None, add_css=(), add_js=()"/>\
  2. <%namespace name="index" file="/index.mako" import="get_tools"/>\
  3. <%!
  4. from os import path
  5. %>\
  6. <%
  7. tools = get_tools()
  8. root = path.dirname(environ["SCRIPT_NAME"])
  9. this = environ["PATH_INFO"]
  10. pretty = path.split(root)[0]
  11. if not slug:
  12. slug = path.split(this)[1]
  13. if slug.endswith(".fcgi"):
  14. slug = slug[:-5]
  15. %>\
  16. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  17. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
  18. <head>
  19. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  20. <title>${title} - earwig@toolserver</title>
  21. <link rel="stylesheet" href="${root}/static/css/main.css" type="text/css" />
  22. % for filename in add_css:
  23. <link rel="stylesheet" href="${root}/static/css/${filename}" type="text/css" />
  24. % endfor
  25. <script src="${root}/static/js/cookies.js" type="text/javascript"></script>
  26. <script src="${root}/static/js/potd.js" type="text/javascript"></script>
  27. % for filename in add_js:
  28. <script src="${root}/static/js/${filename}" type="text/javascript"></script>
  29. % endfor
  30. </head>
  31. <% selected = cookies["EarwigBackground"].value if "EarwigBackground" in cookies else "list" %>\
  32. % if selected in ["plain-brown", "plain-blue"]:
  33. <body style="background-image: url('${root}/static/images/background-${selected[6:]}.png');">
  34. % elif selected == "potd":
  35. <body onload="set_background_potd()" style="background-repeat: no-repeat;">
  36. % else:
  37. <body onload="set_background_list()" style="background-repeat: no-repeat;">
  38. % endif
  39. <div id="header">
  40. <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>
  41. <p id="links"><span class="light">&gt;</span>
  42. % for num, tool in enumerate(tools, 1):
  43. % if tool != "DIVIDER":
  44. <% name, tool, link, complete, desc = tool %>\
  45. <abbr title="${name}${' (incomplete)' if not complete else ''}"><a class="${'dark' if complete else 'mid'}" href="${pretty}/${link}">${tool}</a></abbr>
  46. % endif
  47. % if num < len(tools):
  48. <span class="light">&#124;</span>
  49. % endif
  50. % endfor
  51. </p>
  52. </div>
  53. <div id="container">