mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
feat(settings): replace div.panel
with paragraph tags for OAuth2 links
This commit is contained in:
parent
5ae2cbd943
commit
327d027d38
1 changed files with 4 additions and 4 deletions
|
@ -29,21 +29,21 @@
|
|||
<input type="password" name="confirmation" id="form-confirmation" value="{{ .form.Confirmation }}" autocomplete="new-password">
|
||||
|
||||
{{ if hasOAuth2Provider "google" }}
|
||||
<div class="panel">
|
||||
<p>
|
||||
{{ if .user.GoogleID }}
|
||||
<a href="{{ route "oauth2Unlink" "provider" "google" }}">{{ t "page.settings.unlink_google_account" }}</a>
|
||||
{{ else }}
|
||||
<a href="{{ route "oauth2Redirect" "provider" "google" }}">{{ t "page.settings.link_google_account" }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</p>
|
||||
{{ else if hasOAuth2Provider "oidc" }}
|
||||
<div class="panel">
|
||||
<p>
|
||||
{{ if .user.OpenIDConnectID }}
|
||||
<a href="{{ route "oauth2Unlink" "provider" "oidc" }}">{{ t "page.settings.unlink_oidc_account" oidcProviderName }}</a>
|
||||
{{ else }}
|
||||
<a href="{{ route "oauth2Redirect" "provider" "oidc" }}">{{ t "page.settings.link_oidc_account" oidcProviderName }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
<div class="buttons">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue