From ba618915104c2cee782953c08c6e6ab20f97dafb Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sun, 27 Mar 2016 19:05:09 +0900 Subject: [PATCH 1/3] Move the repository menu to the sidebar --- .../core/account/application.scala.html | 88 +++++++++--------- .../gitbucket/core/account/edit.scala.html | 13 +-- .../gitbucket/core/account/main.scala.html | 93 +++++++++---------- .../gitbucket/core/account/menu.scala.html | 2 +- .../gitbucket/core/account/ssh.scala.html | 64 ++++++------- .../gitbucket/core/admin/menu.scala.html | 38 ++++---- src/main/twirl/gitbucket/core/main.scala.html | 2 +- src/main/twirl/gitbucket/core/menu.scala.html | 37 ++++---- .../gitbucket/core/settings/menu.scala.html | 50 +++++----- .../twirl/gitbucket/core/wiki/page.scala.html | 31 +++---- .../webapp/assets/common/css/gitbucket.css | 5 + 11 files changed, 202 insertions(+), 221 deletions(-) diff --git a/src/main/twirl/gitbucket/core/account/application.scala.html b/src/main/twirl/gitbucket/core/account/application.scala.html index de74c01f2..9275cc286 100644 --- a/src/main/twirl/gitbucket/core/account/application.scala.html +++ b/src/main/twirl/gitbucket/core/account/application.scala.html @@ -5,56 +5,52 @@ @import gitbucket.core.view.helpers._ @html.main("Applications"){
-
-
- @menu("application", settings.ssh) -
-
-
-
Personal access tokens
-
- @if(personalTokens.isEmpty && gneratedToken.isEmpty){ - No tokens. - } else { - Tokens you have generated that can be used to access the GitBucket API. -
- } - @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 -
- @helper.html.copy("generated-token-copy", tokenString){ - - } -
-
- } - @personalTokens.zipWithIndex.map { case (token, i) => - @if(i != 0){ -
+ @menu("application", settings.ssh) +
+
+
Personal access tokens
+
+ @if(personalTokens.isEmpty && gneratedToken.isEmpty){ + No tokens. + } else { + Tokens you have generated that can be used to access the GitBucket API. +
+ } + @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 +
+ @helper.html.copy("generated-token-copy", tokenString){ + } - @token.note - Delete +
+
+ } + @personalTokens.zipWithIndex.map { case (token, i) => + @if(i != 0){ +
} + @token.note + Delete + } +
+
+
+
+
Generate new token
+
+
+ +
+ +

What's this token for?

+
+
- -
-
Generate new token
-
-
- -
- -

What's this token for?

-
- -
-
-
-
+
} diff --git a/src/main/twirl/gitbucket/core/account/edit.scala.html b/src/main/twirl/gitbucket/core/account/edit.scala.html index a549edeb5..3520ca751 100644 --- a/src/main/twirl/gitbucket/core/account/edit.scala.html +++ b/src/main/twirl/gitbucket/core/account/edit.scala.html @@ -4,14 +4,11 @@ @import gitbucket.core.view.helpers._ @html.main("Edit your profile"){
-
-
- @menu("profile", settings.ssh) -
-
- @helper.html.information(info) - @if(LDAPUtil.isDummyMailAddress(account)){
Please register your mail address.
} -
+ @menu("profile", settings.ssh) +
+ @helper.html.information(info) + @if(LDAPUtil.isDummyMailAddress(account)){
Please register your mail address.
} +
Profile
diff --git a/src/main/twirl/gitbucket/core/account/main.scala.html b/src/main/twirl/gitbucket/core/account/main.scala.html index aa193d3ee..17f642461 100644 --- a/src/main/twirl/gitbucket/core/account/main.scala.html +++ b/src/main/twirl/gitbucket/core/account/main.scala.html @@ -4,56 +4,51 @@ @import gitbucket.core.view.helpers._ @html.main(account.userName){
-
-
-
-
- - - -
-
- @if(account.url.isDefined){ - - } -
Joined on @date(account.registeredDate)
-
- @if(groupNames.nonEmpty){ -
-
Groups
- @groupNames.map { groupName => - @avatarLink(groupName, 36, tooltip = true) - } -
- } - -
-
- - @body -
+
+
+ + +
+
+ @if(account.url.isDefined){ + + } +
Joined on @date(account.registeredDate)
+
+ @if(groupNames.nonEmpty){ +
+
Groups
+ @groupNames.map { groupName => + @avatarLink(groupName, 36, tooltip = true) + } +
+ } +
+
+ + @body
} diff --git a/src/main/twirl/gitbucket/core/account/menu.scala.html b/src/main/twirl/gitbucket/core/account/menu.scala.html index ef4fbc5d9..2125e3b77 100644 --- a/src/main/twirl/gitbucket/core/account/menu.scala.html +++ b/src/main/twirl/gitbucket/core/account/menu.scala.html @@ -1,6 +1,6 @@ @(active: String, ssh: Boolean)(implicit context: gitbucket.core.controller.Context) @import context._ -
+