Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
start hacking on identity form
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed May 9, 2016
1 parent dbba8dd commit e9e97e0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 151 deletions.
20 changes: 20 additions & 0 deletions www/~/%username/identities/index.spt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from gratipay.utils import get_participant
[---]
request.allow('GET', 'POST')
participant = get_participant(state, restrict=False)
title = _("Identities")
[---] text/html
{% extends "templates/profile.html" %}
{% block content %}
{% for identity in participant.list_identity_metadata() %}
<h2>{{ locale.countries[identity.country.code2] }}{% if identity.is_verified %} &check;{% endif %}</h2>
<img class="flag {{ identity.country.code2 }}"
alt="{{ _('verified in: {country}', country=locale.countries[identity.country.code2]) }}"
title="{{ _('verified in: {country}', country=locale.countries[identity.country.code2]) }}"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGP6zwAAAgcBApocMXEAAAAASUVORK5CYII=">
{% endfor %}

<hr>

<button>Add Identity</button>
{% endblock %}
151 changes: 0 additions & 151 deletions www/~/%username/identity.spt

This file was deleted.

0 comments on commit e9e97e0

Please sign in to comment.