aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorAditi <aditi.iitr@gmail.com>2013-08-28 23:28:09 +0530
committerAditi <aditi.iitr@gmail.com>2013-08-28 23:28:09 +0530
commit922599990d07d4ab1eb34cd57d59a4ced6882884 (patch)
tree743e8a7572129dd4b905b535bf2a306886125304 /mediagoblin/templates
parent7d9dbe32ccf1606d8ffa147bad2ac81e2af66ec6 (diff)
parent7904402750df610102bc487dab4b4a3e01e15b91 (diff)
downloadmediagoblin-922599990d07d4ab1eb34cd57d59a4ced6882884.tar.lz
mediagoblin-922599990d07d4ab1eb34cd57d59a4ced6882884.tar.xz
mediagoblin-922599990d07d4ab1eb34cd57d59a4ced6882884.zip
Pull changes and resolve merge conflict.
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/api/authorize.html2
-rw-r--r--mediagoblin/templates/mediagoblin/edit/change_email.html45
-rw-r--r--mediagoblin/templates/mediagoblin/edit/edit_account.html19
3 files changed, 57 insertions, 9 deletions
diff --git a/mediagoblin/templates/mediagoblin/api/authorize.html b/mediagoblin/templates/mediagoblin/api/authorize.html
index d0ec2616..93cdc7e3 100644
--- a/mediagoblin/templates/mediagoblin/api/authorize.html
+++ b/mediagoblin/templates/mediagoblin/api/authorize.html
@@ -41,7 +41,7 @@
{% trans %}Applications with access to your account can: {% endtrans %}
<ul>
<li>{% trans %}Post new media as you{% endtrans %}</li>
- <li>{% trans %}See your information (e.g profile, meida, etc...){% endtrans %}</li>
+ <li>{% trans %}See your information (e.g profile, media, etc...){% endtrans %}</li>
<li>{% trans %}Change your information{% endtrans %}</li>
</ul>
<br />
diff --git a/mediagoblin/templates/mediagoblin/edit/change_email.html b/mediagoblin/templates/mediagoblin/edit/change_email.html
new file mode 100644
index 00000000..76cc4771
--- /dev/null
+++ b/mediagoblin/templates/mediagoblin/edit/change_email.html
@@ -0,0 +1,45 @@
+{#
+# GNU MediaGoblin -- federated, autonomous media hosting
+# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#}
+{% extends "mediagoblin/base.html" %}
+
+{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
+
+{% block title -%}
+ {% trans username=user.username -%}
+ Changing {{ username }}'s email
+ {%- endtrans %} &mdash; {{ super() }}
+{%- endblock %}
+
+{% block mediagoblin_content %}
+ <form action="{{ request.urlgen('mediagoblin.edit.email') }}"
+ method="POST" enctype="multipart/form-data">
+ <div class="form_box edit_box">
+ <h1>
+ {%- trans username=user.username -%}
+ Changing {{ username }}'s email
+ {%- endtrans -%}
+ </h1>
+ {{ wtforms_util.render_divs(form, True) }}
+ {{ csrf_token }}
+ <div class="form_submit_buttons">
+ <input type="submit" value="{% trans %}Save{% endtrans %}"
+ class="button_form" />
+ </div>
+ </div>
+ </form>
+{% endblock %}
diff --git a/mediagoblin/templates/mediagoblin/edit/edit_account.html b/mediagoblin/templates/mediagoblin/edit/edit_account.html
index 51293acb..14011daa 100644
--- a/mediagoblin/templates/mediagoblin/edit/edit_account.html
+++ b/mediagoblin/templates/mediagoblin/edit/edit_account.html
@@ -41,14 +41,6 @@
Changing {{ username }}'s account settings
{%- endtrans -%}
</h1>
- {% if pass_auth is defined %}
- <p>
- <a href="{{ request.urlgen('mediagoblin.edit.pass') }}">
- {% trans %}Change your password.{% endtrans %}
- </a>
- </p>
- {% endif %}
- {% template_hook("edit_link") %}
{{ wtforms_util.render_divs(form, True) }}
<div class="form_submit_buttons">
<input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button_form" />
@@ -60,5 +52,16 @@
<a href="{{ request.urlgen('mediagoblin.edit.delete_account') }}">
{%- trans %}Delete my account{% endtrans -%}
</a>
+ &middot;
+ {% template_hook("edit_link") %}
+ <a href="{{ request.urlgen('mediagoblin.edit.email') }}">
+ {% trans %}Email{% endtrans %}
+ </a>
+ {% if pass_auth is defined %}
+ &middot;
+ <a href="{{ request.urlgen('mediagoblin.edit.pass') }}">
+ {% trans %}Password{% endtrans %}
+ </a>
+ {% endif %}
</div>
{% endblock %}