diff --git a/src/main/twirl/gitbucket/core/repo/blob.scala.html b/src/main/twirl/gitbucket/core/repo/blob.scala.html index 29972b2..e12bdc0 100644 --- a/src/main/twirl/gitbucket/core/repo/blob.scala.html +++ b/src/main/twirl/gitbucket/core/repo/blob.scala.html @@ -47,57 +47,50 @@ } } - - - - - - - - -
-
- @avatar(latestCommit, 20) - @user(latestCommit.authorName, latestCommit.authorEmailAddress, "username strong") - @helper.html.datetimeago(latestCommit.commitTime) - @link(latestCommit.summary, repository) -
-
- @if(hasWritePermission && content.viewType == "text" && repository.branchList.contains(branch)){ - Edit - } - Raw - @if(content.viewType == "text"){ - Blame - } - History - @if(hasWritePermission){ - Delete - } -
-
- @if(content.viewType == "text"){ - @defining(isRenderable(pathList.reverse.head)){ isRrenderable => - @if(!isBlame && isRrenderable) { -
- @renderMarkup(pathList, content.content.get, branch, repository, false, false, true) -
- } else { -
@content.content.get
- } - } - } - @if(content.viewType == "image"){ - - } - @if(content.viewType == "large" || content.viewType == "binary"){ -
- View Raw
-
- (Sorry about that, but we can't show files that are this big right now) +
+ @avatar(latestCommit, 20) + @user(latestCommit.authorName, latestCommit.authorEmailAddress, "username strong") + @helper.html.datetimeago(latestCommit.commitTime) + @link(latestCommit.summary, repository) +
+ @if(hasWritePermission && content.viewType == "text" && repository.branchList.contains(branch)){ + Edit + } + Raw + @if(content.viewType == "text"){ + Blame + } + History + @if(hasWritePermission){ + Delete + } +
+
+ @if(content.viewType == "text"){ + @defining(isRenderable(pathList.reverse.head)){ isRrenderable => + @if(!isBlame && isRrenderable) { +
+ @renderMarkup(pathList, content.content.get, branch, repository, false, false, true) +
+ } else { +
+
@content.content.get
} -
+ } + } + @if(content.viewType == "image"){ +
+ +
+ } + @if(content.viewType == "large" || content.viewType == "binary"){ +
+ View Raw
+
+ (Sorry about that, but we can't show files that are this big right now) +
+ } } } diff --git a/src/main/twirl/gitbucket/core/repo/find.scala.html b/src/main/twirl/gitbucket/core/repo/find.scala.html index 3db4489..12490fd 100644 --- a/src/main/twirl/gitbucket/core/repo/find.scala.html +++ b/src/main/twirl/gitbucket/core/repo/find.scala.html @@ -28,7 +28,7 @@ - +