- @if(hasWritePermission){
-
New Page
-
Edit Page
- }
-
Page History
+ @html.menu("wiki", repository){
+
+
+
+
+ Pages |
+
+
+
+
+ @pages.map { page =>
+ - @page
+ }
+
+ |
+
+
+
+ Clone this wiki locally
-
-
-
- @markdown(page.content, repository, true, false)
-
-
- Last edited by @page.committer at @datetime(page.time)
-
+ @helper.html.copy("repository-url-copy", repository.httpUrl){
+
+ }
+ @if(settings.ssh && loginAccount.isDefined){
+
+ }
+
+
+
+ @markdown(page.content, repository, true, false)
+
+
+ }
}
+@if(settings.ssh && loginAccount.isDefined){
+
+}
\ No newline at end of file
diff --git a/src/main/twirl/wiki/pages.scala.html b/src/main/twirl/wiki/pages.scala.html
index 429c438..ca1760d 100644
--- a/src/main/twirl/wiki/pages.scala.html
+++ b/src/main/twirl/wiki/pages.scala.html
@@ -4,24 +4,23 @@
@import context._
@import view.helpers._
@html.main(s"Pages - ${repository.owner}/${repository.name}", Some(repository)){
- @html.header("wiki", repository)
- @tab("pages", repository)
-
- -
-
Pages
-
- -
-
- @if(hasWritePermission){
-
New Page
- }
-
-
-
-
- @pages.map { page =>
- - @page
- }
-
-
+ @html.menu("wiki", repository){
+
+ -
+
Pages
+
+ -
+
+ @if(hasWritePermission){
+
New Page
+ }
+
+
+
+
+ @pages.map { page =>
+ - @page
+ }
+
+ }
}
\ No newline at end of file
diff --git a/src/main/twirl/wiki/tab.scala.html b/src/main/twirl/wiki/tab.scala.html
deleted file mode 100644
index e68c885..0000000
--- a/src/main/twirl/wiki/tab.scala.html
+++ /dev/null
@@ -1,36 +0,0 @@
-@(active: String,
- repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
-@import context._
-@import service.WikiService._
-@import view.helpers._
-
-@if(settings.ssh && loginAccount.isDefined){
-
-}
diff --git a/src/main/webapp/assets/common/css/gitbucket.css b/src/main/webapp/assets/common/css/gitbucket.css
index aac4c84..164dab1 100644
--- a/src/main/webapp/assets/common/css/gitbucket.css
+++ b/src/main/webapp/assets/common/css/gitbucket.css
@@ -3,12 +3,44 @@
/****************************************************************************/
body {
color: #333;
+ line-height: 100%;
}
li p {
margin: 0px;
}
+h1 {
+ font-size: 30px;
+ line-height: 32px;
+}
+
+h2 {
+ font-size: 28px;
+ line-height: 30px;
+}
+
+h3 {
+ font-size: 26px;
+ line-height: 28px;
+}
+
+h4 {
+ font-size: 24px;
+}
+
+h5 {
+ font-size: 22px;
+}
+
+h6 {
+ font-size: 18px;
+}
+
+h7 {
+ font-size: 14px;
+}
+
/* ======================================================================== */
/* Global Header */
/* ======================================================================== */
@@ -55,55 +87,31 @@
font-size: small;
}
-/* ======================================================================== */
-/* Repository Header */
-/* ======================================================================== */
-table.global-nav {
- width: 920px;
- margin-bottom: 10px;
-}
-
-table.global-nav th {
- padding-top: 5px;
- padding-bottom: 8px;
- width: 16%;
- border-bottom: 2px solid silver;
- cursor: pointer;
-}
-
-table.global-nav th.active {
- border-bottom: 2px solid #D26911;
-}
-
-table.global-nav th a:link, table.global-nav th a:hover, table.global-nav th a:visited {
- color: #333;
- text-decoration: none;
-}
-
div.input-prepend span.count {
background-color: white;
-webkit-border-radius: 0 4px 4px 0;
-moz-border-radius: 0 4px 4px 0;
border-radius: 0 4px 4px 0;
+ height: 16px;
+ font-size: 12px;
+ padding-top: 2px;
+ padding-bottom: 6px;
}
/* ======================================================================== */
/* General Styles */
/* ======================================================================== */
div.head {
- font-size: large;
margin-bottom: 10px;
+ font-size: 18px;
}
div.head div.forked {
font-size: 60%;
+ margin-left: 36px;
color: #999999;
}
-div.head div.forked a {
- font-weight: normal;
-}
-
div.container {
width: 920px;
}
@@ -122,7 +130,7 @@
}
.small {
- font-size: 85%;
+ font-size: 80%;
}
.strong {
@@ -302,6 +310,63 @@
background-color: #ffff88;
}
+.fill-width {
+ width: 100%;
+}
+
+/****************************************************************************/
+/* Side Menu */
+/****************************************************************************/
+ul.sidemenu {
+ margin-left: 0px;
+}
+
+ul.sidemenu img {
+ width: 14px;
+ height: 14px;
+}
+
+
+ul.sidemenu a:hover{
+ text-decoration: none;
+}
+
+ul.sidemenu li.active {
+ border-top: 1px solid #eee;
+ border-bottom: 1px solid #eee;
+ border-right: 2px solid #bb4444;
+ border-left: 1px solid white;
+}
+
+ul.sidemenu div.gradient {
+ width: 5px;
+ height: 30px;
+ background: linear-gradient(to right, #eee, #fff);
+ margin-right: 4px;
+ border-left: 1px solid #eee;
+}
+
+ul.sidemenu div.margin {
+ width: 5px;
+ height: 30px;
+ margin-right: 4px;
+ border-left: 1px solid white;
+}
+
+ul.sidemenu li {
+ line-height: 30px;
+ height: 30px;
+ border-left: 1px solid #eee;
+ margin-left:0px;
+ border-right: 2px solid white;
+ list-style-type: none;
+ font-size: 90%;
+}
+
+ul.sidemenu span.badge {
+ padding-right: 4px;
+}
+
/****************************************************************************/
/* Create Repository */
/****************************************************************************/
@@ -413,8 +478,33 @@
/****************************************************************************/
/* Repository Viewer */
/****************************************************************************/
+p.description {
+ color: gray;
+}
+
+a.header-link {
+ color: #888;
+ font-size: 90%;
+}
+
+a.header-link img {
+ width: 14px;
+ height: 14px;
+}
+
+a.header-link strong {
+ color: black;
+ font-size: 90%;
+}
+
+a.header-link:hover {
+ color: #0088cc;
+ text-decoration: none;
+}
+
table.table-file-list {
margin-bottom: 0px;
+ border: 1px solid #ddd;
}
table.table-file-list th, table.table-file-list td {
@@ -436,6 +526,7 @@
th, td, .table th, .table td {
padding-top: 4px;
padding-bottom: 4px;
+ line-height: 100%;
}
div.commit-avatar-image {
@@ -458,7 +549,16 @@
#repository-url {
background-color: white;
cursor: default;
- width: 300px;
+ height: 16px;
+ width: 129px;
+ color: silver;
+ font-size: 9pt;
+ font-family: monospace;
+}
+
+#repository-url-copy {
+ height: 18px;
+ padding-top: 2px;
}
ul#commit-file-list {
@@ -487,7 +587,7 @@
}
#readme .box-content {
- padding: 30px;
+ padding: 20px;
}
li.highlight {
@@ -910,6 +1010,26 @@
display: none;
}
-h1 a.markdown-anchor-link, h2 a.markdown-anchor-link, h3 a.markdown-anchor-link {
- top: 10px;
+h1 a.markdown-anchor-link {
+ top: 8px;
+}
+
+h2 a.markdown-anchor-link {
+ top: 6px;
+}
+
+h3 a.markdown-anchor-link {
+ top: 6px;
+}
+
+h4 a.markdown-anchor-link {
+ top: 2px;
+}
+
+h5 a.markdown-anchor-link {
+ top: 2px;
+}
+
+h6 a.markdown-anchor-link {
+ top: 2px;
}
diff --git a/src/main/webapp/assets/common/images/header-branches-hover.png b/src/main/webapp/assets/common/images/header-branches-hover.png
new file mode 100644
index 0000000..7e2668a
--- /dev/null
+++ b/src/main/webapp/assets/common/images/header-branches-hover.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/header-branches.png b/src/main/webapp/assets/common/images/header-branches.png
new file mode 100644
index 0000000..c661dd2
--- /dev/null
+++ b/src/main/webapp/assets/common/images/header-branches.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/header-commits-hover.png b/src/main/webapp/assets/common/images/header-commits-hover.png
new file mode 100644
index 0000000..c2bc8db
--- /dev/null
+++ b/src/main/webapp/assets/common/images/header-commits-hover.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/header-commits.png b/src/main/webapp/assets/common/images/header-commits.png
new file mode 100644
index 0000000..d982329
--- /dev/null
+++ b/src/main/webapp/assets/common/images/header-commits.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/header-tags-hover.png b/src/main/webapp/assets/common/images/header-tags-hover.png
new file mode 100644
index 0000000..ae23c2b
--- /dev/null
+++ b/src/main/webapp/assets/common/images/header-tags-hover.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/header-tags.png b/src/main/webapp/assets/common/images/header-tags.png
new file mode 100644
index 0000000..bfdbc02
--- /dev/null
+++ b/src/main/webapp/assets/common/images/header-tags.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/menu-code-active.png b/src/main/webapp/assets/common/images/menu-code-active.png
new file mode 100644
index 0000000..371061c
--- /dev/null
+++ b/src/main/webapp/assets/common/images/menu-code-active.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/menu-code.png b/src/main/webapp/assets/common/images/menu-code.png
new file mode 100644
index 0000000..d47af04
--- /dev/null
+++ b/src/main/webapp/assets/common/images/menu-code.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/menu-issues-active.png b/src/main/webapp/assets/common/images/menu-issues-active.png
new file mode 100644
index 0000000..298781f
--- /dev/null
+++ b/src/main/webapp/assets/common/images/menu-issues-active.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/menu-issues.png b/src/main/webapp/assets/common/images/menu-issues.png
new file mode 100644
index 0000000..956af1a
--- /dev/null
+++ b/src/main/webapp/assets/common/images/menu-issues.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/menu-pulls-active.png b/src/main/webapp/assets/common/images/menu-pulls-active.png
new file mode 100644
index 0000000..734cb16
--- /dev/null
+++ b/src/main/webapp/assets/common/images/menu-pulls-active.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/menu-pulls.png b/src/main/webapp/assets/common/images/menu-pulls.png
new file mode 100644
index 0000000..c9243fd
--- /dev/null
+++ b/src/main/webapp/assets/common/images/menu-pulls.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/menu-settings-active.png b/src/main/webapp/assets/common/images/menu-settings-active.png
new file mode 100644
index 0000000..03b1c03
--- /dev/null
+++ b/src/main/webapp/assets/common/images/menu-settings-active.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/menu-settings.png b/src/main/webapp/assets/common/images/menu-settings.png
new file mode 100644
index 0000000..ab8f05c
--- /dev/null
+++ b/src/main/webapp/assets/common/images/menu-settings.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/menu-wiki-active.png b/src/main/webapp/assets/common/images/menu-wiki-active.png
new file mode 100644
index 0000000..ff193b7
--- /dev/null
+++ b/src/main/webapp/assets/common/images/menu-wiki-active.png
Binary files differ
diff --git a/src/main/webapp/assets/common/images/menu-wiki.png b/src/main/webapp/assets/common/images/menu-wiki.png
new file mode 100644
index 0000000..48ea495
--- /dev/null
+++ b/src/main/webapp/assets/common/images/menu-wiki.png
Binary files differ