-
Notifications
You must be signed in to change notification settings - Fork 87
/
membership_request.html
46 lines (42 loc) · 1.37 KB
/
membership_request.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{% extends 'mail/base.html' %}
{% from 'mail/button.html' import mail_button %}
{% from 'mail/user_mail_card.html' import user_mail_card with context %}
{% block body %}
<p style="margin: 0;padding: 0;font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;">
{{ _('As an administrator of "%(org)s" you are being informed than a new membership request from %(user)s is pending for validation',
user=(
'<a href="'|safe
+ url_for('api.user', user=request.user, _external=True)
+ '">'|safe
+ request.user.fullname
+ '</a>'|safe
),
org=(
'<a href="'|safe
+ org.url_for(_external=True)
+ '">'|safe
+ org.name
+ '</a>'|safe
),
) }}.</p>
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%"></td>
<td width="70%" align="center">
{{ user_mail_card(request.user, request.comment) }}
</td>
<td width="15%"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
{{ mail_button(
_('See the request'),
url_for('admin.index', path='organization/{id}/'.format(id=org.id), _anchor='membership-requests', _external=True)
) }}
</td>
</tr>
</table>
{% endblock %}