From e93769cc81be7f34a940a0d57a066fd93af2c1b7 Mon Sep 17 00:00:00 2001 From: takezoe Date: Sat, 10 May 2014 22:51:14 +0900 Subject: [PATCH] Fix header and side-menu styles --- etc/icons.svg | 138 ++++++++++++++++-- src/main/twirl/menu.scala.html | 47 ++++-- .../webapp/assets/common/css/gitbucket.css | 28 +++- 3 files changed, 190 insertions(+), 23 deletions(-) diff --git a/etc/icons.svg b/etc/icons.svg index 522dfb750..a1849e3ea 100644 --- a/etc/icons.svg +++ b/etc/icons.svg @@ -34,9 +34,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="0.35" - inkscape:cx="1120.8978" - inkscape:cy="383.26354" + inkscape:zoom="0.7" + inkscape:cx="482.58197" + inkscape:cy="-83.92636" inkscape:document-units="px" inkscape:current-layer="layer1-9" showgrid="false" @@ -1326,7 +1326,7 @@ + + + + + + + + + + + + + + + diff --git a/src/main/twirl/menu.scala.html b/src/main/twirl/menu.scala.html index 2d54e0153..2db9d0fdd 100644 --- a/src/main/twirl/menu.scala.html +++ b/src/main/twirl/menu.scala.html @@ -5,7 +5,7 @@ @import context._ @import view.helpers._ -@sidemenu(path: String, name: String, label: String) = { +@sidemenu(path: String, name: String, label: String, count: Int = 0) = {
  • @@ -13,9 +13,12 @@ } else { - + } @if(expand){ @label} + @if(expand && count > 0){ +
    @count
    + }
  • } @@ -48,8 +51,8 @@
    • @sidemenu("" , "code" , "Code") - @sidemenu("/issues", "issues", "Issues") - @sidemenu("/pulls" , "pulls" , "Pull Requests") + @sidemenu("/issues", "issues", "Issues", repository.issueCount) + @sidemenu("/pulls" , "pulls" , "Pull Requests", repository.pullCount) @sidemenu("/wiki" , "wiki" , "Wiki") @if(loginAccount.isDefined && (loginAccount.get.isAdmin || repository.managers.contains(loginAccount.get.userName))){ @sidemenu("/settings", "settings", "Settings") @@ -78,24 +81,30 @@
      @if(expand){ @repository.repository.description.map { description => -

      @description

      +

      @description

      } -
      +
      @@ -107,6 +116,26 @@
      - @repository.commitCount commits + + + @repository.commitCount commits - @repository.branchList.length branches + + + @repository.branchList.length branches - @repository.tags.length releases + + + @repository.tags.length releases