mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-21 15:50:59 +00:00
2854e77057
Is this right? This can't be right. Is this right?
55 lines
1.5 KiB
HTML
55 lines
1.5 KiB
HTML
from gittip.utils import get_participant
|
|
^L
|
|
|
|
participant = get_participant(request)
|
|
if POST:
|
|
participant.deactivate()
|
|
user = None
|
|
request.redirect('/')
|
|
|
|
locked = False
|
|
tip_or_pledge = "tip"
|
|
title = participant.id # used in the title tag
|
|
username = participant.id # used in footer shared with on/$platform/ pages
|
|
github_account, twitter_account = participant.get_accounts_elsewhere()
|
|
|
|
^L
|
|
{% extends templates/base.html %}
|
|
{% block heading %}
|
|
<h2 class="top"><span>Deactivate</span></h2>
|
|
{% end %}
|
|
{% block box %}
|
|
<div class="on-form">
|
|
<form action="./deactivate.html" method="POST">
|
|
<div class="lots-of-text">
|
|
|
|
<ol>
|
|
|
|
<li>Your username will become available to others.</li>
|
|
|
|
<li>We will disconnect accounts such as Twitter.</li>
|
|
|
|
<li>We will invalidate your payment credentials.</li>
|
|
|
|
<li>We will retain your giving and receiving history, so
|
|
that those you gave to or received from will continue to
|
|
see a consistent view of their history.</li>
|
|
|
|
</ol>
|
|
|
|
<p>Thanks for giving us a try, and sorry it didn't work
|
|
out.</p>
|
|
|
|
</div>
|
|
<div class="nav level-1">
|
|
<input type="hidden" name="csrf_token"
|
|
value="{{ csrf_token }}" />
|
|
<button class="selected larger"
|
|
type="submit">Deactivate</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
{% end %}
|