gitea源码

12345678910111213141516171819202122232425262728293031323334353637
  1. {{template "base/head" .}}
  2. <div role="main" aria-label="{{.Title}}" class="page-content user link-account">
  3. <overflow-menu class="ui secondary pointing tabular top attached borderless menu secondary-nav">
  4. <div class="overflow-menu-items tw-justify-center">
  5. <!-- TODO handle .ShowRegistrationButton once other login bugs are fixed -->
  6. {{if not .AllowOnlyInternalRegistration}}
  7. <a class="item {{if not .user_exists}}active{{end}}"
  8. data-tab="auth-link-signup-tab">
  9. {{ctx.Locale.Tr "auth.oauth_signup_tab"}}
  10. </a>
  11. {{end}}
  12. <a class="item {{if .user_exists}}active{{end}}"
  13. data-tab="auth-link-signin-tab">
  14. {{ctx.Locale.Tr "auth.oauth_signin_tab"}}
  15. </a>
  16. </div>
  17. </overflow-menu>
  18. <div class="ui middle very relaxed page grid">
  19. <div class="column tw-my-5">
  20. {{/* these styles are quite tricky but it needs to be the same as the signin page */}}
  21. <div class="ui tab {{if not .user_exists}}active{{end}}" data-tab="auth-link-signup-tab">
  22. <div class="tw-flex tw-flex-col tw-gap-4 tw-max-w-2xl tw-m-auto">
  23. {{if .AutoRegistrationFailedPrompt}}<div class="ui message">{{.AutoRegistrationFailedPrompt}}</div>{{end}}
  24. {{template "user/auth/signup_inner" .}}
  25. </div>
  26. </div>
  27. <div class="ui tab {{if .user_exists}}active{{end}}" data-tab="auth-link-signin-tab">
  28. <div class="tw-flex tw-flex-col tw-gap-4 tw-max-w-2xl tw-m-auto">
  29. {{template "user/auth/signin_inner" .}}
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. {{template "base/footer" .}}