mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-15 09:55:49 +01:00
Fix indent
This commit is contained in:
@@ -121,79 +121,79 @@
|
||||
<span class="muted"> authored @gitbucket.core.helper.html.datetimeago(latestCommit.authorTime)</span>
|
||||
</div>
|
||||
@if(latestCommit.isDifferentFromAuthor) {
|
||||
<div class="committer">
|
||||
<span class="octicon octicon-arrow-right"></span>
|
||||
<span>@helpers.user(latestCommit.committerName, latestCommit.committerEmailAddress, "username strong")</span>
|
||||
<span class="muted"> committed @gitbucket.core.helper.html.datetimeago(latestCommit.commitTime)</span>
|
||||
</div>
|
||||
<div class="committer">
|
||||
<span class="octicon octicon-arrow-right"></span>
|
||||
<span>@helpers.user(latestCommit.committerName, latestCommit.committerEmailAddress, "username strong")</span>
|
||||
<span class="muted"> committed @gitbucket.core.helper.html.datetimeago(latestCommit.commitTime)</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
</tr>
|
||||
@if(pathList.size > 0){
|
||||
<tr>
|
||||
<td width="16" class="file-icon"></td>
|
||||
<td><a href="@helpers.url(repository)@if(pathList.size > 1){/tree/@helpers.encodeRefName(branch)/@helpers.encodeRefName(pathList.init.mkString("/"))}">..</a></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="16" class="file-icon"></td>
|
||||
<td><a href="@helpers.url(repository)@if(pathList.size > 1){/tree/@helpers.encodeRefName(branch)/@helpers.encodeRefName(pathList.init.mkString("/"))}">..</a></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
}
|
||||
@files.map { file =>
|
||||
<tr>
|
||||
<td width="16" class="file-icon">
|
||||
@if(file.isDirectory){
|
||||
@if(file.linkUrl.isDefined){
|
||||
<i class="octicon octicon-file-symlink-directory"></i>
|
||||
} else {
|
||||
<i class="octicon octicon-file-directory"></i>
|
||||
}
|
||||
} else {
|
||||
<i class="octicon octicon-file-text"></i>
|
||||
}
|
||||
</td>
|
||||
<td class="ellipsis-cell" style="width: 20%; min-width: 160px;">
|
||||
@if(file.isDirectory){
|
||||
@{file.linkUrl match {
|
||||
case Some(linkUrl) if linkUrl.startsWith("http://") || linkUrl.startsWith("https://") => {
|
||||
<a href={linkUrl}>
|
||||
<span class="simplified-path">{file.name.split("/").toList.init match {
|
||||
case Nil => ""
|
||||
case list => list.mkString("", "/", "/")
|
||||
}}</span>
|
||||
{file.name.split("/").toList.last}
|
||||
</a>
|
||||
<tr>
|
||||
<td width="16" class="file-icon">
|
||||
@if(file.isDirectory){
|
||||
@if(file.linkUrl.isDefined){
|
||||
<i class="octicon octicon-file-symlink-directory"></i>
|
||||
} else {
|
||||
<i class="octicon octicon-file-directory"></i>
|
||||
}
|
||||
case Some(_) => {
|
||||
<span>
|
||||
<span class="simplified-path">{file.name.split("/").toList.init match {
|
||||
case Nil => ""
|
||||
case list => list.mkString("", "/", "/")
|
||||
}}</span>
|
||||
{file.name.split("/").toList.last}
|
||||
</span>
|
||||
}
|
||||
case None => {
|
||||
<a href={helpers.url(repository) + "/tree" + helpers.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>
|
||||
}
|
||||
}}
|
||||
} else {
|
||||
<a href="@helpers.url(repository)/blob@{helpers.encodeRefName((branch :: pathList).mkString("/", "/", "/") + file.name)}">@file.name</a>
|
||||
}
|
||||
</td>
|
||||
<td class="ellipsis-cell" style="width: 70%;">
|
||||
<span>
|
||||
<a href="@helpers.url(repository)/commit/@file.commitId" class="commit-message" title="@file.message">@helpers.link(file.message, repository)</a>
|
||||
</span>
|
||||
</td>
|
||||
<td style="width: 10%; min-width: 125px; text-align: right;">@gitbucket.core.helper.html.datetimeago(file.time, false)</td>
|
||||
</tr>
|
||||
} else {
|
||||
<i class="octicon octicon-file-text"></i>
|
||||
}
|
||||
</td>
|
||||
<td class="ellipsis-cell" style="width: 20%; min-width: 160px;">
|
||||
@if(file.isDirectory){
|
||||
@{file.linkUrl match {
|
||||
case Some(linkUrl) if linkUrl.startsWith("http://") || linkUrl.startsWith("https://") => {
|
||||
<a href={linkUrl}>
|
||||
<span class="simplified-path">{file.name.split("/").toList.init match {
|
||||
case Nil => ""
|
||||
case list => list.mkString("", "/", "/")
|
||||
}}</span>
|
||||
{file.name.split("/").toList.last}
|
||||
</a>
|
||||
}
|
||||
case Some(_) => {
|
||||
<span>
|
||||
<span class="simplified-path">{file.name.split("/").toList.init match {
|
||||
case Nil => ""
|
||||
case list => list.mkString("", "/", "/")
|
||||
}}</span>
|
||||
{file.name.split("/").toList.last}
|
||||
</span>
|
||||
}
|
||||
case None => {
|
||||
<a href={helpers.url(repository) + "/tree" + helpers.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>
|
||||
}
|
||||
}}
|
||||
} else {
|
||||
<a href="@helpers.url(repository)/blob@{helpers.encodeRefName((branch :: pathList).mkString("/", "/", "/") + file.name)}">@file.name</a>
|
||||
}
|
||||
</td>
|
||||
<td class="ellipsis-cell" style="width: 70%;">
|
||||
<span>
|
||||
<a href="@helpers.url(repository)/commit/@file.commitId" class="commit-message" title="@file.message">@helpers.link(file.message, repository)</a>
|
||||
</span>
|
||||
</td>
|
||||
<td style="width: 10%; min-width: 125px; text-align: right;">@gitbucket.core.helper.html.datetimeago(file.time, false)</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
@readme.map { case(filePath, content) =>
|
||||
|
||||
Reference in New Issue
Block a user