aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org/settings
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-06 17:12:02 -0400
committerUnknwon <u@gogs.io>2015-09-06 17:12:02 -0400
commitc38754d432c4244a884ccf2576397eb15552b495 (patch)
tree4a4ccc071f6625c7d143c1d647b4b17d3a7f7fab /templates/org/settings
parent85f34ba53843177999cb98bad046e9cce22bfc8f (diff)
downloadgitea-c38754d432c4244a884ccf2576397eb15552b495.tar.gz
gitea-c38754d432c4244a884ccf2576397eb15552b495.zip
#1191 allow upload avatar for org
Signed-off-by: Unknwon <u@gogs.io>
Diffstat (limited to 'templates/org/settings')
-rw-r--r--templates/org/settings/options.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl
index 1c1c8bcf01..61db48b6f6 100644
--- a/templates/org/settings/options.tmpl
+++ b/templates/org/settings/options.tmpl
@@ -37,6 +37,20 @@
<button class="ui green button">{{$.i18n.Tr "org.settings.update_settings"}}</button>
</div>
</form>
+
+ <div class="ui divider"></div>
+
+ <form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">
+ {{.CsrfTokenHtml}}
+ <div class="inline field">
+ <label for="avatar">{{.i18n.Tr "settings.choose_new_avatar"}}</label>
+ <input name="avatar" type="file" >
+ </div>
+
+ <div class="field">
+ <button class="ui green button">{{$.i18n.Tr "settings.update_avatar"}}</button>
+ </div>
+ </form>
</div>
</div>
</div>