diff --git a/src/main/twirl/gitbucket/core/repo/blob.scala.html b/src/main/twirl/gitbucket/core/repo/blob.scala.html index 080b669..33e5395 100644 --- a/src/main/twirl/gitbucket/core/repo/blob.scala.html +++ b/src/main/twirl/gitbucket/core/repo/blob.scala.html @@ -5,13 +5,14 @@ latestCommit: gitbucket.core.util.JGitUtil.CommitInfo, hasWritePermission: Boolean, isBlame: Boolean)(implicit context: gitbucket.core.controller.Context) -@import context._ -@import gitbucket.core.view.helpers._ -@html.main(s"${(repository.name :: pathList).mkString("/")} at ${encodeRefName(branch)} - ${repository.owner}/${repository.name}", Some(repository)) { - @html.menu("files", repository){ +@import gitbucket.core.view.helpers +@import gitbucket.core.helper.html.datetimeago +@import gitbucket.core.helper.html.checkicon +@gitbucket.core.html.main(s"${(repository.name :: pathList).mkString("/")} at ${helpers.encodeRefName(branch)} - ${repository.owner}/${repository.name}", Some(repository)) { + @gitbucket.core.html.menu("files", repository){
Newer @@ -29,71 +30,71 @@ Older
- @helper.html.branchcontrol( + @gitbucket.core.helper.html.branchcontrol( branch, repository, hasWritePermission ){ @repository.branchList.map { x => -
  • @helper.html.checkicon(x == branch) @x
  • +
  • @checkicon(x == branch) @x
  • } } - @repository.name / + @repository.name / @pathList.zipWithIndex.map { case (section, i) => @if(i == pathList.length - 1){ @section } else { - @section / + @section / } }
    - @avatar(latestCommit, 28) - @user(latestCommit.authorName, latestCommit.authorEmailAddress, "username strong") - @helper.html.datetimeago(latestCommit.commitTime) - @link(latestCommit.summary, repository) + @helpers.avatar(latestCommit, 28) + @helpers.user(latestCommit.authorName, latestCommit.authorEmailAddress, "username strong") + @datetimeago(latestCommit.commitTime) + @helpers.link(latestCommit.summary, repository)
    @if(hasWritePermission && content.viewType == "text" && repository.branchList.contains(branch)){ - Edit + Edit } - Raw + Raw @if(content.viewType == "text"){ - Blame + Blame } - History + History @if(hasWritePermission && repository.branchList.contains(branch)){ - Delete + Delete }
    @if(content.viewType == "text"){ - @defining(isRenderable(pathList.reverse.head)){ isRrenderable => - @if(!isBlame && isRrenderable) { + @defining(helpers.isRenderable(pathList.reverse.head)){ isRenderable => + @if(!isBlame && isRenderable) {
    - @renderMarkup(pathList, content.content.get, branch, repository, false, false, true) + @helpers.renderMarkup(pathList, content.content.get, branch, repository, false, false, true)
    } else {
    -
    @content.content.get
    +
    @content.content.get
    } } } @if(content.viewType == "image"){
    - +
    } @if(content.viewType == "large" || content.viewType == "binary"){
    - View Raw
    + View Raw

    (Sorry about that, but we can't show files that are this big right now)
    } } } - + - + + - - + + +