When using H2, caution message shows at sign-in.

This commit is contained in:
KOUNOIKE Yuusuke
2017-04-01 19:29:24 +09:00
parent 0a08879d8c
commit a7920a7dd7

View File

@@ -1,6 +1,7 @@
@(userName: Option[Any] = None, @(userName: Option[Any] = None,
password: Option[Any] = None, password: Option[Any] = None,
error: Option[Any] = None)(implicit context: gitbucket.core.controller.Context) error: Option[Any] = None)(implicit context: gitbucket.core.controller.Context)
@import gitbucket.core.util.DatabaseConfig
@gitbucket.core.html.main("Sign in"){ @gitbucket.core.html.main("Sign in"){
<div class="content-wrapper main-center"> <div class="content-wrapper main-center">
<div class="content body"> <div class="content body">
@@ -11,6 +12,12 @@
@Html(information) @Html(information)
</div> </div>
} }
@if(DatabaseConfig.url.startsWith("jdbc:h2:")) {
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert">&times;</button>
H2 database should be used for evaluation purpose only.
</div>
}
@gitbucket.core.helper.html.error(error) @gitbucket.core.helper.html.error(error)
@gitbucket.core.html.signinform(context.settings, userName, password) @gitbucket.core.html.signinform(context.settings, userName, password)
</div> </div>