This repository was archived by the owner on Sep 19, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +47
-38
lines changed
Expand file tree Collapse file tree 3 files changed +47
-38
lines changed Original file line number Diff line number Diff line change 33{% load url from future %}
44
55{% block content %}
6- < p > {% trans "Your current avatar: " %}</ p >
7- {% avatar user %}
8- {% if not avatars %}
9- < p > {% trans "You haven't uploaded an avatar yet. Please upload one now." %}</ p >
10- {% endif %}
11- < form enctype ="multipart/form-data " method ="POST " action ="{% url 'avatar_add' %} ">
12- {{ upload_avatar_form.as_p }}
13- < p > {% csrf_token %}< input type ="submit " value ="{% trans "Upload New Image " %}" /> </ p >
14- < input type ="hidden " name ="next " value ="{% url 'profile' %} " />
15- </ form >
6+ < div class ="container ">
7+ < h1 > Add new profile avatar</ h1 >
8+ < p > {% trans "Your current avatar: " %}</ p >
9+ {% avatar user %}
10+ {% if not avatars %}
11+ < p > {% trans "You haven't uploaded an avatar yet. Please upload one now." %}</ p >
12+ {% endif %}
13+ < form enctype ="multipart/form-data " method ="POST " action ="{% url 'avatar_add' %} ">
14+ {{ upload_avatar_form.as_p }}
15+ < p > {% csrf_token %}< input type ="submit " value ="{% trans "Upload New Image " %}" /> </ p >
16+ < input type ="hidden " name ="next " value ="{% url 'profile' %} " />
17+ </ form >
18+ </ div >
1619{% endblock %}
Original file line number Diff line number Diff line change 22{% load i18n avatar_tags %}
33
44{% block content %}
5- < p > {% trans "Your current avatar: " %}</ p >
6- {% avatar user %}
5+ < div class ="container ">
6+ < h1 > Change your profile avatar</ h1 >
7+ < p > {% trans "Your current avatar: " %}</ p >
8+ {% avatar user %}
79
8- {% if not avatars %}
9- < p > {% trans "You haven't uploaded an avatar yet. Please upload one now." %}</ p >
10- {% else %}
11- < form method ="POST " action ="{% url 'avatar_change' %} ">
12- < ul >
13- {{ primary_avatar_form.as_ul }}
14- </ ul >
15- < p > {% csrf_token %}< input type ="submit " value ="{% trans "Choose new Default " %}" /> </ p >
10+ {% if not avatars %}
11+ < p > {% trans "You haven't uploaded an avatar yet. Please upload one now." %}</ p >
12+ {% else %}
13+ < form method ="POST " action ="{% url 'avatar_change' %} ">
14+ < ul >
15+ {{ primary_avatar_form.as_ul }}
16+ </ ul >
17+ < p > {% csrf_token %}< input type ="submit " value ="{% trans "Choose new Default " %}" /> </ p >
18+ < input type ="hidden " name ="next " value ="{% url 'profile' %} " />
19+ </ form >
20+ {% endif %}
21+ < form enctype ="multipart/form-data " method ="POST " action ="{% url 'avatar_add' %} ">
22+ {{ upload_avatar_form.as_p }}
23+ < p > {% csrf_token %}< input type ="submit " value ="{% trans "Upload New Image " %}" /> </ p >
1624 < input type ="hidden " name ="next " value ="{% url 'profile' %} " />
1725 </ form >
18- {% endif %}
19- < form enctype ="multipart/form-data " method ="POST " action ="{% url 'avatar_add' %} ">
20- {{ upload_avatar_form.as_p }}
21- < p > {% csrf_token %}< input type ="submit " value ="{% trans "Upload New Image " %}" /> </ p >
22- < input type ="hidden " name ="next " value ="{% url 'profile' %} " />
23- </ form >
26+ </ div >
2427{% endblock %}
Original file line number Diff line number Diff line change 33{% load url from future %}
44
55{% block content %}
6- < p > {% trans "Please select the avatars that you would like to delete." %}</ p >
7- {% if not avatars %}
8- {% url 'avatar_change' as avatar_change_url %}
9- < p > {% blocktrans %}You have no avatars to delete. Please < a href ="{{ avatar_change_url }} "> upload one</ a > now.{% endblocktrans %}</ p >
10- {% else %}
11- < form method ="POST " action ="{% url 'avatar_delete' %} ">
12- < ul >
13- {{ delete_avatar_form.as_ul }}
14- </ ul >
15- < p > {% csrf_token %}< input type ="submit " value ="{% trans "Delete These " %}" /> </ p >
16- </ form >
17- {% endif %}
6+ < div class ="container ">
7+ < h1 > Delete your avatar</ h1 >
8+ < p > {% trans "Please select the avatars that you would like to delete." %}</ p >
9+ {% if not avatars %}
10+ {% url 'avatar_change' as avatar_change_url %}
11+ < p > {% blocktrans %}You have no avatars to delete. Please < a href ="{{ avatar_change_url }} "> upload one</ a > now.{% endblocktrans %}</ p >
12+ {% else %}
13+ < form method ="POST " action ="{% url 'avatar_delete' %} ">
14+ < ul >
15+ {{ delete_avatar_form.as_ul }}
16+ </ ul >
17+ < p > {% csrf_token %}< input type ="submit " value ="{% trans "Delete These " %}" /> </ p >
18+ </ form >
19+ {% endif %}
20+ </ div >
1821{% endblock %}
You can’t perform that action at this time.
0 commit comments