Merge branch 'master' into dependency_updates

This commit is contained in:
aadrian
2017-05-04 15:44:38 +02:00
committed by GitHub
4 changed files with 12 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
val Organization = "io.github.gitbucket"
val Name = "gitbucket"
val GitBucketVersion = "4.12.0"
val GitBucketVersion = "4.12.1"
val ScalatraVersion = "2.5.0"
val JettyVersion = "9.4.4.v20170414"
@@ -33,7 +33,7 @@ libraryDependencies ++= Seq(
"org.apache.commons" % "commons-compress" % "1.13",
"org.apache.commons" % "commons-email" % "1.4",
"org.apache.httpcomponents" % "httpclient" % "4.5.3",
"org.apache.sshd" % "apache-sshd" % "1.4.0",
"org.apache.sshd" % "apache-sshd" % "1.4.0" exclude("org.slf4j","slf4j-jdk14"),
"org.apache.tika" % "tika-core" % "1.14",
"com.github.takezoe" %% "blocking-slick-32" % "0.0.8",
"joda-time" % "joda-time" % "2.9.9",

View File

@@ -32,5 +32,6 @@ object GitBucketCoreModule extends Module("gitbucket-core",
new Version("4.11.0",
new LiquibaseMigration("update/gitbucket-core_4.11.xml")
),
new Version("4.12.0")
new Version("4.12.0"),
new Version("4.12.1")
)

View File

@@ -147,6 +147,13 @@ abstract class ControllerBase extends ScalatraFilter
}
}
override def url(path: String, params: Iterable[(String, Any)] = Iterable.empty,
includeContextPath: Boolean = true, includeServletPath: Boolean = true,
absolutize: Boolean = true, withSessionId: Boolean = true)
(implicit request: HttpServletRequest, response: HttpServletResponse): String =
if (path.startsWith("http")) path
else baseUrl + super.url(path, params, false, false, false)
/**
* Extends scalatra-form's trim rule to eliminate CR and LF.
*/

View File

@@ -44,6 +44,7 @@
$(function(){
@if(elastic){
$('#content@uid').elastic();
$('#content@uid').trigger('blur');
}
$('#preview@uid').click(function(){