diff --git a/src/main/twirl/gitbucket/core/index.scala.html b/src/main/twirl/gitbucket/core/index.scala.html index 035dde6..5d499dc 100644 --- a/src/main/twirl/gitbucket/core/index.scala.html +++ b/src/main/twirl/gitbucket/core/index.scala.html @@ -22,7 +22,7 @@ } @if(loginAccount.isEmpty){ - @signinform(settings) +
@signinform(settings)
} else {
diff --git a/src/main/twirl/gitbucket/core/menu.scala.html b/src/main/twirl/gitbucket/core/menu.scala.html index 465f1ff..f392792 100644 --- a/src/main/twirl/gitbucket/core/menu.scala.html +++ b/src/main/twirl/gitbucket/core/menu.scala.html @@ -10,12 +10,11 @@ @import gitbucket.core.service.RepositoryService._ @sidemenu(path: String, name: String, icon: String, label: String, count: Int = 0) = { -
  • +
  • - - @if(expand){ @label} - @if(expand && count > 0){ -
    @count
    + @label + @if(count > 0){ + @count }
  • @@ -24,58 +23,55 @@
    @helper.html.information(info) @helper.html.error(error) -
    -
    - @if(repository.commitCount > 0){ -
    - - - @if(loginAccount.isEmpty){ - Fork +
    + @if(repository.commitCount > 0){ +
    + + + @if(loginAccount.isEmpty){ + Fork + } else { + @if(isNoGroup) { + Fork } else { - @if(isNoGroup) { - Fork - } else { - Fork - } + Fork } - - @repository.forkedCount + } -
    - @if(loginAccount.isDefined && isNoGroup){ - - } + @repository.forkedCount + +
    + @if(loginAccount.isDefined && isNoGroup){ + } - @helper.html.repositoryicon(repository, true) - @repository.owner / @repository.name + } + @helper.html.repositoryicon(repository, true) + @repository.owner / @repository.name - @defining(repository.repository){ x => - @if(repository.repository.originRepositoryName.isDefined){ - - } + @defining(repository.repository){ x => + @if(repository.repository.originRepositoryName.isDefined){ + } -
    + }
    +
      + @sidemenu("" , "code" , "code" , "Code") + @sidemenu("/issues", "issues" , "issue-opened" , "Issues", repository.issueCount) + @sidemenu("/pulls" , "pulls" , "git-pull-request" , "Pull Requests", repository.pullCount) + @sidemenu("/wiki" , "wiki" , "book" , "Wiki") + @if(loginAccount.isDefined && (loginAccount.get.isAdmin || repository.managers.contains(loginAccount.get.userName))){ + @sidemenu("/settings" , "settings" , "tools", "Settings") + } +

    +
    -
    -
      -
    • - @sidemenu("" , "code" , "code" , "Code") - @sidemenu("/issues", "issues" , "issue-opened" , "Issues", repository.issueCount) - @sidemenu("/pulls" , "pulls" , "git-pull-request" , "Pull Requests", repository.pullCount) - @sidemenu("/wiki" , "wiki" , "book" , "Wiki") - @if(loginAccount.isDefined && (loginAccount.get.isAdmin || repository.managers.contains(loginAccount.get.userName))){ - @sidemenu("/settings" , "settings" , "tools", "Settings") - } -
    • -
    +@* @if(expand){
    HTTP clone URL @@ -97,15 +93,13 @@ - @* - *@ } } -
    -
    +*@ +@*
    *@ @if(expand){ @repository.repository.description.map { description =>

    @detectAndRenderLinks(description)

    @@ -141,7 +135,7 @@ } @body
    -
    +@*
    *@