code.gitea.io/gitea@v1.22.3/templates/user/auth/webauthn.tmpl (about)

     1  {{template "base/head" .}}
     2  <div role="main" aria-label="{{.Title}}" class="page-content user signin webauthn-prompt">
     3  	<div class="ui page grid">
     4  		<div class="column center aligned">
     5  			{{template "user/auth/webauthn_error" .}}
     6  			<h3 class="ui top attached header">{{ctx.Locale.Tr "twofa"}}</h3>
     7  			<div class="ui attached segment">
     8  				{{svg "octicon-key" 56}}
     9  				<h3>{{ctx.Locale.Tr "webauthn_insert_key"}}</h3>
    10  				{{template "base/alert" .}}
    11  				<p>{{ctx.Locale.Tr "webauthn_sign_in"}}</p>
    12  			</div>
    13  			<div class="ui attached segment tw-flex tw-items-center tw-justify-center tw-gap-1 tw-py-2">
    14  				<div class="is-loading tw-w-[40px] tw-h-[40px]"></div>
    15  				{{ctx.Locale.Tr "webauthn_press_button"}}
    16  			</div>
    17  			{{if .HasTwoFactor}}
    18  				<div class="ui attached segment">
    19  					<a href="{{AppSubUrl}}/user/two_factor">{{ctx.Locale.Tr "webauthn_use_twofa"}}</a>
    20  				</div>
    21  			{{end}}
    22  		</div>
    23  	</div>
    24  </div>
    25  {{template "base/footer" .}}