Merge remote-tracking branch 'spaetz/master'
[mediagoblin.git] / mediagoblin / templates / mediagoblin / user_pages / user_nonactive.html
1 {#
2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
14 #
15 # You should have received a copy of the GNU Affero General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 # This is the main user homepage for non-active users that still need
19 # registration etc.
20 #}
21 {% extends "mediagoblin/base.html" %}
22
23 {% block title %}
24 {%- if user -%}
25 {%- trans username=user.username -%}
26 {{ username }}'s profile
27 {%- endtrans %} &mdash; {{ super() }}
28 {%- else -%}
29 {{ super() }}
30 {%- endif -%}
31 {% endblock %}
32
33
34 {% block mediagoblin_content -%}
35 {# User exists, but needs verification #}
36 {% if user.status == "needs_email_verification" %}
37 {% if user == request.user %}
38 {# this should only be visible when you are this user #}
39 <div class="form_box">
40 <h1>{% trans %}Email verification needed{% endtrans %}</h1>
41
42 <p>
43 {% trans -%}
44 Almost done! Your account still needs to be activated.
45 {%- endtrans %}
46 </p>
47 <p>
48 {% trans -%}
49 An email should arrive in a few moments with instructions on how to do so.
50 {%- endtrans %}
51 </p>
52 <p>{% trans %}In case it doesn't:{% endtrans %}</p>
53
54 <a href="{{ request.urlgen('mediagoblin.auth.resend_verification') }}"
55 class="button_action_highlight">{% trans %}Resend verification email{% endtrans %}</a>
56 </div>
57 {% else %}
58 {# if the user is not you, but still needs to verify their email #}
59 <div class="form_box">
60 <h1>{% trans %}Email verification needed{% endtrans %}</h1>
61
62 <p>
63 {% trans -%}
64 Someone has registered an account with this username, but it still has to be activated.
65 {%- endtrans %}
66 </p>
67 <p>
68 {% trans login_url=request.urlgen('mediagoblin.auth.login') -%}
69 If you are that person but you've lost your verification email, you can <a href="{{ login_url }}">log in</a> and resend it.
70 {%- endtrans %}
71 </p>
72 </div>
73 {% endif %}
74
75 {# Active(?) (or at least verified at some point) user, horray! #}
76 {% else %}
77 <h1>
78 {%- trans username=user.username %}{{ username }}{% endtrans -%}
79 </h1>
80 <p>{{ username }} is not active.</p>
81 <div class="clear"></div>
82 {% endif %}
83 {% endblock %}