File: done.pt

package info (click to toggle)
python-social-auth 0.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,828 kB
  • ctags: 3,245
  • sloc: python: 12,867; makefile: 119; sh: 3
file content (24 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<html>
  <head>
    <title>Social Auth Pyramid Example</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
  </head>
  <body>
    <p>You are logged in as ${request.user.username}!</p>
    <p>Associated:</p>
    <div tal:repeat="assoc social.backends.associated">
      <form action="${request.route_url('social.disconnect_association', backend=assoc.provider, association_id=assoc.id)}" method="post">
        <input id="_csrf" type="hidden" value="${request.session.get_csrf_token()}"/>
        <button>Disconnect ${assoc.provider.title()} (${assoc.id})</button>
      </form>
    </div>

    <p>Associate:</p>
    <ul>
      <li tal:repeat="name social.backends.not_associated">
        <a href="${request.route_url('social.auth', backend=name)}">${name}</a>
      </li>
    </ul>
  </body>
</html>