summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-03-05 00:51:51 -0500
committerUnknwon <u@gogs.io>2016-03-05 00:51:51 -0500
commita2f13eae559c71d35662b7767a8b8347a26eb53e (patch)
tree35a02d0e6afaf1d9269dc9cee10b478d6c847560 /templates
parent2a931937a8a92d5b1f3bca9e9cf4cbe23c862ce9 (diff)
downloadgitea-a2f13eae559c71d35662b7767a8b8347a26eb53e.tar.gz
gitea-a2f13eae559c71d35662b7767a8b8347a26eb53e.zip
#1157 some avatar setting changes
- Allow to delete current avatar
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/user/settings/profile.tmpl4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/.VERSION b/templates/.VERSION
index 76f54f43fe..62a9b80e4f 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.8.57.0304 \ No newline at end of file
+0.8.57.0305 \ No newline at end of file
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl
index 7f46569984..a1328a2210 100644
--- a/templates/user/settings/profile.tmpl
+++ b/templates/user/settings/profile.tmpl
@@ -52,10 +52,9 @@
<form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">
{{.CsrfTokenHtml}}
<div class="inline field">
- <label>{{.i18n.Tr "settings.enable_custom_avatar"}}</label>
<div class="ui checkbox">
<input name="enable" type="checkbox" {{if .SignedUser.UseCustomAvatar}}checked{{end}}>
- <label>{{.i18n.Tr "settings.enable_custom_avatar_helper"}}</label>
+ <label>{{.i18n.Tr "settings.enable_custom_avatar"}}</label>
</div>
</div>
<div class="inline field">
@@ -65,6 +64,7 @@
<div class="field">
<button class="ui green button">{{$.i18n.Tr "settings.update_avatar"}}</button>
+ <a class="ui red button delete-post" data-request-url="{{.Link}}/avatar/delete" data-done-url="{{.Link}}">{{$.i18n.Tr "settings.delete_current_avatar"}}</a>
</div>
</form>
</div>