Commit da4ff7b1323c34b8c975dc62169a6a8cc7c160c2
1 parent
a1b9544c
Exists in
master
and in
39 other branches
Display user picture name when editing profile
Showing
2 changed files
with
17 additions
and
9 deletions
Show diff stats
src/accounts/templates/accounts/manage_subscriptions.html
1 | {% extends 'base.html' %} | 1 | {% extends 'base.html' %} |
2 | -{% load i18n %} | 2 | +{% load i18n gravatar %} |
3 | 3 | ||
4 | {% block main-content %} | 4 | {% block main-content %} |
5 | 5 | ||
6 | + <h2>{% blocktrans %}Mailing List Subscriptions{% endblocktrans %}</h2> | ||
7 | + <h3>{% gravatar user_.email 50 %} {{ user_.get_full_name }} ({{ user_.username }})</h3> | ||
6 | <br> | 8 | <br> |
7 | 9 | ||
8 | <form method='post'> | 10 | <form method='post'> |
src/accounts/templates/accounts/user_update_form.html
@@ -88,17 +88,23 @@ $(function() { | @@ -88,17 +88,23 @@ $(function() { | ||
88 | 88 | ||
89 | 89 | ||
90 | {% block main-content %} | 90 | {% block main-content %} |
91 | + | ||
92 | + <div class="col-lg-12"> | ||
93 | + {% with user_.first_name as firstname %} | ||
94 | + <h2>{% trans 'profile information'|title %}</h2> | ||
95 | + {% endwith %} | ||
96 | + | ||
97 | + <h3>{% gravatar user_.email 50 %} {{ user_.get_full_name }} ({{ user_.username }})</h3> | ||
98 | + <a href="https://gravatar.com" target="_blank"> | ||
99 | + {% trans "Change your avatar at Gravatar.com" %} | ||
100 | + </a> | ||
101 | + </div> | ||
102 | + <br> | ||
103 | + <br> | ||
104 | + | ||
91 | <form method="post"> | 105 | <form method="post"> |
92 | {% csrf_token %} | 106 | {% csrf_token %} |
93 | 107 | ||
94 | - <div class="col-lg-12"> | ||
95 | - <a href="https://gravatar.com" target="_blank"> | ||
96 | - {% gravatar user_.email 50 %} | ||
97 | - {% trans "Change your avatar at Gravatar.com" %} | ||
98 | - </a> | ||
99 | - </div> | ||
100 | - <br> | ||
101 | - | ||
102 | <div class="row"> | 108 | <div class="row"> |
103 | <div class="col-lg-8 col-md-7 col-sm-12 col-xm-12"> | 109 | <div class="col-lg-8 col-md-7 col-sm-12 col-xm-12"> |
104 | {% for field in form %} | 110 | {% for field in form %} |