mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 11:36:05 +01:00
Cleanup
This commit is contained in:
@@ -176,13 +176,7 @@ object Markdown {
|
|||||||
} else if (!enableWikiLink) {
|
} else if (!enableWikiLink) {
|
||||||
if (context.currentPath.contains("/blob/")) {
|
if (context.currentPath.contains("/blob/")) {
|
||||||
urlWithRawParam
|
urlWithRawParam
|
||||||
// } else if (context.currentPath.contains("/tree/")) {
|
|
||||||
// val paths = context.currentPath.split("/")
|
|
||||||
// //val branch = if (paths.length > 3) paths.drop(4).mkString("/") else branch
|
|
||||||
// repository.httpUrl.replaceFirst("/git/", "/").stripSuffix(".git") + "/blob/" + branch + "/" + urlWithRawParam
|
|
||||||
} else {
|
} else {
|
||||||
// val paths = context.currentPath.split("/")
|
|
||||||
//val branch = if (paths.length > 3) paths.last else branch
|
|
||||||
repository.httpUrl.replaceFirst("/git/", "/").stripSuffix(".git") + "/blob/" + branch + "/" + urlWithRawParam
|
repository.httpUrl.replaceFirst("/git/", "/").stripSuffix(".git") + "/blob/" + branch + "/" + urlWithRawParam
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user