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.
 
 
 
 
 

40 rader
1.7 KiB

  1. <%!
  2. from json import dumps, loads
  3. from flask import g, request
  4. from copyvios.misc import cache
  5. from urlparse import parse_qsl
  6. %>\
  7. <%include file="/support/header.mako" args="title='Login | Earwig\'s Copyvio Detector', splash=True"/>
  8. % if error:
  9. <div id="info-box" class="red-box">
  10. <p>Error trying to log in: ${error | h}</p>
  11. </div>
  12. % endif
  13. <h2>Login</h2>
  14. <p>You are required to log in with your Wikimedia account to perform checks with the search engine.</p>
  15. %if request.args.get('next'):
  16. <p>
  17. After logging in,
  18. % if request.args["next"][0:2] == "/?" and dict(parse_qsl(request.args["next"])).get("action") == "search":
  19. your check will be run.
  20. % else:
  21. you will be redirected to: ${request.args.get('next') | h}
  22. % endif
  23. </p>
  24. %endif
  25. <form action="${request.script_root}/login" method="post">
  26. <input type="hidden" name="next" value="${request.args.get('next', '/') | h}" />
  27. <div class="oo-ui-layout oo-ui-fieldLayout oo-ui-fieldLayout-align-left">
  28. <div class="oo-ui-fieldLayout-body">
  29. <span class="oo-ui-fieldLayout-field">
  30. <span class="oo-ui-widget oo-ui-widget-enabled oo-ui-inputWidget oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-flaggedElement-primary oo-ui-flaggedElement-progressive oo-ui-labelElement oo-ui-buttonInputWidget">
  31. <button type="submit" class="oo-ui-inputWidget-input oo-ui-buttonElement-button">
  32. <span class="oo-ui-labelElement-label">Login</span>
  33. </button>
  34. </span>
  35. </span>
  36. </div>
  37. </div>
  38. </form>
  39. <%include file="/support/footer.mako"/>