2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C)
2011,
2012 MediaGoblin contributors. See AUTHORS.
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.
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.
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
/>.
18 # This is the main user homepage for non-active users that still need
21 {% extends
"mediagoblin/base.html" %}
25 {%- trans username=user.username -%}
26 {{ username }}'s profile
27 {%- endtrans %}
— {{ super() }}
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>
44 Almost done! Your account still needs to be activated.
49 An email should arrive in a few moments with instructions on how to do so.
52 <p>{% trans %}In case it doesn't:{% endtrans %}
</p>
54 <a href=
"{{ request.urlgen('mediagoblin.auth.resend_verification') }}"
55 class=
"button_action_highlight">{% trans %}Resend verification email{% endtrans %}
</a>
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>
64 Someone has registered an account with this username, but it still has to be activated.
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.
75 {# Active(?) (or at least verified at some point) user, horray! #}
78 {%- trans username=user.username %}{{ username }}{% endtrans -%}
80 <p>{{ username }} is not active.
</p>
81 <div class=
"clear"></div>