mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 15:05:50 +01:00
(refs #1035)Fixup
This commit is contained in:
@@ -106,27 +106,25 @@
|
||||
}
|
||||
</td>
|
||||
<td class="content-name">
|
||||
<span class="content-name-truncate">
|
||||
@if(file.isDirectory){
|
||||
@if(file.linkUrl.isDefined){
|
||||
<a href="@file.linkUrl">
|
||||
<span class="simplified-path">@file.name.split("/").toList.init match {
|
||||
case Nil => {}
|
||||
case list => {@list.mkString("", "/", "/")}
|
||||
}</span>@file.name.split("/").toList.last
|
||||
</a>
|
||||
} else {
|
||||
<a href="@url(repository)/tree@{(encodeRefName(branch) :: pathList).mkString("/", "/", "/")}@file.name">
|
||||
<span class="simplified-path">@file.name.split("/").toList.init match {
|
||||
case Nil => {}
|
||||
case list => {@list.mkString("", "/", "/")}
|
||||
}</span>@file.name.split("/").toList.last
|
||||
</a>
|
||||
}
|
||||
@if(file.isDirectory){
|
||||
@if(file.linkUrl.isDefined){
|
||||
<a href="@file.linkUrl">
|
||||
<span class="simplified-path">@file.name.split("/").toList.init match {
|
||||
case Nil => {}
|
||||
case list => {@list.mkString("", "/", "/")}
|
||||
}</span>@file.name.split("/").toList.last
|
||||
</a>
|
||||
} else {
|
||||
<a href="@url(repository)/blob@{(encodeRefName(branch) :: pathList).mkString("/", "/", "/")}@file.name">@file.name</a>
|
||||
<a href="@url(repository)/tree@{(encodeRefName(branch) :: pathList).mkString("/", "/", "/")}@file.name">
|
||||
<span class="simplified-path">@file.name.split("/").toList.init match {
|
||||
case Nil => {}
|
||||
case list => {@list.mkString("", "/", "/")}
|
||||
}</span>@file.name.split("/").toList.last
|
||||
</a>
|
||||
}
|
||||
</span>
|
||||
} else {
|
||||
<a href="@url(repository)/blob@{(encodeRefName(branch) :: pathList).mkString("/", "/", "/")}@file.name">@file.name</a>
|
||||
}
|
||||
</td>
|
||||
<td class="mute">
|
||||
<a href="@url(repository)/commit/@file.commitId" class="commit-message shorten-text" title="@file.message">@link(file.message, repository)</a>
|
||||
|
||||
@@ -829,11 +829,6 @@ table.table-file-list .file-icon {
|
||||
|
||||
table.table-file-list .content-name {
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
table.table-file-list .content-name .content-name-truncate {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
Reference in New Issue
Block a user