summaryrefslogtreecommitdiffstats
path: root/templates/user/settings
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2017-03-20 09:31:08 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-03-20 09:31:08 +0100
commit9182a35f18b6d5cd981486852028e670984145c3 (patch)
treecab69a27330df5a095de95017e8b40bf13598889 /templates/user/settings
parente1586898b2f0905b6f59383c01a3aed6b39de93a (diff)
downloadgitea-9182a35f18b6d5cd981486852028e670984145c3.tar.gz
gitea-9182a35f18b6d5cd981486852028e670984145c3.zip
Show user OpenID URIs in their profile (#1314)
Diffstat (limited to 'templates/user/settings')
-rw-r--r--templates/user/settings/openid.tmpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/user/settings/openid.tmpl b/templates/user/settings/openid.tmpl
index a8b3a4e0f5..9da4be4274 100644
--- a/templates/user/settings/openid.tmpl
+++ b/templates/user/settings/openid.tmpl
@@ -20,6 +20,24 @@
{{$.i18n.Tr "settings.delete_key"}}
</button>
</div>
+ <div class="ui right">
+ <form action="{{$.Link}}/toggle_visibility" method="post">
+ {{$.CsrfTokenHtml}}
+ <input name="id" type="hidden" value="{{.ID}}">
+ {{if .Show}}
+ <button class="ui tiny button">
+ <i class="icon fa-eye"></i>
+ {{$.i18n.Tr "settings.hide_openid"}}
+ </button>
+ {{else}}
+ <button class="ui tiny button">
+ <i class="icon fa-eye-slash"></i>
+ {{$.i18n.Tr "settings.show_openid"}}
+ </button>
+ {{end}}
+ </button>
+ </form>
+ </div>
</div>
</div>
{{end}}