diff --git a/src/main/twirl/gitbucket/core/account/repositories.scala.html b/src/main/twirl/gitbucket/core/account/repositories.scala.html index ceb871c..b4c7acf 100644 --- a/src/main/twirl/gitbucket/core/account/repositories.scala.html +++ b/src/main/twirl/gitbucket/core/account/repositories.scala.html @@ -2,7 +2,6 @@ repositories: List[gitbucket.core.service.RepositoryService.RepositoryInfo], isGroupManager: Boolean)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers -@import gitbucket.core.helper.html.datetimeago @gitbucket.core.account.html.main(account, groupNames, "repositories", isGroupManager){ @if(repositories.isEmpty){ No repositories @@ -25,7 +24,7 @@ @if(repository.repository.description.isDefined){
@repository.repository.description
} -
Updated @datetimeago(repository.repository.lastActivityDate)
+
Updated @gitbucket.core.helper.html.datetimeago(repository.repository.lastActivityDate)
} diff --git a/src/main/twirl/gitbucket/core/dashboard/header.scala.html b/src/main/twirl/gitbucket/core/dashboard/header.scala.html index 0945ce0..bc174bc 100644 --- a/src/main/twirl/gitbucket/core/dashboard/header.scala.html +++ b/src/main/twirl/gitbucket/core/dashboard/header.scala.html @@ -2,62 +2,61 @@ closedCount: Int, condition: gitbucket.core.service.IssuesService.IssueSearchCondition, groups: List[String])(implicit context: gitbucket.core.controller.Context) -@import gitbucket.core.helper.html.{checkicon, dropdown} @import gitbucket.core.view.helpers
@gitbucket.core.helper.html.dropdown("Visibility"){
  • - @checkicon(condition.visibility == Some("private")) + @gitbucket.core.helper.html.checkicon(condition.visibility == Some("private")) Private repository only
  • - @checkicon(condition.visibility == Some("public")) + @gitbucket.core.helper.html.checkicon(condition.visibility == Some("public")) Public repository only
  • } - @dropdown("Organization"){ + @gitbucket.core.helper.html.dropdown("Organization"){ @groups.map { group =>
  • - @checkicon(condition.groups.contains(group)) + @gitbucket.core.helper.html.checkicon(condition.groups.contains(group)) @helpers.avatar(group, 20) @group
  • } } - @dropdown("Sort"){ + @gitbucket.core.helper.html.dropdown("Sort"){
  • - @checkicon(condition.sort == "created" && condition.direction == "desc") Newest + @gitbucket.core.helper.html.checkicon(condition.sort == "created" && condition.direction == "desc") Newest
  • - @checkicon(condition.sort == "created" && condition.direction == "asc") Oldest + @gitbucket.core.helper.html.checkicon(condition.sort == "created" && condition.direction == "asc") Oldest
  • - @checkicon(condition.sort == "comments" && condition.direction == "desc") Most commented + @gitbucket.core.helper.html.checkicon(condition.sort == "comments" && condition.direction == "desc") Most commented
  • - @checkicon(condition.sort == "comments" && condition.direction == "asc") Least commented + @gitbucket.core.helper.html.checkicon(condition.sort == "comments" && condition.direction == "asc") Least commented
  • - @checkicon(condition.sort == "updated" && condition.direction == "desc") Recently updated + @gitbucket.core.helper.html.checkicon(condition.sort == "updated" && condition.direction == "desc") Recently updated
  • - @checkicon(condition.sort == "updated" && condition.direction == "asc") Least recently updated + @gitbucket.core.helper.html.checkicon(condition.sort == "updated" && condition.direction == "asc") Least recently updated
  • } diff --git a/src/main/twirl/gitbucket/core/dashboard/sidebar.scala.html b/src/main/twirl/gitbucket/core/dashboard/sidebar.scala.html index ec2b90b..f6db4a0 100644 --- a/src/main/twirl/gitbucket/core/dashboard/sidebar.scala.html +++ b/src/main/twirl/gitbucket/core/dashboard/sidebar.scala.html @@ -1,7 +1,6 @@ @(recentRepositories: List[gitbucket.core.service.RepositoryService.RepositoryInfo], userRepositories: List[gitbucket.core.service.RepositoryService.RepositoryInfo])(body: Html)(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.view.helpers -@import gitbucket.core.helper.html.repositoryicon