mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 23:15:49 +01:00
(refs #984)Fix special character problem in repository viewer
This commit is contained in:
@@ -115,7 +115,7 @@
|
|||||||
}</span>@file.name.split("/").toList.last
|
}</span>@file.name.split("/").toList.last
|
||||||
</a>
|
</a>
|
||||||
} else {
|
} else {
|
||||||
<a href="@url(repository)/tree@{(encodeRefName(branch) :: pathList).mkString("/", "/", "/")}@file.name">
|
<a href="@url(repository)/tree@{(branch :: pathList).map(encodeRefName).mkString("/", "/", "/")}@{encodeRefName(file.name)}">
|
||||||
<span class="simplified-path">@file.name.split("/").toList.init match {
|
<span class="simplified-path">@file.name.split("/").toList.init match {
|
||||||
case Nil => {}
|
case Nil => {}
|
||||||
case list => {@list.mkString("", "/", "/")}
|
case list => {@list.mkString("", "/", "/")}
|
||||||
|
|||||||
Reference in New Issue
Block a user