Download this file
| 1 | {{define "id-body"}} |
| 2 | {{if eq .ID.State "settings"}} |
| 3 | {{if .ID.Subject}}<p><code>{{.ID.Subject}}</code></p><p>{{printf (copy "id.linked_at") (.ID.LinkedAt.UTC.Format "2006-01-02 15:04 UTC")}}</p> |
| 4 | {{else}}<p>{{copy "id.not_linked"}}</p>{{end}} |
| 5 | <p>{{copy "id.reauth"}}</p> |
| 6 | <form method="post" action="/account/home/reauth"> |
| 7 | {{if .ID.Subject}}<input type="hidden" name="purpose" value="unlink"><button rst-btn type="submit">{{copy "id.unlink"}}</button> |
| 8 | {{else}}<input type="hidden" name="purpose" value="link"><button rst-btn type="submit">{{copy "id.link"}}</button>{{end}}</form> |
| 9 | {{else if eq .ID.State "confirm"}} |
| 10 | <p>{{copy "id.confirm"}}</p><form method="post" action="/account/home/confirm"><button rst-btn="primary" type="submit">{{copy "id.confirm_button"}}</button></form> |
| 11 | {{else if eq .ID.State "unlink"}} |
| 12 | <p>{{copy "id.unlink_confirm"}}</p><form method="post" action="/account/home/unlink"><button rst-btn="danger" type="submit">{{copy "id.unlink"}}</button></form> |
| 13 | {{else if eq .ID.State "unlinked"}} |
| 14 | <p>{{copy "id.unlinked"}}</p><p>{{copy "id.help"}}</p><a rst-btn href="/signin/local?force=1&return_to=%2Fconversation%2Fsettings%2Foficina-id">{{copy "id.email"}}</a> |
| 15 | {{else}} |
| 16 | <p>{{copy "id.failed"}}</p><a rst-btn href="/signin/local?force=1">{{copy "id.email"}}</a> |
| 17 | {{end}} |
| 18 | {{end}} |
| 19 | |