|
|
@ -75,18 +75,18 @@ h3 { font-weight: normal; } |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
|
|
|
{{ if .OauthSection }} |
|
|
|
{{ if .OauthSection }} |
|
|
|
<hr /> |
|
|
|
<hr /> |
|
|
|
|
|
|
|
|
|
|
|
{{ if .OauthAccounts }} |
|
|
|
{{ if .OauthAccounts }} |
|
|
|
<div class="option"> |
|
|
|
<div class="option"> |
|
|
|
<h2>Linked Accounts</h2> |
|
|
|
<h2>Linked Accounts</h2> |
|
|
|
<p>These are your linked external accounts.</p> |
|
|
|
<p>These are your linked external accounts.</p> |
|
|
|
{{ range $oauth_account := .OauthAccounts }} |
|
|
|
{{ range $oauth_account := .OauthAccounts }} |
|
|
|
<form method="post" action="/api/me/oauth/remove" autocomplete="false"> |
|
|
|
<form method="post" action="/api/me/oauth/remove" autocomplete="false"> |
|
|
|
<input type="hidden" name="provider" value="{{ $oauth_account.Provider }}" /> |
|
|
|
<input type="hidden" name="provider" value="{{ $oauth_account.Provider }}" /> |
|
|
|
<input type="hidden" name="client_id" value="{{ $oauth_account.ClientID }}" /> |
|
|
|
<input type="hidden" name="client_id" value="{{ $oauth_account.ClientID }}" /> |
|
|
|
<input type="hidden" name="remote_user_id" value="{{ $oauth_account.RemoteUserID }}" /> |
|
|
|
<input type="hidden" name="remote_user_id" value="{{ $oauth_account.RemoteUserID }}" /> |
|
|
|
<div class="section oauth-provider"> |
|
|
|
<div class="section oauth-provider"> |
|
|
|
{{ if $oauth_account.DisplayName}} |
|
|
|
{{ if $oauth_account.DisplayName}} |
|
|
|
{{ if $oauth_account.AllowDisconnect}} |
|
|
|
{{ if $oauth_account.AllowDisconnect}} |
|
|
@ -99,8 +99,8 @@ h3 { font-weight: normal; } |
|
|
|
<input type="submit" value="Remove {{ $oauth_account.Provider | title }}" /> |
|
|
|
<input type="submit" value="Remove {{ $oauth_account.Provider | title }}" /> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
{{ if or .OauthSlack .OauthWriteAs .OauthGitLab .OauthGeneric .OauthGitea }} |
|
|
|
{{ if or .OauthSlack .OauthWriteAs .OauthGitLab .OauthGeneric .OauthGitea }} |
|
|
@ -116,41 +116,41 @@ h3 { font-weight: normal; } |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
{{ if .OauthSlack }} |
|
|
|
{{ if .OauthSlack }} |
|
|
|
<div class="section oauth-provider"> |
|
|
|
<div class="section oauth-provider"> |
|
|
|
<img src="/img/mark/slack.png" alt="Slack" /> |
|
|
|
<img src="/img/mark/slack.png" alt="Slack" /> |
|
|
|
<a class="btn cta loginbtn" href="/oauth/slack?attach=t"> |
|
|
|
<a class="btn cta loginbtn" href="/oauth/slack?attach=t"> |
|
|
|
Link <strong>Slack</strong> |
|
|
|
Link <strong>Slack</strong> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
{{ if .OauthGitLab }} |
|
|
|
{{ if .OauthGitLab }} |
|
|
|
<div class="section oauth-provider"> |
|
|
|
<div class="section oauth-provider"> |
|
|
|
<img src="/img/mark/gitlab.png" alt="GitLab" /> |
|
|
|
<img src="/img/mark/gitlab.png" alt="GitLab" /> |
|
|
|
<a class="btn cta loginbtn" id="gitlab-login" href="/oauth/gitlab?attach=t"> |
|
|
|
<a class="btn cta loginbtn" id="gitlab-login" href="/oauth/gitlab?attach=t"> |
|
|
|
Link <strong>{{.GitLabDisplayName}}</strong> |
|
|
|
Link <strong>{{.GitLabDisplayName}}</strong> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
{{ if .OauthGitea }} |
|
|
|
{{ if .OauthGitea }} |
|
|
|
<div class="section oauth-provider"> |
|
|
|
<div class="section oauth-provider"> |
|
|
|
<img src="/img/mark/gitea.png" alt="Gitea" /> |
|
|
|
<img src="/img/mark/gitea.png" alt="Gitea" /> |
|
|
|
<a class="btn cta loginbtn" id="gitea-login" href="/oauth/gitea?attach=t"> |
|
|
|
<a class="btn cta loginbtn" id="gitea-login" href="/oauth/gitea?attach=t"> |
|
|
|
Link <strong>{{.GiteaDisplayName}}</strong> |
|
|
|
Link <strong>{{.GiteaDisplayName}}</strong> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{ if .OauthGeneric }} |
|
|
|
{{ if .OauthGeneric }} |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="section oauth-provider"> |
|
|
|
<div class="section oauth-provider"> |
|
|
|
<p><a class="btn cta loginbtn" id="generic-oauth-login" href="/oauth/generic?attach=t">Link <strong>{{ .OauthGenericDisplayName }}</strong></a></p> |
|
|
|
<p><a class="btn cta loginbtn" id="generic-oauth-login" href="/oauth/generic?attach=t">Link <strong>{{ .OauthGenericDisplayName }}</strong></a></p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|