Restrict information visibility if allowAnonymousAccess is false (#2438)

This commit is contained in:
SIkebe
2020-04-11 02:41:05 +09:00
committed by GitHub
parent 7a0d48dd7a
commit c274acc8f4

View File

@@ -5,11 +5,13 @@
<div class="content-wrapper main-center">
<div class="content body">
<div class="signin-form">
@context.settings.information.map { information =>
<div class="alert alert-info" style="background-color: white; color: #555; border-color: #4183c4; font-size: small; line-height: 120%;">
<button type="button" class="close" data-dismiss="alert">&times;</button>
@Html(information)
</div>
@if(context.settings.allowAnonymousAccess){
@context.settings.information.map { information =>
<div class="alert alert-info" style="background-color: white; color: #555; border-color: #4183c4; font-size: small; line-height: 120%;">
<button type="button" class="close" data-dismiss="alert">&times;</button>
@Html(information)
</div>
}
}
@gitbucket.core.helper.html.error(error)
@gitbucket.core.html.signinform(context.settings, userName, password)