diff --git a/src/main/twirl/gitbucket/core/account/activity.scala.html b/src/main/twirl/gitbucket/core/account/activity.scala.html index 24d2c28..ed986ef 100644 --- a/src/main/twirl/gitbucket/core/account/activity.scala.html +++ b/src/main/twirl/gitbucket/core/account/activity.scala.html @@ -1,11 +1,10 @@ @(account: gitbucket.core.model.Account, groupNames: List[String], activities: List[gitbucket.core.model.Activity])(implicit context: gitbucket.core.controller.Context) -@import context._ -@import gitbucket.core.view.helpers._ -@main(account, groupNames, "activity"){ +@import gitbucket.core.view.helpers +@gitbucket.core.account.html.main(account, groupNames, "activity"){
- activities + activities
- @helper.html.activities(activities) + @gitbucket.core.helper.html.activities(activities) } diff --git a/src/main/twirl/gitbucket/core/account/application.scala.html b/src/main/twirl/gitbucket/core/account/application.scala.html index fd23ca6..22ff200 100644 --- a/src/main/twirl/gitbucket/core/account/application.scala.html +++ b/src/main/twirl/gitbucket/core/account/application.scala.html @@ -1,11 +1,9 @@ @(account: gitbucket.core.model.Account, personalTokens: List[gitbucket.core.model.AccessToken], gneratedToken: Option[(gitbucket.core.model.AccessToken, String)])(implicit context: gitbucket.core.controller.Context) -@import context._ -@import gitbucket.core.view.helpers._ -@html.main("Applications"){ +@gitbucket.core.html.main("Applications"){
- @menu("application", settings.ssh){ + @gitbucket.core.account.html.menu("application", context.settings.ssh){
Personal access tokens
@@ -15,13 +13,13 @@ Tokens you have generated that can be used to access the GitBucket API.
} - @gneratedToken.map{ case (token, tokenString) => + @gneratedToken.map { case (token, tokenString) =>
Make sure to copy your new personal access token now. You won't be able to see it again!
- Delete + Delete
- @helper.html.copy("generated-token-copy", tokenString){ + @gitbucket.core.helper.html.copy("generated-token-copy", tokenString){ }
@@ -32,11 +30,11 @@
} @token.note - Delete + Delete }
-
+
Generate new token
diff --git a/src/main/twirl/gitbucket/core/account/edit.scala.html b/src/main/twirl/gitbucket/core/account/edit.scala.html index d8bf434..21377e5 100644 --- a/src/main/twirl/gitbucket/core/account/edit.scala.html +++ b/src/main/twirl/gitbucket/core/account/edit.scala.html @@ -1,14 +1,13 @@ @(account: gitbucket.core.model.Account, info: Option[Any], error: Option[Any])(implicit context: gitbucket.core.controller.Context) @import gitbucket.core.util.LDAPUtil -@import context._ -@import gitbucket.core.view.helpers._ -@html.main("Edit your profile"){ +@import gitbucket.core.view.helpers +@gitbucket.core.html.main("Edit your profile"){
- @menu("profile", settings.ssh){ - @helper.html.information(info) - @helper.html.error(error) + @gitbucket.core.account.html.menu("profile", context.settings.ssh){ + @gitbucket.core.helper.html.information(info) + @gitbucket.core.helper.html.error(error) @if(LDAPUtil.isDummyMailAddress(account)){
Please register your mail address.
} - +
Profile
@@ -42,7 +41,7 @@
- @helper.html.uploadavatar(Some(account)) + @gitbucket.core.helper.html.uploadavatar(Some(account))
@@ -50,10 +49,10 @@
- @if(!LDAPUtil.isDummyMailAddress(account)){Cancel} + @if(!LDAPUtil.isDummyMailAddress(account)){Cancel}
} diff --git a/src/main/twirl/gitbucket/core/account/group.scala.html b/src/main/twirl/gitbucket/core/account/group.scala.html index 04f012b..1bda182 100644 --- a/src/main/twirl/gitbucket/core/account/group.scala.html +++ b/src/main/twirl/gitbucket/core/account/group.scala.html @@ -1,11 +1,10 @@ @(account: Option[gitbucket.core.model.Account], members: List[gitbucket.core.model.GroupMember])(implicit context: gitbucket.core.controller.Context) -@import context._ -@import gitbucket.core.view.helpers._ -@html.main(if(account.isEmpty) "Create group" else "Edit group"){ +@import gitbucket.core.view.helpers +@gitbucket.core.html.main(if(account.isEmpty) "Create group" else "Edit group"){

@{if(account.isEmpty) "Create group" else "Edit group"}

-
+
@@ -24,7 +23,7 @@
- @helper.html.uploadavatar(account) + @gitbucket.core.helper.html.uploadavatar(account)
@@ -32,7 +31,7 @@
- @helper.html.account("memberName", 200) + @gitbucket.core.helper.html.account("memberName", 200)
@@ -44,12 +43,12 @@
@if(account.isDefined){ } @if(account.isDefined){ - Cancel + Cancel }
@@ -81,7 +80,7 @@ } // check existence - $.post('@path/_user/existence', { + $.post('@context.path/_user/existence', { 'userName': userName }, function(data, status){ if(data == 'true'){ @@ -125,7 +124,7 @@ .append(memberButton) .append(managerButton)) .append(' ') - .append($('').attr('href', '@path/' + userName).text(userName)) + .append($('').attr('href', '@context.path/' + userName).text(userName)) .append(' ') .append($('(remove)'))); } diff --git a/src/main/twirl/gitbucket/core/account/main.scala.html b/src/main/twirl/gitbucket/core/account/main.scala.html index b9bf8ce..69cc133 100644 --- a/src/main/twirl/gitbucket/core/account/main.scala.html +++ b/src/main/twirl/gitbucket/core/account/main.scala.html @@ -1,12 +1,11 @@ @(account: gitbucket.core.model.Account, groupNames: List[String], active: String, isGroupManager: Boolean = false)(body: Html)(implicit context: gitbucket.core.controller.Context) -@import context._ -@import gitbucket.core.view.helpers._ -@html.main(account.userName){ +@import gitbucket.core.view.helpers +@gitbucket.core.html.main(account.userName){