|
|
|
@ -3,38 +3,9 @@ |
|
|
|
|
<meta itemprop="description" content="Log in to {{.SiteName}}."> |
|
|
|
|
<style> |
|
|
|
|
input{margin-bottom:0.5em;} |
|
|
|
|
.or { |
|
|
|
|
text-align: center; |
|
|
|
|
margin-bottom: 3.5em; |
|
|
|
|
} |
|
|
|
|
.or p { |
|
|
|
|
display: inline-block; |
|
|
|
|
background-color: white; |
|
|
|
|
padding: 0 1em; |
|
|
|
|
} |
|
|
|
|
.or hr { |
|
|
|
|
margin-top: -1.6em; |
|
|
|
|
margin-bottom: 0; |
|
|
|
|
} |
|
|
|
|
hr.short { |
|
|
|
|
max-width: 30rem; |
|
|
|
|
} |
|
|
|
|
.row.signinbtns { |
|
|
|
|
justify-content: space-evenly; |
|
|
|
|
font-size: 1em; |
|
|
|
|
margin-top: 3em; |
|
|
|
|
margin-bottom: 2em; |
|
|
|
|
} |
|
|
|
|
.loginbtn { |
|
|
|
|
height: 40px; |
|
|
|
|
} |
|
|
|
|
#writeas-login { |
|
|
|
|
box-sizing: border-box; |
|
|
|
|
font-size: 17px; |
|
|
|
|
} |
|
|
|
|
#gitlab-login { |
|
|
|
|
box-sizing: border-box; |
|
|
|
|
font-size: 17px; |
|
|
|
|
#generic-oauth-login { |
|
|
|
|
box-sizing: border-box; |
|
|
|
|
font-size: 17px; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
{{end}} |
|
|
|
@ -46,7 +17,7 @@ hr.short { |
|
|
|
|
{{range .Flashes}}<li class="urgent">{{.}}</li>{{end}} |
|
|
|
|
</ul>{{end}} |
|
|
|
|
|
|
|
|
|
{{ if or .OauthSlack .OauthWriteAs .OauthGitlab }} |
|
|
|
|
{{ if or .OauthSlack .OauthWriteAs .OauthGitlab .OauthGeneric }} |
|
|
|
|
<div class="row content-container signinbtns"> |
|
|
|
|
{{ if .OauthSlack }} |
|
|
|
|
<a class="loginbtn" href="/oauth/slack"><img alt="Sign in with Slack" height="40" width="172" src="/img/sign_in_with_slack.png" srcset="/img/sign_in_with_slack.png 1x, /img/sign_in_with_slack@2x.png 2x" /></a> |
|
|
|
@ -57,6 +28,9 @@ hr.short { |
|
|
|
|
{{ if .OauthGitlab }} |
|
|
|
|
<a class="btn cta loginbtn" id="gitlab-login" href="/oauth/gitlab">Sign in with <strong>{{.GitlabDisplayName}}</strong></a> |
|
|
|
|
{{ end }} |
|
|
|
|
{{ if .OauthGeneric }} |
|
|
|
|
<a class="btn cta loginbtn" id="generic-oauth-login" href="/oauth/generic">Sign in with <strong>{{ .OauthGenericDisplayName }}</strong></a> |
|
|
|
|
{{ end }} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="or"> |
|
|
|
|