Unknwon 9 years ago
parent
commit
52c8f69163
84 changed files with 738 additions and 12184 deletions
  1. 1 1
      README.md
  2. 2 2
      cmd/web.go
  3. 4 2
      conf/locale/locale_en-US.ini
  4. 1 1
      gogs.go
  5. 0 0
      modules/bindata/bindata.go
  6. 0 633
      public/config.codekit
  7. 89 0
      public/css/gogs.css
  8. 56 4
      public/js/gogs.js
  9. 129 0
      public/less/_organization.less
  10. 1 0
      public/less/_repository.less
  11. 0 3
      public/ng/css/font-awesome.min.css
  12. 0 3015
      public/ng/css/gogs.css
  13. 0 368
      public/ng/css/magnific-popup.css
  14. 0 25
      public/ng/css/tipsy.css
  15. 0 945
      public/ng/css/ui.css
  16. BIN
      public/ng/fonts/FontAwesome.otf
  17. BIN
      public/ng/fonts/fontawesome-webfont.eot
  18. 0 196
      public/ng/fonts/fontawesome-webfont.svg
  19. BIN
      public/ng/fonts/fontawesome-webfont.ttf
  20. BIN
      public/ng/fonts/fontawesome-webfont.woff
  21. BIN
      public/ng/fonts/fontawesome-webfont.woff2
  22. 0 235
      public/ng/fonts/octicons.css
  23. BIN
      public/ng/fonts/octicons.eot
  24. 0 91
      public/ng/fonts/octicons.svg
  25. BIN
      public/ng/fonts/octicons.ttf
  26. BIN
      public/ng/fonts/octicons.woff
  27. 0 970
      public/ng/js/gogs.js
  28. 0 97
      public/ng/js/gogs/issue_label.js
  29. 0 1
      public/ng/js/lib/jquery-1.11.1.min.js
  30. 0 3
      public/ng/js/lib/jquery.magnific-popup.min.js
  31. 0 258
      public/ng/js/lib/jquery.tipsy.js
  32. 0 167
      public/ng/js/lib/lib.js
  33. 0 0
      public/ng/js/min/gogs-min.js
  34. 0 53
      public/ng/js/utils/preview.js
  35. 0 45
      public/ng/js/utils/tabs.js
  36. 0 11
      public/ng/less/gogs.less
  37. 0 26
      public/ng/less/gogs/admin.less
  38. 0 306
      public/ng/less/gogs/base.less
  39. 0 260
      public/ng/less/gogs/dashboard.less
  40. 0 105
      public/ng/less/gogs/external.less
  41. 0 540
      public/ng/less/gogs/issue.less
  42. 0 595
      public/ng/less/gogs/markdown.less
  43. 0 232
      public/ng/less/gogs/organization.less
  44. 0 59
      public/ng/less/gogs/profile.less
  45. 0 878
      public/ng/less/gogs/repository.less
  46. 0 131
      public/ng/less/gogs/settings.less
  47. 0 68
      public/ng/less/gogs/sign.less
  48. 0 11
      public/ng/less/ui.less
  49. 0 55
      public/ng/less/ui/alert.less
  50. 0 18
      public/ng/less/ui/bread.less
  51. 0 230
      public/ng/less/ui/form.less
  52. 0 99
      public/ng/less/ui/grid.less
  53. 0 43
      public/ng/less/ui/label.less
  54. 0 170
      public/ng/less/ui/menu.less
  55. 0 28
      public/ng/less/ui/pager.less
  56. 0 54
      public/ng/less/ui/panel.less
  57. 0 368
      public/ng/less/ui/reset.less
  58. 0 63
      public/ng/less/ui/table.less
  59. 0 96
      public/ng/less/ui/var.less
  60. 1 1
      routers/org/members.go
  61. 8 5
      routers/org/teams.go
  62. 35 69
      routers/user/home.go
  63. 1 1
      templates/.VERSION
  64. 23 0
      templates/explore/repo_list.tmpl
  65. 1 16
      templates/explore/repos.tmpl
  66. 0 3
      templates/ng/base/alert.tmpl
  67. 0 29
      templates/ng/base/footer.tmpl
  68. 0 45
      templates/ng/base/head.tmpl
  69. 0 60
      templates/ng/base/header.tmpl
  70. 0 16
      templates/org/base/header.tmpl
  71. 81 89
      templates/org/home.tmpl
  72. 21 16
      templates/org/member/invite.tmpl
  73. 54 43
      templates/org/member/members.tmpl
  74. 41 40
      templates/org/team/members.tmpl
  75. 72 60
      templates/org/team/new.tmpl
  76. 40 39
      templates/org/team/repositories.tmpl
  77. 37 30
      templates/org/team/sidebar.tmpl
  78. 29 30
      templates/org/team/teams.tmpl
  79. 1 1
      templates/repo/create.tmpl
  80. 4 4
      templates/repo/migrate.tmpl
  81. 1 1
      templates/repo/settings/collaboration.tmpl
  82. 1 1
      templates/user/dashboard/dashboard.tmpl
  83. 3 3
      templates/user/dashboard/navbar.tmpl
  84. 1 21
      templates/user/profile.tmpl

+ 1 - 1
README.md

@@ -5,7 +5,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
 
 ![](public/img/gogs-large-resize.png)
 
-##### Current version: 0.7.19 Beta
+##### Current version: 0.7.20 Beta
 
 <table>
     <tr>

+ 2 - 2
cmd/web.go

@@ -393,8 +393,8 @@ func runWeb(ctx *cli.Context) {
 			m.Get("/teams", org.Teams)
 			m.Get("/teams/:team", org.TeamMembers)
 			m.Get("/teams/:team/repositories", org.TeamRepositories)
-			m.Get("/teams/:team/action/:action", org.TeamsAction)
-			m.Get("/teams/:team/action/repo/:action", org.TeamsRepoAction)
+			m.Route("/teams/:team/action/:action", "GET,POST", org.TeamsAction)
+			m.Route("/teams/:team/action/repo/:action", "GET,POST", org.TeamsRepoAction)
 		}, middleware.OrgAssignment(true, true))
 
 		m.Group("/:org", func() {

+ 4 - 2
conf/locale/locale_en-US.ini

@@ -701,16 +701,17 @@ settings.delete_org_title = Organization Deletion
 settings.delete_org_desc = This organization is going to be deleted permanently, do you want to continue?
 settings.hooks_desc = Add webhooks that will be triggered for <strong>all repositories</strong> under this organization.
 
+members.membership_visibility = Membership Visibility:
 members.public = Public
 members.public_helper = make private
 members.private = Private
 members.private_helper = make public
+members.member_role = Member Role:
 members.owner = Owner
 members.member = Member
-members.conceal = Conceal
 members.remove = Remove
 members.leave = Leave
-members.invite_desc = Start typing a username to invite a new member to %s:
+members.invite_desc = Add a new member to %s:
 members.invite_now = Invite Now
 
 teams.join = Join
@@ -735,6 +736,7 @@ teams.read_permission_desc = This team grants <strong>Read</strong> access: memb
 teams.write_permission_desc = This team grants <strong>Write</strong> access: members can read from and push to the team's repositories.
 teams.admin_permission_desc = This team grants <strong>Admin</strong> access: members can read from, push to, and add collaborators to the team's repositories.
 teams.repositories = Team Repositories
+teams.search_repo_placeholder = Search repository...
 teams.add_team_repository = Add Team Repository
 teams.remove_repo = Remove
 teams.add_nonexistent_repo = The repository you're trying to add does not exist, please create it first.

+ 1 - 1
gogs.go

@@ -17,7 +17,7 @@ import (
 	"github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.7.19.1121 Beta"
+const APP_VER = "0.7.20.1121 Beta"
 
 func init() {
 	runtime.GOMAXPROCS(runtime.NumCPU())

File diff suppressed because it is too large
+ 0 - 0
modules/bindata/bindata.go


+ 0 - 633
public/config.codekit

@@ -503,639 +503,6 @@
 		"strictImports": 0,
 		"strictMath": 0,
 		"strictUnits": 0
-		},
-	"\/ng\/css\/font-awesome.min.css": {
-		"fileType": 16,
-		"ignore": 0,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/css\/font-awesome.min.css",
-		"outputAbbreviatedPath": "No Output Path",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0
-		},
-	"\/ng\/css\/gogs.css": {
-		"fileType": 16,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/css\/gogs.css",
-		"outputAbbreviatedPath": "No Output Path",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0
-		},
-	"\/ng\/css\/magnific-popup.css": {
-		"fileType": 16,
-		"ignore": 0,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/css\/magnific-popup.css",
-		"outputAbbreviatedPath": "No Output Path",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0
-		},
-	"\/ng\/css\/tipsy.css": {
-		"fileType": 16,
-		"ignore": 0,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/css\/tipsy.css",
-		"outputAbbreviatedPath": "No Output Path",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0
-		},
-	"\/ng\/css\/ui.css": {
-		"fileType": 16,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/css\/ui.css",
-		"outputAbbreviatedPath": "No Output Path",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0
-		},
-	"\/ng\/fonts\/octicons.css": {
-		"fileType": 16,
-		"ignore": 0,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/fonts\/octicons.css",
-		"outputAbbreviatedPath": "No Output Path",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0
-		},
-	"\/ng\/js\/gogs.js": {
-		"fileType": 64,
-		"ignore": 1,
-		"ignoreWasSetByUser": 1,
-		"inputAbbreviatedPath": "\/ng\/js\/gogs.js",
-		"outputAbbreviatedPath": "\/ng\/js\/min\/gogs-min.js",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 1,
-		"syntaxCheckerStyle": 1
-		},
-	"\/ng\/js\/gogs\/issue_label.js": {
-		"fileType": 64,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/js\/gogs\/issue_label.js",
-		"outputAbbreviatedPath": "\/ng\/js\/gogs\/min\/issue_label-min.js",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 1,
-		"syntaxCheckerStyle": 1
-		},
-	"\/ng\/js\/lib\/jquery-1.11.1.min.js": {
-		"fileType": 64,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/js\/lib\/jquery-1.11.1.min.js",
-		"outputAbbreviatedPath": "\/ng\/js\/lib\/min\/jquery-1.11.1.min-min.js",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 1,
-		"syntaxCheckerStyle": 1
-		},
-	"\/ng\/js\/lib\/jquery.magnific-popup.min.js": {
-		"fileType": 64,
-		"ignore": 0,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/js\/lib\/jquery.magnific-popup.min.js",
-		"outputAbbreviatedPath": "\/ng\/js\/lib\/min\/jquery.magnific-popup.min-min.js",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 1,
-		"syntaxCheckerStyle": 1
-		},
-	"\/ng\/js\/lib\/jquery.tipsy.js": {
-		"fileType": 64,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/js\/lib\/jquery.tipsy.js",
-		"outputAbbreviatedPath": "\/ng\/js\/lib\/min\/jquery.tipsy-min.js",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 1,
-		"syntaxCheckerStyle": 1
-		},
-	"\/ng\/js\/lib\/lib.js": {
-		"fileType": 64,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/js\/lib\/lib.js",
-		"outputAbbreviatedPath": "\/ng\/js\/lib\/min\/lib-min.js",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 1,
-		"syntaxCheckerStyle": 1
-		},
-	"\/ng\/js\/min\/gogs-min.js": {
-		"fileType": 64,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/js\/min\/gogs-min.js",
-		"outputAbbreviatedPath": "\/ng\/js\/min\/min\/gogs-min-min.js",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 1,
-		"syntaxCheckerStyle": 1
-		},
-	"\/ng\/js\/utils\/preview.js": {
-		"fileType": 64,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/js\/utils\/preview.js",
-		"outputAbbreviatedPath": "\/ng\/js\/utils\/min\/preview-min.js",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 1,
-		"syntaxCheckerStyle": 1
-		},
-	"\/ng\/js\/utils\/tabs.js": {
-		"fileType": 64,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/js\/utils\/tabs.js",
-		"outputAbbreviatedPath": "\/ng\/js\/utils\/min\/tabs-min.js",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 1,
-		"syntaxCheckerStyle": 1
-		},
-	"\/ng\/less\/gogs.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 0,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs.less",
-		"outputAbbreviatedPath": "\/ng\/css\/gogs.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/admin.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/admin.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/admin.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/base.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/base.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/base.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/dashboard.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/dashboard.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/dashboard.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/external.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/external.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/external.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/issue.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/issue.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/issue.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/markdown.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/markdown.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/markdown.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/organization.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/organization.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/organization.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/profile.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/profile.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/profile.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/repository.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/repository.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/repository.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/settings.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/settings.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/settings.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/gogs\/sign.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/gogs\/sign.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/sign.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 0,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui.less",
-		"outputAbbreviatedPath": "\/ng\/css\/ui.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/alert.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/alert.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/alert.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/bread.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/bread.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/bread.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/form.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/form.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/form.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/grid.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/grid.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/grid.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/label.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/label.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/label.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/menu.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/menu.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/menu.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/pager.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/pager.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/pager.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/panel.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/panel.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/panel.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/reset.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/reset.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/reset.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/table.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/table.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/table.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
-		},
-	"\/ng\/less\/ui\/var.less": {
-		"allowInsecureImports": 0,
-		"createSourceMap": 0,
-		"disableJavascript": 0,
-		"fileType": 1,
-		"ieCompatibility": 1,
-		"ignore": 1,
-		"ignoreWasSetByUser": 0,
-		"inputAbbreviatedPath": "\/ng\/less\/ui\/var.less",
-		"outputAbbreviatedPath": "\/ng\/less\/css\/var.css",
-		"outputPathIsOutsideProject": 0,
-		"outputPathIsSetByUser": 0,
-		"outputStyle": 0,
-		"relativeURLS": 0,
-		"shouldRunAutoprefixer": 0,
-		"shouldRunBless": 0,
-		"strictImports": 0,
-		"strictMath": 0,
-		"strictUnits": 0
 		}
 	},
 "hooks": [

+ 89 - 0
public/css/gogs.css

@@ -2529,19 +2529,23 @@ footer .container .links > *:first-child {
   margin-left: 5px;
   margin-top: -3px;
 }
+#search-repo-box .results,
 #search-user-box .results {
   padding: 0;
   position: absolute;
 }
+#search-repo-box .results .item,
 #search-user-box .results .item {
   padding: 10px 15px;
   border-bottom: 1px solid #DDD;
   cursor: pointer;
 }
+#search-repo-box .results .item:hover,
 #search-user-box .results .item:hover {
   background: rgba(0, 0, 0, 0.05) !important;
   color: rgba(0, 0, 0, 0.95) !important;
 }
+#search-repo-box .results .item img,
 #search-user-box .results .item img {
   margin-right: 8px;
 }
@@ -2752,6 +2756,91 @@ footer .container .links > *:first-child {
   width: 50%!important;
   min-width: 300px;
 }
+.organization.profile #org-avatar {
+  width: 100px;
+  height: 100px;
+  margin-right: 15px;
+}
+.organization.profile #org-info .ui.header {
+  font-size: 36px;
+  margin-bottom: 0;
+}
+.organization.profile #org-info .desc {
+  font-size: 16px;
+  margin-bottom: 10px;
+}
+.organization.profile #org-info .meta .item {
+  display: inline-block;
+  margin-right: 10px;
+}
+.organization.profile #org-info .meta .item .icon {
+  margin-right: 5px;
+}
+.organization.profile .ui.top.header .ui.right {
+  margin-top: 0;
+}
+.organization.profile .teams .item {
+  padding: 10px 15px;
+}
+.organization.teams .members .ui.avatar,
+.organization.profile .members .ui.avatar {
+  width: 48px;
+  height: 48px;
+  margin-right: 5px;
+}
+.organization.invite #invite-box {
+  margin: auto;
+  margin-top: 50px;
+  width: 500px !important;
+}
+.organization.invite #invite-box #search-user-box input {
+  margin-left: 0;
+  width: 300px;
+}
+.organization.invite #invite-box .ui.button {
+  margin-left: 5px;
+  margin-top: -3px;
+}
+.organization.members .list .item {
+  margin-left: 0;
+  margin-right: 0;
+  border-bottom: 1px solid #eee;
+}
+.organization.members .list .item .ui.avatar {
+  width: 48px;
+  height: 48px;
+}
+.organization.members .list .item .meta {
+  line-height: 24px;
+}
+.organization.teams .detail .item {
+  padding: 10px 15px;
+}
+.organization.teams .detail .item:not(:last-child) {
+  border-bottom: 1px solid #eee;
+}
+.organization.teams .repositories .item,
+.organization.teams .members .item {
+  padding: 10px 20px;
+  line-height: 32px;
+}
+.organization.teams .repositories .item:not(:last-child),
+.organization.teams .members .item:not(:last-child) {
+  border-bottom: 1px solid #DDD;
+}
+.organization.teams .repositories .item .button,
+.organization.teams .members .item .button {
+  padding: 9px 10px;
+}
+.organization.teams #add-repo-form input,
+.organization.teams #add-member-form input {
+  margin-left: 0;
+}
+.organization.teams #add-repo-form .ui.button,
+.organization.teams #add-member-form .ui.button {
+  margin-left: 5px;
+  margin-top: -3px;
+}
 .user {
   padding-top: 15px;
   padding-bottom: 80px;

+ 56 - 4
public/js/gogs.js

@@ -564,6 +564,16 @@ function buttonsClickOnEnter() {
     });
 }
 
+function hideWhenLostFocus(body, parent) {
+    $(document).click(function (e) {
+        var target = e.target;
+
+        if (!$(target).is(body) && !$(target).parents().is(parent)) {
+            $(body).hide();
+        }
+    });
+}
+
 function searchUsers() {
     if (!$('#search-user-box .results').length) {
         return;
@@ -613,12 +623,53 @@ function searchUsers() {
     $search_user_box.find('input').focus(function () {
         $search_user_box.keyup();
     });
-    $(document).click(function (e) {
-        var target = e.target;
+    hideWhenLostFocus('#search-user-box .results', '#search-user-box');
+}
+
+function searchRepositories() {
+    if (!$('#search-repo-box .results').length) {
+        return;
+    }
 
-        if (!$(target).is('#search-user-box .results') && !$(target).parents().is('#search-user-box')) {
-            $('#search-user-box .results').hide();
+    var $search_repo_box = $('#search-repo-box');
+    var $result_list = $search_repo_box.find('.results');
+    $search_repo_box.keyup(function () {
+        var $this = $(this);
+        var keyword = $this.find('input').val();
+        if (keyword.length < 2) {
+            $result_list.hide();
+            return;
         }
+
+        $.ajax({
+            url: suburl + '/api/v1/repos/search?q=' + keyword + "&uid=" + $search_repo_box.data('uid'),
+            dataType: "json",
+            success: function (response) {
+                var notEmpty = function (str) {
+                    return str && str.length > 0;
+                };
+
+                $result_list.html('');
+
+                if (response.ok && response.data.length) {
+                    var html = '';
+                    $.each(response.data, function (i, item) {
+                        html += '<div class="item"><i class="icon octicon octicon-repo"></i> <span class="fullname">' + item.full_name + '</span></div>';
+                    });
+                    $result_list.html(html);
+                    $this.find('.results .item').click(function () {
+                        $this.find('input').val($(this).find('.fullname').text().split("/")[1]);
+                        $result_list.hide();
+                    });
+                    $result_list.show();
+                } else {
+                    $result_list.hide();
+                }
+            }
+        });
+    });
+    $search_repo_box.find('input').focus(function () {
+        $search_repo_box.keyup();
     });
 }
 
@@ -776,6 +827,7 @@ $(document).ready(function () {
 
     buttonsClickOnEnter();
     searchUsers();
+    searchRepositories();
 
 
     initCommentForm();

+ 129 - 0
public/less/_organization.less

@@ -25,4 +25,133 @@
 			min-width: 300px;
 		}
 	}
+
+	&.profile {
+		#org-avatar {
+			width: 100px;
+			height: 100px;
+			margin-right: 15px;
+		}
+
+		#org-info {
+			.ui.header {
+				font-size: 36px;
+				margin-bottom: 0;
+			}
+			.desc {
+				font-size: 16px;
+				margin-bottom: 10px;
+			}
+			.meta {
+				.item {
+					display: inline-block;
+					margin-right: 10px;
+
+					.icon {
+						margin-right: 5px;
+					}
+				}
+			}
+		}
+
+		.ui.top.header {
+			.ui.right {
+				margin-top: 0;
+			}
+		}
+
+		.teams {
+			.item {
+				padding: 10px 15px;
+			}
+		}
+	}
+
+	&.teams,
+	&.profile {
+		.members {
+			.ui.avatar {
+				width: 48px;
+				height: 48px;
+				margin-right: 5px;
+			}
+		}
+	}
+
+	&.invite {
+		#invite-box {
+			margin: auto;
+			margin-top: 50px;
+			width: 500px !important;
+
+			#search-user-box {
+				input {
+					margin-left: 0;
+					width: 300px;
+				}
+			}
+			.ui.button {
+				margin-left: 5px;
+		    margin-top: -3px;
+			}
+		}
+	}
+
+	&.members {
+		.list {
+			.item {
+				margin-left: 0;
+				margin-right: 0;
+				border-bottom: 1px solid #eee;
+
+				.ui.avatar {
+					width: 48px;
+					height: 48px;
+				}
+				.meta {
+					line-height: 24px;
+				}
+			}
+		}
+	}
+
+	&.teams {
+		.detail {
+			.item {
+				padding: 10px 15px;
+
+				&:not(:last-child) {
+					border-bottom: 1px solid #eee;
+				}
+			}
+		}
+
+		.repositories,
+		.members {
+			.item {
+				padding: 10px 20px;
+				line-height: 32px;
+
+				&:not(:last-child) {
+					border-bottom: 1px solid #DDD;
+				}
+
+				.button {
+					padding: 9px 10px;
+				}
+			}
+		}
+
+		#add-repo-form,
+		#add-member-form {
+			input {
+				margin-left: 0;
+			}
+
+			.ui.button {
+				margin-left: 5px;
+				margin-top: -3px;
+			}
+		}
+	}
 }

+ 1 - 0
public/less/_repository.less

@@ -969,6 +969,7 @@
 }
 // End of .repository
 
+#search-repo-box,
 #search-user-box {
 	.results {
 		padding: 0;

File diff suppressed because it is too large
+ 0 - 3
public/ng/css/font-awesome.min.css


+ 0 - 3015
public/ng/css/gogs.css

@@ -1,3015 +0,0 @@
-html,
-body {
-  height: 100%;
-}
-.octicon,
-.fa {
-  width: 16px;
-  text-align: center;
-}
-.container {
-  max-width: 1170px;
-  padding: 0 1.5em;
-  margin: auto;
-}
-img.avatar-16 {
-  width: 16px;
-  height: 16px;
-  vertical-align: middle;
-}
-img.avatar-20 {
-  width: 20px;
-  height: 20px;
-  vertical-align: middle;
-}
-img.avatar-24 {
-  width: 24px;
-  height: 24px;
-  vertical-align: middle;
-}
-img.avatar-30 {
-  width: 30px;
-  height: 30px;
-  vertical-align: middle;
-}
-img.avatar-40 {
-  width: 40px;
-  height: 40px;
-  vertical-align: middle;
-}
-img.avatar-48 {
-  width: 48px;
-  height: 48px;
-  vertical-align: middle;
-}
-img.avatar-100 {
-  width: 100px;
-  height: 100px;
-  vertical-align: middle;
-}
-.drop-down .panel-header {
-  font-size: 14px;
-}
-#wrapper {
-  padding: 0;
-  margin: 0 0 -55px 0;
-  min-height: 100%;
-}
-#footer {
-  background-color: white;
-  border-top: 1px solid #d6d6d6;
-  clear: both;
-  width: 100%;
-  color: #888888;
-}
-#footer .container {
-  padding: 15px;
-}
-#footer .official,
-#footer .version {
-  color: #888888;
-}
-#footer-links > * {
-  border-left: 1px solid #d6d6d6;
-  padding-left: 8px;
-  margin-left: 5px;
-}
-#footer-links > *:first-child {
-  border-left: none;
-}
-#footer-lang {
-  position: relative;
-}
-#footer-lang .drop-down {
-  top: -64px;
-  left: -2px;
-  position: absolute;
-  height: 59px;
-  z-index: 100;
-  font-size: 12px;
-  width: 170%;
-  min-width: 140px;
-}
-#footer-lang .drop-down li > a {
-  padding: 3px 9px;
-}
-#header {
-  background-color: #428bca;
-  height: 45px;
-}
-#header > .menu-line > li > a {
-  display: inline-block;
-  color: #ffffff;
-}
-#header > .menu-line > li > a:hover {
-  background-color: transparent;
-  color: #fff65f;
-}
-#header > .menu-line > li.head {
-  color: #ffffff;
-}
-#header > .menu-line > li.hover a:after {
-  bottom: -9px;
-  color: #ffffff;
-}
-#header > .menu-line > li.current > a {
-  color: #fff65f;
-  font-weight: bold;
-}
-#header-nav-user {
-  height: 44px;
-}
-#header-nav-user img {
-  margin: -2px 10px 0 0;
-  border-radius: 3px;
-}
-#header-nav-sign-out > a:hover {
-  color: #ff908b !important;
-}
-#header-nav-logo {
-  padding: 6px 1.2em 6px 0;
-}
-#header-nav-explore,
-#header-nav-help {
-  font-size: 14px;
-}
-#header-new-repo-menu {
-  width: 180px;
-  background-color: #FFF;
-  top: 44px;
-  border-top: none;
-  left: -66px;
-}
-#header-new-repo-menu .octicon {
-  margin-right: 6px;
-  font-size: 1.1em;
-}
-.switching-list {
-  width: 100%;
-  list-style: none;
-}
-.switching-list > li {
-  border-bottom: 1px solid #eaeaea;
-}
-.switching-list > li:last-child {
-  border-bottom: none;
-}
-.switching-list > li > a {
-  padding: .4em 1.2em;
-  display: block;
-  color: #444;
-}
-.switching-list > li > a:hover {
-  background-color: #428bca !important;
-  color: #fff !important;
-}
-.social-buttons .btn {
-  border: none;
-  font-size: 16px;
-  border-radius: 4px;
-  margin-right: 12px;
-  font-family: 'PT Sans Narrow', sans-serif;
-  padding: 5px 12px;
-  color: #FFF;
-}
-.social-buttons .btn .fa {
-  margin-right: 6px;
-  font-size: 16px;
-}
-.social-buttons .twitter {
-  background-color: #1c6399;
-}
-.social-buttons .twitter:hover {
-  background-color: #1c5487;
-}
-.social-buttons .github {
-  background-color: #444;
-}
-.social-buttons .github:hover {
-  background-color: #333;
-}
-.social-buttons .google {
-  background-color: #C03D20;
-}
-.social-buttons .google:hover {
-  background-color: #D56060;
-}
-.social-buttons .weibo {
-  background-color: #bf1324;
-}
-.social-buttons .weibo:hover {
-  background-color: #b94c4a;
-}
-.social-buttons .qq {
-  background-color: #03a2ef;
-}
-.social-buttons .qq:hover {
-  background-color: #3cb3ff;
-}
-.main-wrapper {
-  padding: 20px 0 40px;
-}
-.user-list {
-  width: auto;
-  min-width: 180px;
-  max-width: 300px;
-}
-.user-list img {
-  width: 28px;
-  height: 28px;
-  margin-right: 1em;
-  margin-top: 1px;
-  vertical-align: middle;
-}
-.user-list li {
-  cursor: pointer;
-  font-weight: bold;
-}
-.text-success {
-  color: #3c763d;
-}
-.text-blue {
-  color: #15c;
-}
-.text-red {
-  color: #DD4B39;
-}
-.text-grey {
-  color: #999999;
-}
-.text-black {
-  color: #444444;
-}
-.text-gold {
-  color: #a1882b;
-}
-.table {
-  width: 100%;
-  max-width: 100%;
-}
-.table > thead > tr > th,
-.table > tbody > tr > th,
-.table > tfoot > tr > th,
-.table > thead > tr > td,
-.table > tbody > tr > td,
-.table > tfoot > tr > td {
-  border-top: 1px solid #e7eaec;
-  line-height: 1.42857;
-  padding: 8px;
-  vertical-align: top;
-}
-.table th {
-  text-align: left;
-}
-.table-striped > tbody > tr:nth-child(odd) > td,
-.table-striped > tbody > tr:nth-child(odd) > th {
-  background-color: #f9f9f9;
-}
-.pagination {
-  display: inline-block;
-  padding-left: 0;
-  margin: 20px 0;
-  border-radius: 4px;
-}
-.pagination li {
-  display: inline;
-}
-.list-unstyled {
-  padding-left: 0;
-  list-style: none;
-}
-.emoji {
-  width: 1.5em;
-  height: 1.5em;
-  display: inline-block;
-}
-.markdown {
-  overflow: hidden;
-  font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
-  font-size: 16px;
-  line-height: 1.6;
-  word-wrap: break-word;
-  padding: 5px 2em 2em !important;
-}
-.markdown > *:first-child {
-  margin-top: 0 !important;
-}
-.markdown > *:last-child {
-  margin-bottom: 0 !important;
-}
-.markdown a:not([href]) {
-  color: inherit;
-  text-decoration: none;
-}
-.markdown .absent {
-  color: #c00;
-}
-.markdown .anchor {
-  position: absolute;
-  top: 0;
-  left: 0;
-  display: block;
-  padding-right: 6px;
-  padding-left: 30px;
-  margin-left: -30px;
-}
-.markdown .anchor:focus {
-  outline: none;
-}
-.markdown h1,
-.markdown h2,
-.markdown h3,
-.markdown h4,
-.markdown h5,
-.markdown h6 {
-  position: relative;
-  margin-top: 1em;
-  margin-bottom: 16px;
-  font-weight: bold;
-  line-height: 1.4;
-}
-.markdown h1 .octicon-link,
-.markdown h2 .octicon-link,
-.markdown h3 .octicon-link,
-.markdown h4 .octicon-link,
-.markdown h5 .octicon-link,
-.markdown h6 .octicon-link {
-  display: none;
-  color: #000;
-  vertical-align: middle;
-}
-.markdown h1:hover .anchor,
-.markdown h2:hover .anchor,
-.markdown h3:hover .anchor,
-.markdown h4:hover .anchor,
-.markdown h5:hover .anchor,
-.markdown h6:hover .anchor {
-  padding-left: 8px;
-  margin-left: -30px;
-  text-decoration: none;
-}
-.markdown h1:hover .anchor .octicon-link,
-.markdown h2:hover .anchor .octicon-link,
-.markdown h3:hover .anchor .octicon-link,
-.markdown h4:hover .anchor .octicon-link,
-.markdown h5:hover .anchor .octicon-link,
-.markdown h6:hover .anchor .octicon-link {
-  display: inline-block;
-}
-.markdown h1 tt,
-.markdown h1 code,
-.markdown h2 tt,
-.markdown h2 code,
-.markdown h3 tt,
-.markdown h3 code,
-.markdown h4 tt,
-.markdown h4 code,
-.markdown h5 tt,
-.markdown h5 code,
-.markdown h6 tt,
-.markdown h6 code {
-  font-size: inherit;
-}
-.markdown h1 {
-  padding-bottom: 0.3em;
-  font-size: 2.25em;
-  line-height: 1.2;
-  border-bottom: 1px solid #eee;
-}
-.markdown h1 .anchor {
-  line-height: 1;
-}
-.markdown h2 {
-  padding-bottom: 0.3em;
-  font-size: 1.75em;
-  line-height: 1.225;
-  border-bottom: 1px solid #eee;
-}
-.markdown h2 .anchor {
-  line-height: 1;
-}
-.markdown h3 {
-  font-size: 1.5em;
-  line-height: 1.43;
-}
-.markdown h3 .anchor {
-  line-height: 1.2;
-}
-.markdown h4 {
-  font-size: 1.25em;
-}
-.markdown h4 .anchor {
-  line-height: 1.2;
-}
-.markdown h5 {
-  font-size: 1em;
-}
-.markdown h5 .anchor {
-  line-height: 1.1;
-}
-.markdown h6 {
-  font-size: 1em;
-  color: #777;
-}
-.markdown h6 .anchor {
-  line-height: 1.1;
-}
-.markdown p,
-.markdown blockquote,
-.markdown ul,
-.markdown ol,
-.markdown dl,
-.markdown table,
-.markdown pre {
-  margin-top: 0;
-  margin-bottom: 16px;
-}
-.markdown hr {
-  height: 4px;
-  padding: 0;
-  margin: 16px 0;
-  background-color: #e7e7e7;
-  border: 0 none;
-}
-.markdown ul,
-.markdown ol {
-  padding-left: 2em;
-}
-.markdown ul.no-list,
-.markdown ol.no-list {
-  padding: 0;
-  list-style-type: none;
-}
-.markdown ul ul,
-.markdown ul ol,
-.markdown ol ol,
-.markdown ol ul {
-  margin-top: 0;
-  margin-bottom: 0;
-}
-.markdown ol ol,
-.markdown ul ol {
-  list-style-type: lower-roman;
-}
-.markdown li > p {
-  margin-top: 16px;
-}
-.markdown dl {
-  padding: 0;
-}
-.markdown dl dt {
-  padding: 0;
-  margin-top: 16px;
-  font-size: 1em;
-  font-style: italic;
-  font-weight: bold;
-}
-.markdown dl dd {
-  padding: 0 16px;
-  margin-bottom: 16px;
-}
-.markdown blockquote {
-  padding: 0 15px;
-  color: #777;
-  border-left: 4px solid #ddd;
-}
-.markdown blockquote > :first-child {
-  margin-top: 0;
-}
-.markdown blockquote > :last-child {
-  margin-bottom: 0;
-}
-.markdown table {
-  display: block;
-  width: 100%;
-  overflow: auto;
-  word-break: normal;
-  word-break: keep-all;
-}
-.markdown table th {
-  font-weight: bold;
-}
-.markdown table th,
-.markdown table td {
-  padding: 6px 13px !important;
-  border: 1px solid #ddd;
-}
-.markdown table tr {
-  background-color: #fff;
-  border-top: 1px solid #ccc;
-}
-.markdown table tr:nth-child(2n) {
-  background-color: #f8f8f8;
-}
-.markdown img {
-  max-width: 100%;
-  box-sizing: border-box;
-}
-.markdown .emoji {
-  max-width: none;
-}
-.markdown span.frame {
-  display: block;
-  overflow: hidden;
-}
-.markdown span.frame > span {
-  display: block;
-  float: left;
-  width: auto;
-  padding: 7px;
-  margin: 13px 0 0;
-  overflow: hidden;
-  border: 1px solid #ddd;
-}
-.markdown span.frame span img {
-  display: block;
-  float: left;
-}
-.markdown span.frame span span {
-  display: block;
-  padding: 5px 0 0;
-  clear: both;
-  color: #333;
-}
-.markdown span.align-center {
-  display: block;
-  overflow: hidden;
-  clear: both;
-}
-.markdown span.align-center > span {
-  display: block;
-  margin: 13px auto 0;
-  overflow: hidden;
-  text-align: center;
-}
-.markdown span.align-center span img {
-  margin: 0 auto;
-  text-align: center;
-}
-.markdown span.align-right {
-  display: block;
-  overflow: hidden;
-  clear: both;
-}
-.markdown span.align-right > span {
-  display: block;
-  margin: 13px 0 0;
-  overflow: hidden;
-  text-align: right;
-}
-.markdown span.align-right span img {
-  margin: 0;
-  text-align: right;
-}
-.markdown span.float-left {
-  display: block;
-  float: left;
-  margin-right: 13px;
-  overflow: hidden;
-}
-.markdown span.float-left span {
-  margin: 13px 0 0;
-}
-.markdown span.float-right {
-  display: block;
-  float: right;
-  margin-left: 13px;
-  overflow: hidden;
-}
-.markdown span.float-right > span {
-  display: block;
-  margin: 13px auto 0;
-  overflow: hidden;
-  text-align: right;
-}
-.markdown code,
-.markdown tt {
-  padding: 0;
-  padding-top: 0.2em;
-  padding-bottom: 0.2em;
-  margin: 0;
-  font-size: 85%;
-  background-color: rgba(0, 0, 0, 0.04);
-  border-radius: 3px;
-}
-.markdown code:before,
-.markdown code:after,
-.markdown tt:before,
-.markdown tt:after {
-  letter-spacing: -0.2em;
-  content: "\00a0";
-}
-.markdown code br,
-.markdown tt br {
-  display: none;
-}
-.markdown del code {
-  text-decoration: inherit;
-}
-.markdown pre > code {
-  padding: 0;
-  margin: 0;
-  font-size: 100%;
-  word-break: normal;
-  white-space: pre;
-  background: transparent;
-  border: 0;
-}
-.markdown .highlight {
-  margin-bottom: 16px;
-}
-.markdown .highlight pre,
-.markdown pre {
-  padding: 16px;
-  overflow: auto;
-  font-size: 85%;
-  line-height: 1.45;
-  background-color: #f7f7f7;
-  border-radius: 3px;
-}
-.markdown .highlight pre {
-  margin-bottom: 0;
-  word-break: normal;
-}
-.markdown pre {
-  word-wrap: normal;
-}
-.markdown pre code,
-.markdown pre tt {
-  display: inline;
-  max-width: initial;
-  padding: 0;
-  margin: 0;
-  overflow: initial;
-  line-height: inherit;
-  word-wrap: normal;
-  background-color: transparent;
-  border: 0;
-}
-.markdown pre code:before,
-.markdown pre code:after,
-.markdown pre tt:before,
-.markdown pre tt:after {
-  content: normal;
-}
-.markdown kbd {
-  display: inline-block;
-  padding: 3px 5px;
-  font-size: 11px;
-  line-height: 10px;
-  color: #555;
-  vertical-align: middle;
-  background-color: #fcfcfc;
-  border: solid 1px #ccc;
-  border-bottom-color: #bbb;
-  border-radius: 3px;
-  box-shadow: inset 0 -1px 0 #bbbbbb;
-}
-.markdown .csv-data td,
-.markdown .csv-data th {
-  padding: 5px;
-  overflow: hidden;
-  font-size: 12px;
-  line-height: 1;
-  text-align: left;
-  white-space: nowrap;
-}
-.markdown .csv-data .blob-num {
-  padding: 10px 8px 9px;
-  text-align: right;
-  background: #fff;
-  border: 0;
-}
-.markdown .csv-data tr {
-  border-top: 0;
-}
-.markdown .csv-data th {
-  font-weight: bold;
-  background: #f8f8f8;
-  border-top: 0;
-}
-/* Author: jmblog */
-/* Project: https://github.com/jmblog/color-themes-for-google-code-prettify */
-/* GitHub Theme */
-/* Pretty printing styles. Used with prettify.js. */
-/* SPAN elements with the classes below are added by prettyprint. */
-/* plain text */
-.pln {
-  color: #333333;
-}
-@media screen {
-  /* string content */
-  .str {
-    color: #dd1144;
-  }
-  /* a keyword */
-  .kwd {
-    color: #333333;
-  }
-  /* a comment */
-  .com {
-    color: #999988;
-    font-style: italic;
-  }
-  /* a type name */
-  .typ {
-    color: #445588;
-  }
-  /* a literal value */
-  .lit {
-    color: #445588;
-  }
-  /* punctuation */
-  .pun {
-    color: #333333;
-  }
-  /* lisp open bracket */
-  .opn {
-    color: #333333;
-  }
-  /* lisp close bracket */
-  .clo {
-    color: #333333;
-  }
-  /* a markup tag name */
-  .tag {
-    color: navy;
-  }
-  /* a markup attribute name */
-  .atn {
-    color: teal;
-  }
-  /* a markup attribute value */
-  .atv {
-    color: #dd1144;
-  }
-  /* a declaration */
-  .dec {
-    color: #333333;
-  }
-  /* a variable name */
-  .var {
-    color: teal;
-  }
-  /* a function name */
-  .fun {
-    color: #990000;
-  }
-}
-/* Use higher contrast and text-weight for printable form. */
-@media print, projection {
-  .str {
-    color: #006600;
-  }
-  .kwd {
-    color: #006;
-    font-weight: bold;
-  }
-  .com {
-    color: #600;
-    font-style: italic;
-  }
-  .typ {
-    color: #404;
-    font-weight: bold;
-  }
-  .lit {
-    color: #004444;
-  }
-  .pun,
-  .opn,
-  .clo {
-    color: #444400;
-  }
-  .tag {
-    color: #006;
-    font-weight: bold;
-  }
-  .atn {
-    color: #440044;
-  }
-  .atv {
-    color: #006600;
-  }
-}
-/* Specify class=linenums on a pre to get line numbering */
-ol.linenums {
-  margin-top: 0;
-  margin-bottom: 0;
-}
-#promo-wrapper {
-  padding-top: 50px;
-  background-color: #428bca;
-}
-#promo-logo {
-  margin-right: 50px;
-  padding-bottom: 50px;
-}
-#promo-logo img {
-  max-width: 250px;
-}
-#promo-content {
-  color: #FFF;
-  margin-left: 300px;
-}
-#promo-content h1,
-#promo-content h2 {
-  font-family: 'PT Sans Narrow', sans-serif;
-  line-height: 60px;
-  margin-bottom: 0;
-  text-shadow: 0 2px 1px rgba(0, 0, 0, 0.5);
-}
-#promo-content h1 {
-  font-size: 96px;
-  line-height: 96px;
-  margin-bottom: 30px;
-}
-#promo-content h2 {
-  font-size: 52px;
-  line-height: 70px;
-  font-weight: normal;
-}
-#promo-form {
-  padding: 40px 0;
-}
-#promo-form .ipt-large {
-  border: none;
-  border-radius: 4px;
-  font-size: 18px;
-  margin-right: 12px;
-}
-#promo-form .ipt-large:focus {
-  box-shadow: 0 0 3px #FFF;
-}
-#promo-form .btn-large {
-  border-radius: 4px;
-  font-size: 18px;
-  margin-right: 12px;
-}
-#promo-social {
-  padding-bottom: 60px;
-}
-#promo-social .qq {
-  box-shadow: 0 0 1px #1c6399;
-}
-#feature-wrapper {
-  font-family: Lato, sans-serif;
-  font-size: 18px;
-  padding: 50px 0 100px 0;
-}
-#feature-wrapper .octicon {
-  color: #d9453d;
-  font-size: 60px;
-  height: 60px;
-  width: 60px;
-  line-height: 60px;
-  margin-right: 12px;
-  vertical-align: middle;
-  display: inline-block;
-}
-#feature-wrapper b {
-  color: #000;
-  font-size: 24px;
-  display: inline-block;
-  line-height: 60px;
-}
-#feature-wrapper p {
-  margin: 1em 0;
-  line-height: 40px;
-  padding-right: 30px;
-}
-#feature-wrapper a {
-  color: #d9453d;
-}
-#feature-wrapper a:hover {
-  color: #ff635a;
-}
-#feature-wrapper .grid-1-2 {
-  margin-bottom: 30px;
-}
-#install-form {
-  padding: 15px;
-}
-#install-form label {
-  width: 35%;
-}
-#install-form input {
-  width: 30%;
-}
-#install-form input[type="checkbox"],
-#install-form input[type="radio"] {
-  width: auto;
-}
-/*
-    The dashboard page style
-*/
-#dashboard-header {
-  border-bottom: 1px solid #d6d6d6;
-  height: 69px;
-  background-color: #FFF;
-}
-#dashboard-header > .menu-line > li {
-  padding: 12px 6px;
-}
-#dashboard-header > .menu-line > li.drop {
-  margin-left: -22px;
-}
-#dashboard-header > .menu-line > li.drop:hover a {
-  background-color: transparent;
-}
-#dashboard-header > .menu-line > li.right > a {
-  font-size: 1.2em;
-  color: #444444;
-  margin: -12px 0px;
-  padding: 22px 0.8em;
-}
-#dashboard-header > .menu-line > li.right > a:hover {
-  background-color: transparent;
-  color: #d9453d;
-}
-#dashboard-header > .menu-line > li.right > a .octicon {
-  margin-right: 6px;
-}
-#dashboard-header > .menu-line > li.right .current {
-  border-bottom: 2px solid #D26911;
-}
-#dashboard-selection-menu a img {
-  margin: -4px 10px 0 0;
-}
-#dashboard {
-  padding: 1.5em;
-}
-#dashboard-sidebar .panel-header h4 {
-  margin: 0;
-}
-#dashboard-sidebar > .panel {
-  margin-bottom: 24px;
-  border-bottom-left-radius: .3em;
-  border-bottom-right-radius: .3em;
-}
-#dashboard-sidebar-menu {
-  border-top-left-radius: .3em;
-  border-top-right-radius: .3em;
-  width: 100%;
-  height: 32px;
-}
-#dashboard-sidebar-menu > li {
-  border: 1px solid #d6d6d6;
-  float: left;
-  margin-right: -1px;
-  border-bottom: none;
-}
-#dashboard-sidebar-menu > li > a {
-  padding-top: .3em;
-  padding-bottom: .3em;
-}
-#dashboard-sidebar-menu > li.first {
-  border-top-left-radius: .3em;
-}
-#dashboard-sidebar-menu > li.first > a {
-  border-top-left-radius: .3em;
-}
-#dashboard-sidebar-menu > li.drop {
-  border: none;
-  float: right;
-}
-#dashboard-sidebar-menu > li.js-tab-nav-show {
-  background-color: #EEEEEE;
-}
-#dashboard-sidebar-menu > li.last {
-  border-top-right-radius: .3em;
-}
-#dashboard-sidebar-menu > li.last > a {
-  border-top-right-radius: .3em;
-}
-#dashboard-my-mirror li,
-#dashboard-my-org li,
-#dashboard-my-repo li {
-  border-bottom: 1px solid #EAEAEA;
-}
-#dashboard-my-mirror li.private,
-#dashboard-my-org li.private,
-#dashboard-my-repo li.private {
-  background-color: #fcf8e9;
-}
-#dashboard-my-mirror li:last-child,
-#dashboard-my-org li:last-child,
-#dashboard-my-repo li:last-child {
-  border-bottom: none;
-}
-#dashboard-my-mirror li a,
-#dashboard-my-org li a,
-#dashboard-my-repo li a {
-  padding: 6px 1.2em;
-  display: block;
-}
-#dashboard-my-mirror li a .octicon,
-#dashboard-my-org li a .octicon,
-#dashboard-my-repo li a .octicon {
-  margin-right: 6px;
-  color: #888;
-}
-#dashboard-my-mirror li a:hover .repo-name,
-#dashboard-my-org li a:hover .repo-name,
-#dashboard-my-repo li a:hover .repo-name {
-  text-decoration: underline;
-}
-#dashboard-my-mirror .repo-name,
-#dashboard-my-org .repo-name,
-#dashboard-my-repo .repo-name {
-  font-size: 1.1em;
-}
-#dashboard-my-mirror .repo-star,
-#dashboard-my-org .repo-star,
-#dashboard-my-repo .repo-star {
-  color: #888;
-}
-#dashboard-my-mirror .repo-contrib-header,
-#dashboard-my-org .repo-contrib-header,
-#dashboard-my-repo .repo-contrib-header {
-  border-top: 1px solid #d6d6d6;
-}
-#dashboard-my-mirror .panel-header,
-#dashboard-my-org .panel-header,
-#dashboard-my-repo .panel-header {
-  font-size: 14px;
-}
-#dashboard-my-repo .panel-header .octicon {
-  margin-right: 6px;
-  font-size: 12px;
-}
-#dashboard-my-repo .repo-count {
-  margin-left: 4px;
-}
-#dashboard-my-org,
-#dashboard-my-mirror {
-  display: none;
-}
-#dashboard-new-repo {
-  width: 50px;
-  height: 33px;
-  padding-top: 6px;
-  margin-right: 1px;
-  border-top-left-radius: .3em;
-  border-top-right-radius: .3em;
-}
-#dashboard-new-repo .octicon {
-  font-size: 20px;
-}
-#dashboard-new-repo-menu {
-  top: 33px;
-  width: 180px;
-  background-color: #FFF;
-  left: -132px;
-}
-#dashboard-new-repo-menu .octicon {
-  margin-right: 6px;
-  font-size: 1.1em;
-}
-#dashboard-selection-menu {
-  width: auto;
-  max-width: 300px;
-}
-#dashboard-selection-menu > .drop-down {
-  top: 56px;
-  left: 22px;
-}
-#dashboard-selection-menu li {
-  white-space: nowrap;
-}
-#dashboard-selection-menu li.checked .octicon {
-  opacity: 1;
-}
-#dashboard-selection-menu li a {
-  text-overflow: ellipsis;
-  -o-text-overflow: ellipsis;
-  overflow: hidden;
-}
-#dashboard-switch-menu {
-  border-bottom-left-radius: .3em;
-  border-bottom-right-radius: .3em;
-}
-#dashboard-switch-menu > li > a img {
-  margin-top: 0;
-}
-#dashboard-switch-menu > li > a .octicon {
-  margin-right: 12px;
-}
-#dashboard-switch-menu > li:last-child > a {
-  border-bottom-left-radius: .3em;
-  border-bottom-right-radius: .3em;
-}
-#dashboard-switch-menu > li.org > a .octicon {
-  opacity: 0;
-}
-#dashboard-switch-menu > li.checked > a {
-  font-weight: bold;
-}
-#dashboard-switch-menu > li.checked > a .octicon {
-  opacity: 1;
-}
-#dashboard-news {
-  padding-bottom: 60px;
-}
-#dashboard-news .news {
-  margin-right: 2.4em;
-  padding-bottom: 1em;
-  margin-bottom: 1em;
-  border-bottom: 1px solid #E6E6E6;
-  min-height: 30px;
-}
-#dashboard-news .news .mega-octicon {
-  color: #CCC;
-}
-#dashboard-news .news .avatar {
-  margin-right: 1.2em;
-}
-#dashboard-news .news .news-content,
-#dashboard-news .news .news-time {
-  color: #888;
-}
-#dashboard-news .push-news .news-content li {
-  margin-left: 1em;
-}
-#dashboard-news .push-news .news-content li img {
-  vertical-align: inherit;
-  margin-bottom: -2px;
-}
-/*
-The register and sign-in page style
-*/
-#sign-wrapper {
-  padding: 60px 0;
-}
-.sign-panel {
-  background-color: #ffffff;
-}
-.sign-form.form-align .field {
-  margin: 1.2em 0 2em 0;
-}
-.sign-form.form-align .ipt-large {
-  width: 300px;
-}
-.sign-form.form-align label,
-.sign-form.form-align .form-label {
-  width: 160px;
-}
-.sign-form.form-align .chk-label {
-  width: auto;
-  text-align: left;
-  margin-left: 176px;
-}
-.sign-form.form-align .alert {
-  margin: 0 30px 24px 30px;
-}
-.sign-form.form-align:hover {
-  box-shadow: 0 0 6px #CCC;
-}
-.sign-form.container {
-  padding: 0;
-  width: 600px;
-  margin-bottom: 80px;
-}
-#sign-up-form .panel-content {
-  margin-top: 1.2em;
-}
-#sign-up-form h2 {
-  margin: .5em 1em;
-}
-#sign-social {
-  position: relative;
-  margin: 40px 0;
-}
-#sign-social .or {
-  position: absolute;
-  width: 30px;
-  top: -52px;
-  left: 50%;
-  background-color: #FFF;
-  margin-left: -15px;
-}
-#repo-wrapper {
-  padding-bottom: 100px;
-}
-#repo-header {
-  height: 69px;
-  border-bottom: 1px solid #d6d6d6;
-  background-color: #ffffff;
-}
-#repo-header-name {
-  line-height: 66px;
-  color: #888888;
-  font-size: 1.6em;
-  font-weight: normal;
-  margin-bottom: 0;
-}
-#repo-header-name i {
-  margin-right: 12px;
-  vertical-align: middle;
-}
-#repo-header-name .divider {
-  margin: 0 4px;
-}
-#repo-header-meta {
-  line-height: 66px;
-}
-#repo-header-meta li > a {
-  padding: 0;
-}
-#repo-header-meta li > a:hover {
-  background-color: transparent;
-}
-#repo-header-meta a > .btn {
-  line-height: 16px;
-  margin-left: 16px;
-  font-size: 13px;
-}
-#repo-header-meta a > .btn i {
-  margin-right: 6px;
-}
-#repo-header-meta a > .btn .num {
-  margin-left: 6px;
-}
-#repo-header-download-btn > .btn > i {
-  margin-right: 0 !important;
-}
-#repo-header-download-btn:hover:after,
-#repo-header-download-btn:hover .btn {
-  background-color: #383838;
-  color: #FFF;
-}
-#repo-header-download-btn:after {
-  background-color: #444444;
-  padding: 9px 16px 8px 0;
-  margin-left: -8px !important;
-  color: #FFF;
-  border-top: 1px solid #444444;
-  border-bottom: 1px solid #444444;
-  border-top-right-radius: .25em;
-  border-bottom-right-radius: .25em;
-}
-#repo-header-download-drop {
-  line-height: 24px;
-  width: 460px;
-  top: 50px;
-  left: -390px;
-  padding: 20px;
-  box-sizing: border-box;
-  z-index: 1;
-}
-#repo-header-download-drop .btn > i {
-  margin-right: 6px;
-}
-#repo-header-download-drop button,
-#repo-header-download-drop input {
-  font-size: 11px;
-}
-#repo-header-download-drop #repo-clone-copy {
-  width: 85px;
-  text-overflow: clip;
-}
-#repo-content {
-  padding-top: 18px;
-  padding-bottom: 18px;
-}
-.repo-wide-wrapper {
-  padding: 18px;
-  position: relative;
-}
-#repo-clone-url {
-  border-right: none;
-  width: 190px;
-  border-left: none;
-  cursor: default;
-}
-#repo-clone-help {
-  clear: both;
-  line-height: 48px;
-}
-#repo-clone-zip {
-  line-height: 48px;
-}
-#repo-clone-zip a {
-  cursor: pointer;
-  color: white;
-  overflow: visible;
-  padding: .6em 1.2em;
-}
-#repo-clone-zip .btn {
-  margin: 0 6px;
-}
-#repo-desc {
-  font-size: 1.2em;
-}
-#repo-desc .no-description {
-  color: #999;
-}
-#repo-sidebar-nav .label {
-  font-size: 12px;
-  line-height: 1.4em;
-  margin-top: 2px;
-}
-#repo-sidebar-nav i {
-  margin-right: 6px;
-}
-#repo-sidebar-mini {
-  margin-top: 6px;
-  width: 60px;
-}
-#repo-sidebar-mini li {
-  margin-bottom: 4px;
-}
-#repo-sidebar-mini li > a {
-  position: relative;
-  padding-left: 12px;
-  width: 24px;
-  text-align: center;
-}
-#repo-sidebar-mini li > a > i.octicon {
-  font-size: 21px;
-}
-#repo-sidebar-mini .num {
-  position: absolute;
-  font-size: 12px;
-  top: 0;
-  left: 36px;
-  padding: 0 2px;
-  min-width: 16px;
-  height: 16px;
-  text-align: center;
-  line-height: 16px;
-  border-radius: 4px;
-  opacity: 0.7;
-  -webkit-transform: scale(0.9);
-  font-weight: bold;
-}
-#repo-file-nav {
-  padding: .6em 0 1em 0;
-}
-#repo-file-nav > li > a {
-  padding-left: 0;
-}
-#repo-file-nav > li > a:hover {
-  background-color: transparent;
-}
-#repo-file-nav li.repo-jump > a {
-  padding-right: 0;
-}
-#repo-file-nav li.repo-jump > a .btn {
-  margin-left: -1px;
-}
-#repo-branch-switch > a .btn {
-  padding-right: 30px;
-}
-#repo-branch-switch > a:after {
-  position: absolute;
-  top: 12px;
-  right: 30px;
-  margin-left: 0;
-  color: #444444;
-}
-#repo-branch-switch > .drop-down {
-  top: 40px;
-  left: 0;
-}
-#repo-branch-filter-ipt {
-  width: 100%;
-  border-left: none;
-  border-right: none;
-  box-sizing: border-box;
-}
-#repo-branch-tag .tab-nav {
-  border-bottom: 1px solid #EAEAEA;
-}
-#repo-branch-tag .tab-nav a {
-  padding: .3em .8em;
-}
-#repo-branch-tag .tab-nav .js-tab-nav-show {
-  background-color: #EEE;
-  font-weight: bold;
-}
-#repo-branch-tag .switching-list {
-  max-height: 300px;
-  overflow-y: auto;
-}
-#repo-branch-list li i,
-#repo-tag-list li i {
-  margin-right: 12px;
-  opacity: 0;
-}
-#repo-branch-list li.checked i,
-#repo-tag-list li.checked i {
-  opacity: 1;
-}
-#repo-bread .bread {
-  padding-right: 0;
-  font-size: 16px;
-  font-weight: bold;
-}
-#repo-main {
-  padding-right: 40px;
-  box-sizing: border-box;
-}
-#repo-files-table {
-  margin-bottom: 20px;
-}
-#repo-files-table .sha .label {
-  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
-}
-#repo-files-table th,
-#repo-files-table td {
-  text-align: left;
-  line-height: 32px;
-}
-#repo-files-table td.icon {
-  width: 16px;
-  padding-right: .1em;
-  padding-left: 1em;
-}
-#repo-files-table td.name {
-  max-width: 120px;
-}
-#repo-files-table td.name .text-truncate {
-  max-width: 100%;
-}
-#repo-files-table td.age {
-  max-width: 120px;
-  text-align: right;
-}
-#repo-files-table td.msg {
-  max-width: 440px;
-}
-#repo-files-table td.msg .text-truncate {
-  max-width: 100%;
-}
-#repo-files-table td.age,
-#repo-files-table td.size,
-#repo-files-table td.msg a {
-  color: #888;
-}
-#repo-files-table td.msg a:hover {
-  color: #428BCA;
-  text-decoration: underline;
-}
-#repo-files-table td.message .text-truncate {
-  max-width: 360px;
-}
-#repo-files-table tbody {
-  background-color: #FFF;
-}
-#repo-files-table tbody tr:hover {
-  background-color: #ffffEE;
-}
-#repo-files-table thead {
-  background-color: #F0F0F0;
-}
-#repo-files-table thead .author a {
-  margin: 0 .4em;
-}
-#repo-files-table thead .last-commit strong {
-  color: #444;
-}
-#repo-files-table thead .last-commit .text-truncate {
-  max-width: 440px;
-  margin-left: .4em;
-}
-#repo-files-table thead .last-commit .text-truncate,
-#repo-files-table thead .age {
-  font-weight: normal;
-  color: #888;
-}
-#repo-readme,
-#repo-read-file {
-  margin-bottom: 80px;
-}
-#repo-bare-start {
-  margin-bottom: 100px;
-}
-#repo-bare-start .panel-content {
-  background-color: #FFF;
-}
-#repo-bare-start pre {
-  margin: 0 40px;
-  padding: 6px 10px;
-  border: 1px solid #ddd;
-  background: #f8f8f8;
-}
-.repo-bare #repo-bare-start h2 {
-  margin-top: 30px;
-  margin-bottom: 24px;
-}
-.repo-bare #repo-header-meta {
-  display: none;
-}
-.repo-bare .btn-first {
-  margin-left: 200px;
-}
-.repo-bare #repo-clone-copy {
-  margin-right: 200px;
-}
-.repo-bare #repo-clone-help {
-  clear: both;
-  width: 100%;
-}
-.repo-bare #repo-clone-url {
-  width: 520px;
-}
-/* repository create */
-#team-create-form,
-#repo-migrate-form,
-#repo-create-form {
-  width: 800px;
-  margin: 60px auto auto auto;
-  background: white;
-}
-#team-create-form h2,
-#repo-migrate-form h2,
-#repo-create-form h2 {
-  margin: .5em 1em;
-}
-#team-create-form .field,
-#repo-migrate-form .field,
-#repo-create-form .field {
-  margin: 1.2em 0 2em 0;
-}
-#team-create-form .ipt,
-#repo-migrate-form .ipt,
-#repo-create-form .ipt {
-  width: 540px;
-}
-#team-create-form textarea,
-#repo-migrate-form textarea,
-#repo-create-form textarea {
-  height: 120px;
-}
-#team-create-form .avatar,
-#repo-migrate-form .avatar,
-#repo-create-form .avatar {
-  vertical-align: middle;
-  margin-right: .6em;
-  width: 28px;
-  height: 28px;
-}
-#team-create-form:hover,
-#repo-migrate-form:hover,
-#repo-create-form:hover {
-  box-shadow: 0px 0px 6px #CCC;
-}
-#repo-create-cancel {
-  margin-left: 4em;
-}
-#release-new-target-branch-list,
-#repo-create-owner-list {
-  top: 30px;
-  left: 0;
-  width: auto;
-  max-width: 300px;
-}
-#release-new-target-branch-list .octicon,
-#repo-create-owner-list .octicon {
-  margin-right: 12px;
-  opacity: 0;
-}
-#release-new-target-branch-list .avatar,
-#repo-create-owner-list .avatar {
-  width: 20px;
-  height: 20px;
-}
-#release-new-target-branch-list li,
-#repo-create-owner-list li {
-  white-space: nowrap;
-}
-#release-new-target-branch-list li.checked .octicon,
-#repo-create-owner-list li.checked .octicon {
-  opacity: 1;
-}
-#release-new-target-branch-list li a,
-#repo-create-owner-list li a {
-  text-overflow: ellipsis;
-  -o-text-overflow: ellipsis;
-  overflow: hidden;
-}
-#release-new-target-branch-list {
-  margin-top: -1px;
-  min-width: 150px;
-}
-#release-new-title {
-  margin-top: 10px;
-}
-#release-new-content {
-  width: 100%;
-}
-#release-preview-btn .btn {
-  border-left: 0;
-}
-#release-preview.markdown {
-  margin-top: 5px;
-  background-color: transparent;
-}
-.file-name {
-  margin-left: 1em;
-}
-.file-size {
-  font-size: 13px;
-  color: #888;
-  margin-left: 1em;
-}
-.code-view {
-  overflow: auto;
-  overflow-x: auto;
-  overflow-y: hidden;
-  background: white;
-}
-.code-view .view-raw {
-  min-height: 40px;
-  text-align: center;
-  padding-top: 20px;
-}
-.code-view .view-raw .btn {
-  font-size: 1.05em;
-  line-height: 16px;
-  padding: 6px 8px;
-}
-.code-view table {
-  width: 100%;
-}
-.code-view table td {
-  padding: 0;
-}
-.code-view .lines-num {
-  vertical-align: top;
-  text-align: right;
-  color: #999;
-  background: #f5f5f5;
-  width: 1%;
-}
-.code-view .lines-num span {
-  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
-  line-height: 20px;
-  padding: 0 10px;
-  cursor: pointer;
-  display: block;
-}
-.code-view .lines-code > pre {
-  border: none;
-  border-left: 1px solid #ddd;
-}
-.code-view .lines-code > pre > ol.linenums > li {
-  padding: 0 10px;
-  line-height: 20px;
-}
-.code-view .lines-code > pre > ol.linenums > li.active {
-  background: #ffffdd;
-}
-.repo-setting-zone {
-  padding: 30px;
-}
-#team-repositories-list,
-#team-members-list,
-#repo-collab-list {
-  list-style: none;
-  padding: 10px 0 5px 0;
-}
-#team-repositories-list li.collab,
-#team-members-list li.collab,
-#repo-collab-list li.collab {
-  clear: both;
-  height: 50px;
-  padding: 0 15px 0 15px;
-}
-#team-repositories-list a.member,
-#team-members-list a.member,
-#repo-collab-list a.member {
-  color: #444;
-  height: 50px;
-  line-height: 50px;
-}
-#team-repositories-list a.member:hover,
-#team-members-list a.member:hover,
-#repo-collab-list a.member:hover {
-  color: #4183C4;
-}
-#team-repositories-list .avatar,
-#team-members-list .avatar,
-#repo-collab-list .avatar {
-  margin-right: 1em;
-  width: 40px;
-}
-#team-repositories-list .remove-collab,
-#team-members-list .remove-collab,
-#repo-collab-list .remove-collab {
-  color: #DD4B39;
-}
-.repo-user-list-block {
-  position: relative;
-  top: 5px;
-}
-.setting-list {
-  width: 100%;
-  list-style: none;
-}
-#commits-list {
-  padding-top: 20px;
-}
-#commits-list h4 {
-  line-height: 30px;
-  margin-bottom: 0;
-}
-.commit-list th {
-  background-color: #FFF;
-  line-height: 28px !important;
-}
-.commit-list .date {
-  width: 120px;
-}
-.commit-list .author {
-  padding-left: 20px;
-  min-width: 180px;
-}
-.commit-list .author img {
-  margin-top: -4px;
-}
-.commit-list .sha a {
-  font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
-  font-size: 14px;
-}
-.commit-list .message {
-  width: 60%;
-}
-.commit-list .message span {
-  max-width: 500px;
-}
-.commit-message {
-  white-space: pre-wrap;
-}
-.diff-head-box {
-  margin-top: 10px;
-}
-.diff-head-box .panel-body {
-  padding: 10px 15px 5px 10px;
-}
-.diff-head-box .author img {
-  margin-top: -7px;
-}
-.diff-detail-box {
-  margin: 15px 0;
-  line-height: 30px;
-}
-.diff-detail-box ol {
-  clear: both;
-  padding-left: 0;
-  margin-bottom: 28px;
-}
-.diff-detail-box ol li {
-  list-style: none;
-  padding-bottom: 4px;
-  margin-bottom: 4px;
-  border-bottom: 1px dashed #DDD;
-  padding-left: 6px;
-}
-.diff-detail-box span.status {
-  display: inline-block;
-  width: 12px;
-  height: 12px;
-  margin-right: 8px;
-  vertical-align: middle;
-}
-.diff-detail-box span.status.modify {
-  background-color: #f0db88;
-}
-.diff-detail-box span.status.add {
-  background-color: #b4e2b4;
-}
-.diff-detail-box span.status.del {
-  background-color: #e9aeae;
-}
-.diff-detail-box span.status.rename {
-  background-color: #dad8ff;
-}
-.diff-box .count {
-  margin-right: 12px;
-}
-.diff-box .count .bar {
-  background-color: #e75316;
-  height: 12px;
-  width: 40px;
-  display: inline-block;
-  margin: 2px 4px 0 4px;
-  vertical-align: text-top;
-}
-.diff-box .count .bar .add {
-  background-color: #77c64a;
-  height: 12px;
-}
-.diff-box .file {
-  color: #888;
-}
-.diff-box .panel-header {
-  font-size: 14px;
-}
-.diff-file-box .file-body.file-code .lines-num {
-  text-align: right;
-  color: #999;
-  background: #fafafa;
-  width: 1%;
-}
-.diff-file-box .file-body.file-code .lines-num-old {
-  border-right: 1px solid #DDD;
-}
-.diff-file-box .code-diff tbody tr.tag-code td,
-.diff-file-box .code-diff tbody tr.tag-code pre {
-  background-color: #E0E0E0 !important;
-  border-color: #ADADAD !important;
-}
-.diff-file-box .code-diff tbody tr.tag-code td.selected-line,
-.diff-file-box .code-diff tbody tr.tag-code td.selected-line pre {
-  background-color: #ffffdd !important;
-}
-.diff-file-box .code-diff tbody tr.same-code td.selected-line,
-.diff-file-box .code-diff tbody tr.same-code td.selected-line pre {
-  background-color: #ffffdd !important;
-}
-.diff-file-box .code-diff tbody tr.del-code td,
-.diff-file-box .code-diff tbody tr.del-code pre {
-  background-color: #ffe2dd !important;
-  border-color: #e9aeae !important;
-}
-.diff-file-box .code-diff tbody tr.del-code td.selected-line,
-.diff-file-box .code-diff tbody tr.del-code td.selected-line pre {
-  background-color: #ffffdd !important;
-}
-.diff-file-box .code-diff tbody tr.add-code td,
-.diff-file-box .code-diff tbody tr.add-code pre {
-  background-color: #d1ffd6 !important;
-  border-color: #b4e2b4 !important;
-}
-.diff-file-box .code-diff tbody tr.add-code td.selected-line,
-.diff-file-box .code-diff tbody tr.add-code td.selected-line pre {
-  background-color: #ffffdd !important;
-}
-.diff-file-box .code-diff tbody tr:hover td,
-.diff-file-box .code-diff tbody tr:hover pre {
-  background-color: #FFF8D2 !important;
-  border-color: #F0DB88 !important;
-}
-.compare-head-box {
-  margin-top: 10px;
-}
-.compare-head-box .compare {
-  padding: 0 15px 15px 15px;
-}
-.fork-flag {
-  display: block;
-  font-size: 11px;
-  line-height: 10px;
-  white-space: nowrap;
-  margin-left: 44px;
-  margin-top: -15px;
-}
-#release h4 {
-  font-size: 18px;
-}
-#release h4 small {
-  font-weight: 400;
-  line-height: 1;
-  color: #999;
-}
-#release #release-head {
-  margin-top: 0;
-  margin-bottom: 0;
-  padding-bottom: 20px;
-  border-bottom: 1px solid #DDD;
-}
-#release #release-head .btn {
-  margin-left: 10px;
-}
-#release .release-item > div {
-  padding-top: 20px;
-  padding-bottom: 20px;
-}
-#release .release-item .label-green:hover {
-  background-color: #65ad4e;
-}
-#release .release-item .release-meta {
-  position: relative;
-  float: left;
-  padding-right: 15px;
-}
-#release .release-item .tag,
-#release .release-item .commit {
-  display: block;
-  margin-top: 12px;
-  line-height: 20px;
-}
-#release .release-item .release-detail {
-  margin-top: -1px;
-  border-left: 1px solid #DDD;
-  position: relative;
-  float: left;
-  padding-left: 15px;
-}
-#release .release-item .title {
-  line-height: 25px;
-  margin-top: 0;
-}
-#release .release-item p.info {
-  line-height: 20px;
-  color: #666;
-  margin-bottom: 15px;
-}
-#release .release-item p.info > * {
-  margin-right: 10px;
-}
-#release .release-item .author img {
-  margin-top: -3px;
-}
-#release .release-item div.desc {
-  margin-bottom: 25px;
-}
-#release .release-item div.desc.markdown {
-  background-color: transparent;
-}
-#release .release-item .download a {
-  margin-right: 10px;
-}
-#release .release-item .dot {
-  width: 9px;
-  height: 9px;
-  background-color: #ccc;
-  z-index: 999;
-  position: absolute;
-  display: block;
-  left: -6px;
-  top: 27px;
-  border-radius: 6px;
-  border: 1px solid #FFF;
-}
-#release #release-new-form {
-  padding-top: 15px;
-}
-#stars h4,
-#watchers h4,
-#forks h4 {
-  font-size: 18px;
-  padding-bottom: 20px;
-  text-transform: capitalize;
-  border-bottom: 1px solid #DDD;
-}
-#stars h3,
-#watchers h3,
-#forks h3 {
-  margin: -4px 0 0 0;
-  padding: 0;
-}
-#stars .avatar,
-#watchers .avatar,
-#forks .avatar {
-  width: 75px;
-  height: 75px;
-  float: left;
-  display: block;
-  margin-right: 10px;
-}
-#stars .avatar-small,
-#watchers .avatar-small,
-#forks .avatar-small {
-  width: 24px;
-  height: 24px;
-  float: left;
-  display: block;
-  margin-right: 10px;
-}
-#stars ol,
-#watchers ol,
-#forks ol {
-  margin-top: 10px;
-  list-style: none;
-  width: 100%;
-  overflow: hidden;
-}
-#stars li,
-#watchers li,
-#forks li {
-  width: 32.25%;
-  margin: 10px 10px 10px 0;
-  border-bottom: 1px solid #DDD;
-  float: left;
-  padding-bottom: 10px;
-}
-#stars .pagination,
-#watchers .pagination,
-#forks .pagination {
-  width: 100%;
-  text-align: center;
-  text-transform: capitalize;
-}
-#stars .pagination a,
-#watchers .pagination a,
-#forks .pagination a {
-  border-radius: 3px;
-  border: 1px solid #399ADE;
-  padding: 8px;
-  margin: 0;
-}
-#stars .pagination .active,
-#watchers .pagination .active,
-#forks .pagination .active {
-  border-radius: 3px;
-  border: 1px solid #399ADE;
-  background: #399ADE;
-  cursor: default;
-  padding: 8px;
-  margin: 0;
-  color: #FFFFFF;
-}
-#stars .pagination .disabled,
-#watchers .pagination .disabled,
-#forks .pagination .disabled {
-  border-radius: 3px;
-  border: 1px solid #DDD;
-  color: #D3D3D3;
-  cursor: default;
-  padding: 8px;
-  margin: 0;
-}
-#forks p {
-  padding: 5px 0;
-}
-#admin-wrapper,
-#setting-wrapper {
-  padding-bottom: 100px;
-}
-#setting-menu {
-  box-sizing: border-box;
-}
-#setting-menu li > a {
-  border-left: 2px solid #FFF;
-  background-color: #FFF;
-}
-#setting-menu li:hover {
-  border-color: #EAEAEA;
-}
-#setting-menu li:hover a {
-  border-left: 2px solid #EFEFEF;
-  background-color: #EFEFEF !important;
-  color: #000 !important;
-}
-#setting-menu li.current a {
-  color: #000 !important;
-  font-weight: bold;
-  border-left: 2px solid #d26911;
-}
-.setting-content {
-  margin-left: 32px;
-}
-#auth-setting-form,
-#org-setting-form,
-#repo-setting-form,
-#user-profile-form,
-#add-email-form,
-.repo-setting-form {
-  background-color: #FFF;
-  padding: 30px 0;
-}
-#auth-setting-form textarea,
-#org-setting-form textarea,
-#repo-setting-form textarea,
-#user-profile-form textarea,
-#add-email-form textarea,
-.repo-setting-form textarea {
-  margin-left: 4px;
-  height: 100px;
-}
-#auth-setting-form label,
-#org-setting-form label,
-#repo-setting-form label,
-#user-profile-form label,
-#add-email-form label,
-.repo-setting-form label,
-#auth-setting-form .form-label,
-#org-setting-form .form-label,
-#repo-setting-form .form-label,
-#user-profile-form .form-label,
-#add-email-form .form-label,
-.repo-setting-form .form-label {
-  width: 240px;
-}
-#auth-setting-form .ipt,
-#org-setting-form .ipt,
-#repo-setting-form .ipt,
-#user-profile-form .ipt,
-#add-email-form .ipt,
-.repo-setting-form .ipt {
-  width: 360px;
-}
-#auth-setting-form .field,
-#org-setting-form .field,
-#repo-setting-form .field,
-#user-profile-form .field,
-#add-email-form .field,
-.repo-setting-form .field {
-  margin-bottom: 24px;
-}
-#hook-type {
-  padding: 10px 0 0 0;
-  background-color: #fff;
-}
-#hook-type .field {
-  margin-bottom: 24px;
-}
-#hook-type label {
-  width: 240px;
-}
-#repo-hooks-panel,
-#repo-hooks-history-panel,
-#user-social-panel,
-#user-applications-panel,
-#user-email-panel,
-#user-ssh-panel {
-  margin-bottom: 20px;
-}
-#repo-hooks-panel .setting-list,
-#repo-hooks-history-panel .setting-list,
-#user-social-panel .setting-list,
-#user-applications-panel .setting-list,
-#user-email-panel .setting-list,
-#user-ssh-panel .setting-list {
-  background-color: #FFF;
-}
-#repo-hooks-panel .setting-list li,
-#repo-hooks-history-panel .setting-list li,
-#user-social-panel .setting-list li,
-#user-applications-panel .setting-list li,
-#user-email-panel .setting-list li,
-#user-ssh-panel .setting-list li {
-  padding: 8px 20px;
-  border-bottom: 1px solid #eaeaea;
-}
-#repo-hooks-panel .setting-list li.ssh:hover,
-#repo-hooks-history-panel .setting-list li.ssh:hover,
-#user-social-panel .setting-list li.ssh:hover,
-#user-applications-panel .setting-list li.ssh:hover,
-#user-email-panel .setting-list li.ssh:hover,
-#user-ssh-panel .setting-list li.ssh:hover {
-  background-color: #ffffEE;
-}
-#repo-hooks-panel .setting-list li i,
-#repo-hooks-history-panel .setting-list li i,
-#user-social-panel .setting-list li i,
-#user-applications-panel .setting-list li i,
-#user-email-panel .setting-list li i,
-#user-ssh-panel .setting-list li i {
-  padding-right: 5px;
-}
-#repo-hooks-panel .active-icon,
-#repo-hooks-history-panel .active-icon,
-#user-social-panel .active-icon,
-#user-applications-panel .active-icon,
-#user-email-panel .active-icon,
-#user-ssh-panel .active-icon {
-  width: 10px;
-  height: 10px;
-  border-radius: 6px;
-  padding: 0;
-  margin-right: 20px;
-  margin-top: 10px;
-}
-#repo-hooks-panel .ssh-content,
-#repo-hooks-history-panel .ssh-content,
-#user-social-panel .ssh-content,
-#user-applications-panel .ssh-content,
-#user-email-panel .ssh-content,
-#user-ssh-panel .ssh-content {
-  margin-left: 24px;
-}
-#repo-hooks-panel .ssh-content .octicon,
-#repo-hooks-history-panel .ssh-content .octicon,
-#user-social-panel .ssh-content .octicon,
-#user-applications-panel .ssh-content .octicon,
-#user-email-panel .ssh-content .octicon,
-#user-ssh-panel .ssh-content .octicon {
-  margin-right: 4px;
-}
-#repo-hooks-panel .ssh-content .print,
-#repo-hooks-history-panel .ssh-content .print,
-#user-social-panel .ssh-content .print,
-#user-applications-panel .ssh-content .print,
-#user-email-panel .ssh-content .print,
-#user-ssh-panel .ssh-content .print,
-#repo-hooks-panel .ssh-content .access,
-#repo-hooks-history-panel .ssh-content .access,
-#user-social-panel .ssh-content .access,
-#user-applications-panel .ssh-content .access,
-#user-email-panel .ssh-content .access,
-#user-ssh-panel .ssh-content .access,
-#repo-hooks-panel .ssh-content .activity,
-#repo-hooks-history-panel .ssh-content .activity,
-#user-social-panel .ssh-content .activity,
-#user-applications-panel .ssh-content .activity,
-#user-email-panel .ssh-content .activity,
-#user-ssh-panel .ssh-content .activity {
-  color: #888;
-}
-#repo-hooks-panel .ssh-content .access,
-#repo-hooks-history-panel .ssh-content .access,
-#user-social-panel .ssh-content .access,
-#user-applications-panel .ssh-content .access,
-#user-email-panel .ssh-content .access,
-#user-ssh-panel .ssh-content .access {
-  max-width: 500px;
-}
-#repo-hooks-panel .ssh-btn,
-#repo-hooks-history-panel .ssh-btn,
-#user-social-panel .ssh-btn,
-#user-applications-panel .ssh-btn,
-#user-email-panel .ssh-btn,
-#user-ssh-panel .ssh-btn {
-  margin-top: 6px;
-}
-.form-settings-add .panel-body {
-  background-color: #FFF;
-  padding: 30px 0;
-}
-.form-settings-add .ipt {
-  width: 500px;
-}
-.form-settings-add textarea {
-  height: 120px;
-  margin-left: 3px;
-}
-.form-settings-add .field {
-  margin-bottom: 24px;
-}
-.pr-main {
-  margin-right: 100px;
-}
-.pr-sidebar {
-  border-left: 1px solid #DDD;
-  box-sizing: border-box;
-  position: absolute;
-  right: 0;
-  top: 12px;
-}
-.pr-title {
-  padding: 4px 0;
-}
-.pr-title .pr-num {
-  font-weight: normal;
-  color: #888;
-}
-.pr-meta {
-  color: #888;
-  padding: 4px 0 8px 0;
-}
-.pr-meta .pr-author {
-  margin: 0 8px;
-  color: #444;
-}
-.pr-meta .pr-author:hover {
-  text-decoration: underline;
-}
-.pr-meta .pr-branch {
-  margin: 0 4px;
-  font-size: 12px;
-  padding: 4px 6px;
-}
-.pr-nav {
-  border-bottom: 1px solid #DDD;
-  margin-top: 16px;
-  margin-bottom: 16px;
-}
-.pr-nav .octicon {
-  margin-right: 4px;
-}
-.pr-nav li > a {
-  padding: 3px 9px !important;
-  border: 1px solid transparent;
-  border-bottom: none;
-  border-top-left-radius: .2em;
-  border-top-right-radius: .2em;
-}
-.pr-nav li > a .label {
-  padding: 1px 5px;
-  font-size: 12px;
-  margin-left: 4px;
-}
-.pr-nav li.js-tab-nav-show > a {
-  background-color: #FFF;
-  border-color: #E6E6E6;
-}
-.diff-bar .diff-add {
-  color: #65ad4e;
-}
-.diff-bar .diff-delete {
-  color: #d9453d;
-}
-.diff-bar .diff-status {
-  width: 50px;
-  background-color: #d9453d;
-  height: 10px;
-  margin-top: 7px;
-  margin-left: 4px;
-  margin-right: 4px;
-  border-radius: .2em;
-}
-.diff-bar .diff-status-inner {
-  width: 45%;
-  background-color: #65ad4e;
-  height: 10px;
-  border-top-left-radius: .2em;
-  border-bottom-left-radius: .2em;
-}
-#pr-commit,
-#pr-file-diff,
-#issue-add-comment-preview {
-  display: none;
-}
-#pr-conversation-list {
-  padding-right: 30px;
-  box-sizing: border-box;
-}
-.issue-comment,
-.issue-commit,
-.issue-line,
-.issue-merge,
-.issue-add-comment {
-  margin-bottom: 24px;
-}
-.issue-comment .author-avatar img {
-  margin-right: 12px;
-}
-.issue-comment .panel {
-  margin-left: 60px;
-  margin-top: -40px;
-}
-.issue-comment .panel-header {
-  font-size: 13px;
-}
-.issue-comment .author-name {
-  font-weight: bold;
-}
-.issue-comment .date {
-  margin-left: 4px;
-  font-style: italic;
-  color: #888;
-}
-.issue-comment .action > * {
-  margin-left: 4px;
-  font-size: 12px;
-}
-.issue-comment .action i {
-  font-size: 13px;
-}
-.issue-commit {
-  line-height: 32px;
-}
-.issue-commit i,
-.issue-commit .author-avatar img {
-  margin-right: 16px;
-}
-.issue-commit .sha {
-  margin-left: 24px;
-}
-.issue-commit .message {
-  display: block;
-  margin-left: 88px;
-  padding-top: 4px;
-  line-height: 24px;
-}
-.issue-merge .ico {
-  width: 40px;
-  height: 40px;
-  text-align: center;
-  color: #FFF;
-  margin-right: 12px;
-}
-.issue-merge .ico i {
-  margin-top: 8px;
-  font-size: 24px;
-}
-.issue-merge .panel {
-  margin-left: 60px;
-  margin-top: -40px;
-}
-.issue-merge .panel-header {
-  font-size: 13px;
-}
-.issue-merge-ok .ico {
-  background-color: #65AD4E;
-}
-.issue-merge-ok .panel,
-.issue-merge-ok .panel-content,
-.issue-merge-ok .panel-header {
-  border-color: #65AD4E;
-  background-color: #FFF;
-}
-.issue-merge-ok .panel-header {
-  color: #508a3e;
-}
-.issue-line {
-  height: 4px;
-  background-color: #E6E6E6;
-}
-.issue-add-comment .panel {
-  margin-left: 60px;
-  margin-top: -40px;
-}
-.issue-add-comment .panel-header {
-  font-size: 13px;
-  padding-bottom: 0;
-}
-.issue-add-comment .add-nav > li > a {
-  padding: 4px 12px;
-  color: #444;
-  border: 1px solid #CCC;
-  margin-bottom: -1px;
-  font-size: 14px;
-  border-top-left-radius: .3em;
-  border-top-right-radius: .3em;
-}
-.issue-add-comment .add-nav > li > a:hover {
-  background-color: #FFF;
-}
-.issue-add-comment .add-nav > li.js-tab-nav-show > a {
-  background-color: #FFF;
-}
-textarea#issue-add-content {
-  width: 100%;
-  box-sizing: border-box;
-  height: 120px;
-  resize: vertical;
-}
-#issue-list-nav {
-  border-bottom: 1px solid #DDD;
-  padding-bottom: 12px;
-}
-#issue-list-nav li > a {
-  font-size: 13px;
-  font-weight: bold;
-  padding: .2em .8em;
-}
-#issue-list-nav li.current > a {
-  background-color: #0079bc;
-  color: #FAFAFA;
-}
-#issue-list-nav li.right {
-  margin-left: 4px;
-}
-#issue-new > a,
-#label-new > a,
-#milestone-new > a {
-  padding: 0 !important;
-}
-#issue-new > a button,
-#label-new > a button,
-#milestone-new > a button {
-  height: 29px;
-}
-#issue-list-menu {
-  padding: 16px 0 12px 0;
-  border-bottom: 1px solid #BBB;
-  margin-bottom: 12px;
-}
-#issue-list-menu .mark a {
-  color: #AAA;
-}
-#issue-list-menu .mark a:hover {
-  color: #444;
-}
-#issue-list-menu .mark.hover a {
-  color: #222;
-  font-weight: bold;
-}
-#issue-list-menu > .left .mark {
-  margin-right: 12px;
-}
-#issue-list-menu > .right .mark {
-  margin-left: 12px;
-}
-#issue-list .item,
-#pull-list .item {
-  position: relative;
-  padding-bottom: 12px;
-  margin-bottom: 12px;
-  border-bottom: 1px dashed #AAA;
-}
-#issue-list .item .title > .title-text,
-#pull-list .item .title > .title-text {
-  color: #444;
-  font-size: 15px;
-  margin: 0 6px;
-}
-#issue-list .comment,
-#pull-list .comment {
-  color: #666;
-  position: absolute;
-  top: 6px;
-  right: 0;
-}
-#issue-list .issue-label a,
-#pull-list .issue-label a {
-  color: #FFF;
-}
-#issue-list .desc,
-#pull-list .desc {
-  color: #999;
-}
-#issue-list .desc a,
-#pull-list .desc a {
-  color: #999;
-}
-#issue-list .desc a:hover,
-#pull-list .desc a:hover {
-  color: #03a2ef;
-}
-#issue-list-filter .drop > a {
-  width: 90px;
-  padding: 0;
-  margin-left: 12px;
-  text-align: center;
-}
-#issue-list-filter .drop-down {
-  z-index: 999;
-  width: 236px;
-  left: -158px;
-  top: 22px;
-  padding: 0 12px;
-}
-#issue-list-filter .drop-down h4 {
-  line-height: 40px;
-  border-bottom: 1px solid #CCC;
-  margin-bottom: 0;
-}
-#issue-list-filter .drop-down li {
-  line-height: 30px;
-  border-bottom: 1px dashed #EEE;
-  padding-left: 9px;
-}
-#issue-list-filter .drop-down li:hover {
-  background-color: #fcffec;
-}
-#issue-list-filter .drop-down > ul > li > a {
-  display: block;
-}
-#issue-list-filter .labels .color {
-  margin-top: 8px;
-  display: inline-block;
-  width: 12px;
-  height: 12px;
-  background-color: red;
-  margin-right: 9px;
-  margin-left: 9px;
-}
-#issue-list-filter .labels .name {
-  vertical-align: top;
-  display: inline-block;
-  color: #444;
-}
-#issue-list-filter .milestones a {
-  color: #444;
-  font-weight: bold;
-}
-#issue-list-pager {
-  margin: 18px 0 24px 0;
-  font-size: 14px;
-  line-height: 24px;
-}
-#labels-num {
-  margin-right: 1em;
-}
-#label-list a.right {
-  margin-left: 1em;
-  color: #999;
-  line-height: 30px;
-}
-#label-list a.right i {
-  margin-right: 3px;
-}
-#label-list a.right:hover {
-  color: #444444;
-}
-#label-list .num {
-  margin-right: 3px;
-}
-#label-list .issue-num {
-  margin-right: 4em;
-}
-#label-list .label:hover {
-  color: #FFF;
-}
-#label-list .label i {
-  margin-right: 6px;
-}
-#label-list .item {
-  height: 30px;
-  padding-bottom: 12px;
-  margin-bottom: 12px;
-  border-bottom: 1px dashed #AAA;
-}
-#label-add-form .ipt,
-#label-edit-form .ipt,
-#label-delete-form .ipt {
-  font-size: 14px;
-}
-#label-add-form .ipt[name=name],
-#label-edit-form .ipt[name=name],
-#label-delete-form .ipt[name=name] {
-  width: 300px;
-}
-#label-add-form .btn,
-#label-edit-form .btn,
-#label-delete-form .btn {
-  height: 33px;
-  font-size: 14px;
-  margin-left: 12px;
-}
-#label-add-form {
-  padding: 18px 0;
-  border-bottom: 1px solid #DDD;
-}
-#label-delete-form span {
-  line-height: 33px;
-}
-.label-color-drop .ipt {
-  width: 100px;
-}
-.label-color-drop .drop-down {
-  width: 128px !important;
-  top: 22px !important;
-  left: 50px !important;
-  padding: 12px;
-  line-height: 16px;
-}
-.label-color-drop .drop-down a.color {
-  width: 16px;
-  height: 16px;
-  display: inline-block;
-}
-.label-color-drop label {
-  width: 24px;
-  height: 24px;
-  display: inline-block;
-  margin: 0 1em;
-  vertical-align: middle;
-}
-#milestone-list {
-  padding-top: 6px;
-}
-#milestone-list .title-text {
-  font-size: 16px;
-}
-#milestone-list .desc {
-  color: #999;
-  line-height: 30px;
-}
-#milestone-list .content {
-  width: 400px;
-}
-#milestone-list .item {
-  padding-bottom: 18px;
-  margin-bottom: 18px;
-  border-bottom: 1px dashed #AAA;
-  position: relative;
-}
-#milestone-list .action {
-  position: absolute;
-  top: 0;
-  right: 0;
-}
-#milestone-list .status-bar > .bar {
-  margin: -2px 8px 0 8px;
-  width: 360px;
-  background-color: #DDD;
-  height: 14px;
-  vertical-align: middle;
-}
-#milestone-list .status-bar .opening {
-  background-color: #65ad4e;
-  width: 40%;
-  height: 14px;
-  vertical-align: top;
-}
-#milestone-list .action-bar {
-  margin-top: 8px;
-}
-#milestone-list .action-bar a {
-  margin-left: 12px;
-}
-.issues.list-group {
-  margin: 10px 0 20px 0;
-}
-.issues.list-group > .list-group-item {
-  background-color: #FFF;
-  border: 1px solid #e5e5e5;
-  display: block;
-  padding: 10px 15px;
-  margin-bottom: -1px;
-}
-.issues.list-group > .list-group-item:hover {
-  background-color: rgba(19, 95, 215, 0.03);
-}
-.issues.list-group > .list-group-item > .title {
-  margin-bottom: 16px;
-  font-weight: bold;
-  font-size: 1.2em;
-}
-.issues.list-group > .list-group-item > .title > a {
-  color: #444;
-}
-.issues.list-group > .list-group-item > .info span {
-  margin-right: 12px;
-  color: #888;
-  line-height: 20px;
-}
-.issues.list-group > .list-group-item > .info span > a {
-  color: #444;
-}
-.org-header-alert .alert {
-  margin-top: 10px;
-}
-.org-header {
-  padding: 16px 0;
-  background-color: #FFF;
-  border-bottom: 1px solid #DDD;
-}
-.org-header img {
-  padding-right: 10px;
-}
-#org-home-header {
-  min-height: 100px;
-}
-#org-header {
-  height: 48px;
-}
-#org-header .org-name {
-  padding-left: 10px;
-  font-size: 1.4em;
-  height: 50px;
-  line-height: 50px;
-  margin-bottom: 0;
-}
-#org-header > div > .menu-line > li.right > a {
-  font-size: 1.2em;
-  color: #444444;
-}
-#org-header > div > .menu-line > li.right > a:hover {
-  background-color: transparent;
-  color: #d9453d;
-}
-#org-header > div > .menu-line > li.right > a .octicon {
-  margin-right: 4px;
-}
-#org-header > div > .menu-line > li.right > a .label {
-  margin-left: 4px;
-}
-#org-header > div > .menu-line > li.right .current {
-  border-bottom: 2px solid #D26911;
-}
-#org-home-header-info {
-  padding-top: 10px;
-}
-#org-home-header-info h2 {
-  font-size: 30px;
-}
-#org-home-header-info ul {
-  list-style: none;
-}
-#org-home-header-info ul li {
-  float: left;
-  padding-right: 5px;
-}
-#org-home-repo-list {
-  padding: 10px 0;
-}
-#org-repo-list {
-  padding: 10px 0;
-}
-#org-repo-list .org-repo-item {
-  border-top: 1px solid #eee;
-  padding: 30px 20px;
-}
-#org-repo-list .org-repo-item .org-repo-status {
-  list-style: none;
-  color: #888;
-}
-#org-repo-list .org-repo-item .org-repo-status li {
-  float: left;
-  margin-right: 6px;
-}
-#org-repo-list .org-repo-item h2 {
-  margin-bottom: 5px;
-}
-#org-repo-list .org-repo-item .org-repo-description {
-  margin: 0;
-  font-size: 14px;
-  color: #666;
-}
-#org-repo-list .org-repo-item .org-repo-updated {
-  font-size: 12px;
-  display: block;
-  margin: 5px 0 0;
-  color: #808080;
-}
-.org-sidebar {
-  margin: -80px 0 0 20px;
-}
-.org-sidebar .panel-footer {
-  padding: .8em 1.2em;
-}
-.org-sidebar .member-avatar-group {
-  padding: 15px;
-}
-.org-sidebar .member-avatar-group img {
-  width: 59px;
-  height: 59px;
-  border-radius: 3px;
-}
-#org-home-team-list {
-  padding: 0 15px;
-}
-#org-home-team-list ul {
-  list-style: none;
-  padding-top: 10px;
-}
-#org-home-team-list ul li {
-  padding: 10px 0;
-  border-bottom: 1px solid #eee;
-}
-#org-home-team-list ul li:last-child {
-  border-bottom: 0;
-}
-.team-name {
-  display: block;
-  font-size: 14px;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  white-space: nowrap;
-}
-.team-meta {
-  margin-top: 0;
-  margin-bottom: 0;
-  color: #777;
-}
-.org-toolbar {
-  padding: 10px 0;
-  border-bottom: 1px solid #eee;
-}
-#org-member-list .org-member-item {
-  height: 50px;
-  line-height: 50px;
-  border-bottom: 1px solid #eee;
-  padding: 15px 20px;
-}
-#org-member-list .org-member-item .member-name {
-  padding-left: 15px;
-}
-#org-member-list .org-member-item ul {
-  list-style: none;
-}
-#org-member-list .org-member-item ul li {
-  text-align: center;
-  display: inline-block;
-}
-.invite-box {
-  padding: 50px 0;
-  min-height: 130px;
-  margin: 0 auto;
-  width: 50%;
-}
-.invite-box input {
-  width: 300px;
-}
-#org-member-list-block {
-  padding-top: 2px;
-}
-.org-team-list .org-team-list-item {
-  float: left;
-  padding: 15px;
-  width: 555px;
-}
-.org-team-list .org-team-list-item .member-avatar-group {
-  padding: 5px 15px;
-}
-.org-team-list .org-team-list-item .member-avatar-group img {
-  width: 38px;
-  height: 38px;
-  border-radius: 3px;
-}
-#team-create-form .note {
-  margin-left: 153px;
-}
-#org-team-card .desc {
-  font-size: 14px;
-  padding: 10px 20px;
-}
-#org-team-card .team-stats {
-  padding: 0 20px 10px 20px;
-  text-transform: uppercase;
-  border-bottom: 1px solid #dddddd;
-}
-#org-team-card .panel-footer {
-  padding: 10px 20px;
-}
-#team-repositories-list .panel-body .search,
-#team-members-list .panel-body .search {
-  padding: 4px 0 10px 10px;
-  border-bottom: 1px solid #dddddd;
-}
-#team-repositories-list li.collab,
-#team-members-list li.collab {
-  padding-top: 10px !important;
-  border-bottom: 1px solid #dddddd;
-}
-#team-repositories-list li:last-child,
-#team-members-list li:last-child {
-  border-bottom: 0 !important;
-}
-#team-repositories-list li a .octicon {
-  color: #888;
-}
-#team-repositories-list li .member {
-  color: #428bca;
-  font-size: 14px;
-  height: 40px;
-  line-height: 40px;
-}
-.admin-panel {
-  padding: 10px 20px;
-}
-.admin-desc {
-  padding: 10px 20px;
-}
-.admin-table {
-  padding: 15px 0 5px 0;
-}
-.dl-horizontal dt {
-  float: left;
-  width: 160px;
-  clear: left;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  white-space: nowrap;
-}
-.admin-dl-horizontal {
-  padding: 20px;
-}
-.admin-dl-horizontal > dt {
-  width: 250px;
-}
-.admin-dl-horizontal > dd {
-  margin-left: 240px;
-}
-.profile-avatar {
-  width: 100%;
-  border-radius: 6px;
-}
-#profile-name {
-  padding: 10px 0;
-}
-#profile-fullname {
-  font-size: 1.6em;
-}
-#profile-username {
-  font-size: 1.6em;
-  font-weight: bold;
-}
-.profile-info {
-  font-size: 14px;
-}
-.profile-info ul {
-  padding-bottom: 10px;
-}
-.profile-info ul .list-group-item {
-  background-color: transparent;
-  padding-top: 5px;
-  color: #666;
-}
-.profile-info ul .profile-rel {
-  width: 31%;
-  text-align: center;
-  display: inline-block;
-}
-.profile-info ul .profile-rel strong {
-  display: block;
-  font-size: 28px;
-  font-weight: bold;
-  line-height: 1;
-}
-.profile-info ul .profile-rel p {
-  font-size: 12px;
-}
-#profile-header li a {
-  font-size: 1.2em;
-  color: #444444;
-  padding: .4em .8em;
-}
-#profile-header li a:hover {
-  background-color: transparent;
-  color: #d9453d;
-}
-#profile-header li .current {
-  border-bottom: 2px solid #D26911;
-}
-#profile-body {
-  margin-left: 20px;
-}

+ 0 - 368
public/ng/css/magnific-popup.css

@@ -1,368 +0,0 @@
-/* Magnific Popup CSS */
-.mfp-bg {
-  top: 0;
-  left: 0;
-  width: 100%;
-  height: 100%;
-  z-index: 1042;
-  overflow: hidden;
-  position: fixed;
-  background: #0b0b0b;
-  opacity: 0.8;
-  filter: alpha(opacity=80); }
-
-.mfp-wrap {
-  top: 0;
-  left: 0;
-  width: 100%;
-  height: 100%;
-  z-index: 1043;
-  position: fixed;
-  outline: none !important;
-  -webkit-backface-visibility: hidden; }
-
-.mfp-container {
-  text-align: center;
-  position: absolute;
-  width: 100%;
-  height: 100%;
-  left: 0;
-  top: 0;
-  padding: 0 8px;
-  -webkit-box-sizing: border-box;
-  -moz-box-sizing: border-box;
-  box-sizing: border-box; }
-
-.mfp-container:before {
-  content: '';
-  display: inline-block;
-  height: 100%;
-  vertical-align: middle; }
-
-.mfp-align-top .mfp-container:before {
-  display: none; }
-
-.mfp-content {
-  position: relative;
-  display: inline-block;
-  vertical-align: middle;
-  margin: 0 auto;
-  text-align: left;
-  z-index: 1045; }
-
-.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
-  width: 100%;
-  cursor: auto; }
-
-.mfp-ajax-cur {
-  cursor: progress; }
-
-.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
-  cursor: -moz-zoom-out;
-  cursor: -webkit-zoom-out;
-  cursor: zoom-out; }
-
-.mfp-zoom {
-  cursor: pointer;
-  cursor: -webkit-zoom-in;
-  cursor: -moz-zoom-in;
-  cursor: zoom-in; }
-
-.mfp-auto-cursor .mfp-content {
-  cursor: auto; }
-
-.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
-  -webkit-user-select: none;
-  -moz-user-select: none;
-  user-select: none; }
-
-.mfp-loading.mfp-figure {
-  display: none; }
-
-.mfp-hide {
-  display: none !important; }
-
-.mfp-preloader {
-  color: #cccccc;
-  position: absolute;
-  top: 50%;
-  width: auto;
-  text-align: center;
-  margin-top: -0.8em;
-  left: 8px;
-  right: 8px;
-  z-index: 1044; }
-  .mfp-preloader a {
-    color: #cccccc; }
-    .mfp-preloader a:hover {
-      color: white; }
-
-.mfp-s-ready .mfp-preloader {
-  display: none; }
-
-.mfp-s-error .mfp-content {
-  display: none; }
-
-button.mfp-close, button.mfp-arrow {
-  overflow: visible;
-  cursor: pointer;
-  background: transparent;
-  border: 0;
-  -webkit-appearance: none;
-  display: block;
-  outline: none;
-  padding: 0;
-  z-index: 1046;
-  -webkit-box-shadow: none;
-  box-shadow: none; }
-button::-moz-focus-inner {
-  padding: 0;
-  border: 0; }
-
-.mfp-close {
-  width: 44px;
-  height: 44px;
-  line-height: 44px;
-  position: absolute;
-  right: 0;
-  top: 0;
-  text-decoration: none;
-  text-align: center;
-  opacity: 0.65;
-  filter: alpha(opacity=65);
-  padding: 0 0 18px 10px;
-  color: white;
-  font-style: normal;
-  font-size: 28px;
-  font-family: Arial, Baskerville, monospace; }
-  .mfp-close:hover, .mfp-close:focus {
-    opacity: 1;
-    filter: alpha(opacity=100); }
-  .mfp-close:active {
-    top: 1px; }
-
-.mfp-close-btn-in .mfp-close {
-  color: #333333; }
-
-.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
-  color: white;
-  right: -6px;
-  text-align: right;
-  padding-right: 6px;
-  width: 100%; }
-
-.mfp-counter {
-  position: absolute;
-  top: 0;
-  right: 0;
-  color: #cccccc;
-  font-size: 12px;
-  line-height: 18px; }
-
-.mfp-arrow {
-  position: absolute;
-  opacity: 0.65;
-  filter: alpha(opacity=65);
-  margin: 0;
-  top: 50%;
-  margin-top: -55px;
-  padding: 0;
-  width: 90px;
-  height: 110px;
-  -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
-  .mfp-arrow:active {
-    margin-top: -54px; }
-  .mfp-arrow:hover, .mfp-arrow:focus {
-    opacity: 1;
-    filter: alpha(opacity=100); }
-  .mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
-    content: '';
-    display: block;
-    width: 0;
-    height: 0;
-    position: absolute;
-    left: 0;
-    top: 0;
-    margin-top: 35px;
-    margin-left: 35px;
-    border: medium inset transparent; }
-  .mfp-arrow:after, .mfp-arrow .mfp-a {
-    border-top-width: 13px;
-    border-bottom-width: 13px;
-    top: 8px; }
-  .mfp-arrow:before, .mfp-arrow .mfp-b {
-    border-top-width: 21px;
-    border-bottom-width: 21px;
-    opacity: 0.7; }
-
-.mfp-arrow-left {
-  left: 0; }
-  .mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
-    border-right: 17px solid white;
-    margin-left: 31px; }
-  .mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
-    margin-left: 25px;
-    border-right: 27px solid #3f3f3f; }
-
-.mfp-arrow-right {
-  right: 0; }
-  .mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
-    border-left: 17px solid white;
-    margin-left: 39px; }
-  .mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
-    border-left: 27px solid #3f3f3f; }
-
-.mfp-iframe-holder {
-  padding-top: 40px;
-  padding-bottom: 40px; }
-  .mfp-iframe-holder .mfp-content {
-    line-height: 0;
-    width: 100%;
-    max-width: 900px; }
-  .mfp-iframe-holder .mfp-close {
-    top: -40px; }
-
-.mfp-iframe-scaler {
-  width: 100%;
-  height: 0;
-  overflow: hidden;
-  padding-top: 56.25%; }
-  .mfp-iframe-scaler iframe {
-    position: absolute;
-    display: block;
-    top: 0;
-    left: 0;
-    width: 100%;
-    height: 100%;
-    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
-    background: black; }
-
-/* Main image in popup */
-img.mfp-img {
-  width: auto;
-  max-width: 100%;
-  height: auto;
-  display: block;
-  line-height: 0;
-  -webkit-box-sizing: border-box;
-  -moz-box-sizing: border-box;
-  box-sizing: border-box;
-  padding: 40px 0 40px;
-  margin: 0 auto; }
-
-/* The shadow behind the image */
-.mfp-figure {
-  line-height: 0; }
-  .mfp-figure:after {
-    content: '';
-    position: absolute;
-    left: 0;
-    top: 40px;
-    bottom: 40px;
-    display: block;
-    right: 0;
-    width: auto;
-    height: auto;
-    z-index: -1;
-    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
-    background: #444444; }
-  .mfp-figure small {
-    color: #bdbdbd;
-    display: block;
-    font-size: 12px;
-    line-height: 14px; }
-  .mfp-figure figure {
-    margin: 0; }
-
-.mfp-bottom-bar {
-  margin-top: -36px;
-  position: absolute;
-  top: 100%;
-  left: 0;
-  width: 100%;
-  cursor: auto; }
-
-.mfp-title {
-  text-align: left;
-  line-height: 18px;
-  color: #f3f3f3;
-  word-wrap: break-word;
-  padding-right: 36px; }
-
-.mfp-image-holder .mfp-content {
-  max-width: 100%; }
-
-.mfp-gallery .mfp-image-holder .mfp-figure {
-  cursor: pointer; }
-
-@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
-  /**
-       * Remove all paddings around the image on small screen
-       */
-  .mfp-img-mobile .mfp-image-holder {
-    padding-left: 0;
-    padding-right: 0; }
-  .mfp-img-mobile img.mfp-img {
-    padding: 0; }
-  .mfp-img-mobile .mfp-figure:after {
-    top: 0;
-    bottom: 0; }
-  .mfp-img-mobile .mfp-figure small {
-    display: inline;
-    margin-left: 5px; }
-  .mfp-img-mobile .mfp-bottom-bar {
-    background: rgba(0, 0, 0, 0.6);
-    bottom: 0;
-    margin: 0;
-    top: auto;
-    padding: 3px 5px;
-    position: fixed;
-    -webkit-box-sizing: border-box;
-    -moz-box-sizing: border-box;
-    box-sizing: border-box; }
-    .mfp-img-mobile .mfp-bottom-bar:empty {
-      padding: 0; }
-  .mfp-img-mobile .mfp-counter {
-    right: 5px;
-    top: 3px; }
-  .mfp-img-mobile .mfp-close {
-    top: 0;
-    right: 0;
-    width: 35px;
-    height: 35px;
-    line-height: 35px;
-    background: rgba(0, 0, 0, 0.6);
-    position: fixed;
-    text-align: center;
-    padding: 0; } }
-
-@media all and (max-width: 900px) {
-  .mfp-arrow {
-    -webkit-transform: scale(0.75);
-    transform: scale(0.75); }
-  .mfp-arrow-left {
-    -webkit-transform-origin: 0;
-    transform-origin: 0; }
-  .mfp-arrow-right {
-    -webkit-transform-origin: 100%;
-    transform-origin: 100%; }
-  .mfp-container {
-    padding-left: 6px;
-    padding-right: 6px; } }
-
-.mfp-ie7 .mfp-img {
-  padding: 0; }
-.mfp-ie7 .mfp-bottom-bar {
-  width: 600px;
-  left: 50%;
-  margin-left: -300px;
-  margin-top: 5px;
-  padding-bottom: 5px; }
-.mfp-ie7 .mfp-container {
-  padding: 0; }
-.mfp-ie7 .mfp-content {
-  padding-top: 44px; }
-.mfp-ie7 .mfp-close {
-  top: 0;
-  right: 0;
-  padding-top: 0; }

+ 0 - 25
public/ng/css/tipsy.css

@@ -1,25 +0,0 @@
-.tipsy { font-size: 10px; position: absolute; padding: 5px; z-index: 100000; }
-  .tipsy-inner { background-color: #000; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; }
-
-  /* Rounded corners */
-  .tipsy-inner { border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
-  
-  /* Uncomment for shadow */
-  /*.tipsy-inner { box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; -moz-box-shadow: 0 0 5px #000000; }*/
-  
-  .tipsy-arrow { position: absolute; width: 0; height: 0; line-height: 0; border: 5px dashed #000; }
-  
-  /* Rules to colour arrows */
-  .tipsy-arrow-n { border-bottom-color: #000; }
-  .tipsy-arrow-s { border-top-color: #000; }
-  .tipsy-arrow-e { border-left-color: #000; }
-  .tipsy-arrow-w { border-right-color: #000; }
-  
-	.tipsy-n .tipsy-arrow { top: 0px; left: 50%; margin-left: -5px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
-    .tipsy-nw .tipsy-arrow { top: 0; left: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent;}
-    .tipsy-ne .tipsy-arrow { top: 0; right: 10px; border-bottom-style: solid; border-top: none;  border-left-color: transparent; border-right-color: transparent;}
-  .tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-style: solid; border-bottom: none;  border-left-color: transparent; border-right-color: transparent; }
-    .tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; border-top-style: solid; border-bottom: none;  border-left-color: transparent; border-right-color: transparent; }
-    .tipsy-se .tipsy-arrow { bottom: 0; right: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
-  .tipsy-e .tipsy-arrow { right: 0; top: 50%; margin-top: -5px; border-left-style: solid; border-right: none; border-top-color: transparent; border-bottom-color: transparent; }
-  .tipsy-w .tipsy-arrow { left: 0; top: 50%; margin-top: -5px; border-right-style: solid; border-left: none; border-top-color: transparent; border-bottom-color: transparent; }

+ 0 - 945
public/ng/css/ui.css

@@ -1,945 +0,0 @@
-* {
-  padding: 0;
-  margin: 0;
-}
-html {
-  font-size: 13px;
-  font-family: Helvetica, "Microsoft Yahei", Arial, sans-serif;
-  -ms-text-size-adjust: 100%;
-  -webkit-text-size-adjust: 100%;
-  line-height: 24px;
-  color: #444444;
-  background-color: #fafafa;
-}
-input,
-textarea,
-select,
-option,
-button {
-  font-family: Helvetica, "Microsoft Yahei", Arial, sans-serif;
-}
-article,
-aside,
-details,
-figcaption,
-figure,
-footer,
-header,
-main,
-nav,
-section,
-summary,
-.block {
-  display: block;
-}
-.inline {
-  display: inline;
-}
-.inline-block {
-  display: inline-block;
-}
-.dis-table {
-  display: table;
-}
-.dis-table-cell {
-  display: table-cell;
-}
-.dis-flex {
-  display: flex;
-}
-audio,
-canvas,
-progress,
-video {
-  display: inline-block;
-  vertical-align: baseline;
-}
-audio:not([controls]) {
-  display: none;
-  height: 0;
-}
-[hidden],
-template,
-.hidden {
-  display: none;
-}
-.opacity {
-  opacity: 0;
-}
-.opacity-half {
-  opacity: .5;
-}
-a,
-.text-link {
-  color: #428bca;
-  text-decoration: none;
-  cursor: pointer;
-}
-a:hover,
-.text-link:hover {
-  color: #399ade;
-  text-decoration: none;
-}
-a:focus,
-.text-link:focus {
-  outline: none;
-}
-b,
-strong,
-.text-bold {
-  font-weight: bold;
-}
-dfn,
-.text-italic {
-  font-style: italic;
-}
-h1,
-.text-h1 {
-  font-size: 2em;
-  margin-bottom: 0.67em;
-}
-h2,
-.text-h2 {
-  font-size: 1.6em;
-  margin-bottom: 0.625em;
-}
-h3,
-.text-h3 {
-  font: 1.2em;
-  margin-bottom: 0.5em;
-}
-h4,
-h5,
-h6,
-.text-h4,
-.text-h5,
-.text-h6 {
-  font-size: 1em;
-  margin-bottom: .3em;
-}
-small,
-.text-small {
-  font-size: .8em;
-}
-sub,
-sup,
-.text-sup,
-.text-sub {
-  font-size: .7em;
-  line-height: 0;
-  position: relative;
-  vertical-align: baseline;
-}
-sup,
-.text-sup {
-  top: -0.5em;
-}
-sub,
-.text-sub {
-  bottom: -0.25em;
-}
-.figure,
-.blockquote {
-  margin: 1em 1.5em;
-}
-pre {
-  overflow: auto;
-  margin: 0;
-  padding: .4em 1em;
-}
-code,
-kbd,
-pre,
-samp {
-  font-family: monospace;
-  font-size: 1em;
-}
-.text-left {
-  text-align: left;
-}
-.text-right {
-  text-align: right;
-}
-.text-center {
-  text-align: center;
-}
-.list-no-style {
-  list-style: none;
-}
-img {
-  border: none;
-}
-svg:not(:root) {
-  overflow: hidden;
-}
-label {
-  font-weight: bold;
-}
-textarea,
-input,
-.ipt {
-  padding: .6em;
-  line-height: normal;
-  border: 1px solid #bbbbbb;
-}
-textarea:focus,
-input:focus,
-.ipt:focus {
-  background-color: #f2fffc;
-  outline: none;
-}
-button,
-.btn {
-  overflow: visible;
-  padding: .6em 1.2em;
-}
-button,
-select {
-  text-transform: none;
-}
-button:focus,
-select:focus {
-  outline: none;
-}
-button,
-input[type="button"],
-input[type="reset"],
-input[type="submit"] {
-  -webkit-appearance: button;
-  -moz-appearance: button;
-  cursor: pointer;
-  background-color: #888888;
-  color: #fafafa;
-  border: none;
-}
-button:hover,
-input[type="button"]:hover,
-input[type="reset"]:hover,
-input[type="submit"]:hover {
-  background-color: #444444;
-  color: #ffffff;
-}
-button[disabled],
-html input[disabled] {
-  cursor: default;
-}
-button::-moz-focus-inner,
-input::-moz-focus-inner {
-  border: 0;
-  padding: 0;
-}
-input[type="checkbox"],
-input[type="radio"] {
-  box-sizing: border-box;
-  padding: 0;
-}
-input[type="search"] {
-  -webkit-appearance: textfield;
-  -moz-appearance: textfield;
-  -moz-box-sizing: content-box;
-  -webkit-box-sizing: content-box;
-  box-sizing: content-box;
-}
-fieldset {
-  border: 1px solid #bbbbbb;
-  margin: 0 2px;
-  padding: 0.4em 0.8em 0.8em;
-}
-legend {
-  border: 0;
-  padding: 0;
-}
-textarea {
-  overflow: auto;
-  border: 1px solid #bbbbbb;
-  padding: .6em;
-}
-textarea:focus {
-  background-color: #f2fffc;
-  outline: none;
-}
-optgroup {
-  font-weight: bold;
-}
-table {
-  background-color: transparent;
-  border-collapse: collapse;
-  border-spacing: 0;
-}
-td,
-th {
-  padding: 0;
-}
-hr {
-  -moz-box-sizing: content-box;
-  box-sizing: content-box;
-  height: 0;
-  border: none;
-  border-bottom: 1px solid #dddddd;
-  margin-bottom: .75em;
-}
-.radius {
-  border-radius: .25em;
-}
-.text-truncate {
-  overflow: hidden;
-  text-overflow: ellipsis;
-  white-space: nowrap;
-  display: inline-block;
-  vertical-align: top;
-}
-pre {
-  line-height: 1.6;
-  overflow: auto;
-  padding: 0;
-}
-dt {
-  font-weight: bold;
-}
-.left {
-  float: left;
-}
-.right {
-  float: right;
-}
-.clear::after {
-  clear: both;
-  content: " ";
-  width: 0;
-  height: 0;
-  display: block;
-}
-.hide {
-  display: none;
-}
-.grid-1-12 {
-  width: 8.33%;
-}
-.grid-2-12,
-.grid-1-6 {
-  width: 16.67%;
-}
-.grid-3-12,
-.grid-1-4 {
-  width: 25%;
-}
-.grid-4-12,
-.grid-1-3 {
-  width: 33%;
-}
-.grid-5-12 {
-  width: 41.67%;
-}
-.grid-6-12,
-.grid-1-2 {
-  width: 50%;
-}
-.grid-7-12 {
-  width: 58.33%;
-}
-.grid-8-12,
-.grid-2-3 {
-  width: 66.67%;
-}
-.grid-9-12,
-.grid-3-4 {
-  width: 75%;
-}
-.grid-10-12,
-.grid-5-6 {
-  width: 83.33%;
-}
-.grid-11-12 {
-  width: 91.67%;
-}
-*[class*="grid-"] {
-  box-sizing: content-box;
-}
-.grid-1-5 {
-  width: 20%;
-}
-.grid-2-5 {
-  width: 40%;
-}
-.grid-3-5 {
-  width: 60%;
-}
-.grid-4-5 {
-  width: 80%;
-}
-.btn {
-  white-space: nowrap;
-}
-.btn-small {
-  font-size: 10.8px;
-  padding: .4em .9em;
-}
-.btn-medium {
-  font-size: 12px;
-  padding: .4em .9em;
-}
-.btn-large {
-  font-size: 14.4px;
-  padding: .4em .9em;
-}
-.btn-green {
-  background-color: #65ad4e;
-  border: 1px solid #65ad4e;
-}
-.btn-green:hover {
-  background-color: #71bf57;
-  color: #FFF;
-}
-.btn-blue {
-  background-color: #428bca;
-  border: 1px solid #428bca;
-}
-.btn-blue:hover {
-  background-color: #539cdb;
-  color: #FFF;
-}
-.btn-red {
-  color: #FFF;
-  background-color: #d9453d;
-  border: 1px solid #d9453d;
-}
-.btn-red:hover {
-  background-color: #ff635a;
-  color: #FFF;
-}
-.btn-orange {
-  background-color: #df7514;
-  border: 1px solid #df7514;
-}
-.btn-orange:hover {
-  background-color: #df8229;
-  color: #FFF;
-}
-.btn-black {
-  background-color: #444444;
-  border: 1px solid #444444;
-}
-.btn-black:hover {
-  background-color: #383838;
-  color: #FFF;
-}
-.btn-gray {
-  background-color: #f0f0f0;
-  color: #444444;
-  border: 1px solid #d0d0d0;
-}
-.btn-gray:hover {
-  background-color: #fafafa;
-  color: #444444;
-}
-.btn-white {
-  background-color: #ffffff;
-  color: #444444;
-  border: 1px solid #c6c6c6;
-}
-.btn-white:hover {
-  background-color: #e8e8e8;
-  color: #444444;
-}
-.btn-white.active {
-  background-color: #e8e8e8;
-  color: #444444;
-}
-.btn-active {
-  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset, 0 0 4px rgba(0, 0, 0, 0.15) inset;
-}
-.btn-header {
-  margin-top: -1px;
-  color: white;
-  padding: 0 10px;
-}
-.btn-link {
-  overflow: visible;
-  color: white;
-  padding: .6em 1.2em;
-}
-.btn-radius {
-  border-radius: .25em;
-}
-.btn-left-radius {
-  border-top-left-radius: .25em;
-  border-bottom-left-radius: .25em;
-}
-.btn-right-radius {
-  border-top-right-radius: .25em;
-  border-bottom-right-radius: .25em;
-}
-.btn-block {
-  display: block;
-  width: 100%;
-  box-sizing: content-box;
-  text-align: center;
-}
-.btn-comb {
-  margin-left: -1px;
-}
-.btn-disabled {
-  opacity: .6;
-  cursor: not-allowed;
-  box-shadow: none;
-  background-image: none !important;
-  border: none;
-}
-.btn-disabled:hover {
-  background-image: none !important;
-  color: #ffffff;
-}
-.btn-group {
-  display: inline-block;
-}
-.btn-group > .btn {
-  position: relative;
-  float: left;
-  margin-right: -1px;
-}
-.btn-group > .btn:first-child {
-  border-bottom-left-radius: .25em;
-  border-top-left-radius: .25em;
-}
-.btn-group > .btn:last-child {
-  border-bottom-right-radius: .25em;
-  border-top-right-radius: .25em;
-}
-.ipt:focus {
-  border-color: #428bca;
-}
-.ipt-radius {
-  border-radius: .25em;
-}
-.ipt-small {
-  font-size: 9.6px;
-}
-.ipt-large {
-  font-size: 14.4px;
-}
-.ipt-textarea {
-  height: auto !important;
-  width: auto;
-}
-.ipt-disabled,
-input[disabled] {
-  background-color: #f2f2f2 !important;
-  color: #888;
-  cursor: not-allowed;
-}
-.ipt-disabled:focus,
-input[disabled]:focus {
-  background-color: #f2f2f2 !important;
-}
-.ipt-readonly:focus,
-input[readonly]:focus {
-  background-color: #f2f2f2 !important;
-}
-.ipt-error {
-  border-color: #b63b2c !important;
-  background-color: #fff0f0 !important;
-}
-.form label {
-  margin-right: 1em;
-}
-.form .help {
-  color: #999999;
-  padding-top: .6em;
-  display: inline-block;
-}
-.form-stack label {
-  display: block;
-}
-.form-stack .field {
-  margin-bottom: 1em;
-}
-.form-align label,
-.form-align .form-label {
-  display: inline-block;
-  width: 120px;
-  text-align: right;
-  margin-right: 1em;
-}
-.form-align .field {
-  margin-bottom: 1em;
-}
-label.text-left {
-  text-align: left;
-}
-label.req:after {
-  content: "*";
-  color: #d9453d;
-}
-ul.menu > li {
-  list-style: none;
-}
-ul.menu > li > a {
-  padding: .8em 1.2em;
-}
-ul.menu > li > a:hover {
-  background-color: #eaeaea;
-  color: #444444;
-}
-ul.menu > li > a.active {
-  background-color: #4183c4;
-  color: #FFF;
-}
-ul.menu > li.current > a,
-ul.menu > li.hover > a {
-  color: #444444;
-}
-ul.menu > li.head {
-  font-weight: bold;
-  padding: .8em 1.2em;
-}
-ul.menu > li.down:hover > ul.menu-down {
-  display: block;
-}
-ul.menu > li.border-bottom {
-  border-bottom: 1px solid #bbbbbb;
-  height: 0;
-  margin: .5em 0;
-}
-ul.menu-line > li,
-ul.menu-line > li > a {
-  display: inline-block;
-}
-ul.menu-line > li.down {
-  position: relative;
-}
-ul.menu-line > li.down > a:after {
-  content: "\25BE";
-  margin-left: .4em;
-}
-ul.menu-line > li.down > ul.menu-down {
-  top: 2.1em;
-  width: 150%;
-}
-ul.menu-line > li.hover {
-  position: relative;
-}
-ul.menu-line > li.hover > a:after {
-  position: absolute;
-  content: "\25B4";
-  left: 50%;
-  bottom: -1.1em;
-  margin-left: -4px;
-}
-ul.menu-vertical > li > a,
-ul.menu-down > li > a,
-ul.menu-vertical > li.head,
-ul.menu-down > li.head {
-  display: block;
-  padding: .4em 1.2em;
-}
-ul.menu-vertical > li.down,
-ul.menu-down > li.down {
-  position: relative;
-}
-ul.menu-vertical > li.down > a:after,
-ul.menu-down > li.down > a:after {
-  content: "\25B8";
-  position: absolute;
-  right: .6em;
-}
-ul.menu-vertical > li.hover,
-ul.menu-down > li.hover {
-  position: relative;
-}
-ul.menu-vertical > li.hover > a:after,
-ul.menu-down > li.hover > a:after {
-  content: "\25B8";
-  position: absolute;
-  left: .5em;
-}
-ul.menu-border,
-ul.menu-down {
-  border: 1px solid #bbbbbb;
-}
-ul.menu-border > li.head,
-ul.menu-down > li.head {
-  border-bottom: 1px solid #bbbbbb;
-}
-ul.menu-down {
-  position: absolute;
-  display: none;
-  z-index: 99;
-  box-shadow: 0 0 2px #666666;
-  background-color: #ffffff;
-}
-ul.menu-down-show {
-  position: absolute;
-  z-index: 99;
-  box-shadow: 0 0 2px #666666;
-  background-color: #ffffff;
-}
-ul.menu-radius {
-  border-radius: .3em;
-}
-ul.menu-radius > li:first-child {
-  border-top-left-radius: .3em;
-  border-top-right-radius: .3em;
-}
-ul.menu-radius > li:first-child > a {
-  border-top-left-radius: .2em;
-  border-top-right-radius: .2em;
-}
-ul.menu-radius > li:last-child {
-  border-bottom-left-radius: .3em;
-  border-bottom-right-radius: .3em;
-}
-ul.menu-radius > li:last-child > a {
-  border-bottom-left-radius: .2em;
-  border-bottom-right-radius: .2em;
-}
-.drop {
-  position: relative;
-}
-.drop:hover > .drop-down {
-  position: absolute;
-  top: 0;
-  left: 0;
-  width: 200%;
-  display: block;
-}
-.drop > .drop-down {
-  display: none;
-  border: 1px solid #bbbbbb;
-  box-shadow: 0 0 3px #666666;
-  background-color: #ffffff;
-}
-.drop-bottom:after {
-  content: "\25BE";
-  margin-left: .4em;
-}
-.drop-top:after {
-  content: "\25B4";
-  margin-left: .4em;
-}
-.panel {
-  border: 1px solid #cccccc;
-}
-.panel .panel-header {
-  font-size: 16px;
-  padding: .6em 1.2em;
-  background-color: #eeeeee;
-  border-bottom: 1px solid #cccccc;
-}
-.panel .panel-body {
-  background-color: white;
-}
-.panel .panel-body .panel-desc {
-  padding: 0 40px 20px 40px;
-}
-.panel .panel-content {
-  padding: 1em 1.2em;
-}
-.panel .panel-footer {
-  padding: .6em 1.2em;
-  background-color: #eeeeee;
-  border-top: 1px solid #cccccc;
-}
-.panel.panel-radius {
-  border-radius: .3em;
-}
-.panel.panel-radius .panel-header {
-  border-top-left-radius: .3em;
-  border-top-right-radius: .3em;
-}
-.panel.panel-radius .panel-footer {
-  border-bottom-left-radius: .3em;
-  border-bottom-right-radius: .3em;
-}
-.panel.panel-radius .panel-content {
-  border-bottom-left-radius: .3em;
-  border-bottom-right-radius: .3em;
-}
-.panel.panel-info {
-  border-color: #85c5e5;
-}
-.panel.panel-info > .panel-header {
-  color: #31708f;
-  background-color: #d9edf7;
-  border-color: #85c5e5;
-}
-.panel.panel-warning {
-  border-color: #F0C36D;
-}
-.panel.panel-warning > .panel-header {
-  background-color: #F9EDBE;
-  border-color: #F0C36D;
-}
-.label {
-  padding: .3em .6em .2em .6em;
-  color: #ffffff;
-}
-.label-red {
-  background-color: #d9453d;
-}
-.label-blue {
-  background-color: #428bca;
-}
-.label-gray {
-  background-color: #999999;
-}
-.label-green {
-  background-color: #65ad4e;
-}
-.label-green:hover {
-  background-color: #71bf57;
-  color: #FFF;
-}
-.label-orange {
-  background-color: #df7514;
-}
-.label-black {
-  background-color: #444444;
-}
-.label-radius {
-  border-radius: .2em;
-}
-.label-link {
-  color: #ffffff;
-}
-.label-link:hover {
-  color: #ffffff;
-}
-.breads .bread:after {
-  content: "/";
-  font-weight: bold;
-  margin: 0 4px 0 7px;
-  color: #444444;
-}
-.breads .bread:last-child:after {
-  content: "";
-  margin: 0;
-}
-.alert {
-  padding: .6em 1.5em;
-  margin-bottom: 10px;
-}
-.alert i {
-  margin-right: 8px;
-}
-.alert-radius {
-  border-radius: .25em;
-}
-.alert-red {
-  color: #d9453d;
-  border: 1px solid #be2d25;
-  background-color: #fae9e8;
-}
-.alert-blue {
-  color: #428bca;
-  border: 1px solid #3071a9;
-  background-color: #f5f9fc;
-}
-.alert-green {
-  color: #65ad4e;
-  border: 1px solid #508a3e;
-  background-color: #edf6eb;
-}
-.alert-gray {
-  color: #999999;
-  border: 1px solid #808080;
-  background-color: #f2f2f2;
-}
-.alert-orange {
-  color: #df7514;
-  border: 1px solid #b05c10;
-  background-color: #fcecdd;
-}
-.white-popup-block {
-  background: #FFF;
-  padding: 20px 30px;
-  text-align: left;
-  max-width: 650px;
-  margin: 40px auto;
-  position: relative;
-}
-.white-popup-block p {
-  font-size: 14px;
-}
-table th,
-table td {
-  padding: .3em .6em;
-  line-height: 30px;
-}
-.table-border {
-  border: 1px solid #d6d6d6;
-}
-.table-border tr {
-  border-top: 1px solid #eaeaea;
-}
-.table-border tr th,
-.table-border tr td {
-  border-top: 1px solid #eaeaea;
-}
-.table-border tr:first-child {
-  border-top: none;
-}
-.table-border thead {
-  border-bottom: 1px solid #d6d6d6;
-}
-.table-block {
-  width: 100%;
-  box-sizing: border-box;
-}
-.table-radius {
-  border-collapse: separate !important;
-  border-radius: .3em;
-}
-.table-radius thead:first-child {
-  border-top-left-radius: .3em;
-  border-top-right-radius: .3em;
-}
-.table-radius thead:first-child tr:first-child {
-  border-top-left-radius: .3em;
-}
-.table-radius thead:first-child tr:first-child > th:first-child {
-  border-top-left-radius: .3em;
-}
-.table-radius thead:first-child tr:first-child > th:last-child {
-  border-top-right-radius: .3em;
-}
-.table-radius tbody {
-  border-bottom-left-radius: .3em;
-  border-bottom-right-radius: .3em;
-}
-.table-radius tbody tr:last-child {
-  border-bottom-left-radius: .3em;
-  border-bottom-right-radius: .3em;
-}
-.table-radius tbody tr:last-child > td:first-child {
-  border-bottom-left-radius: .3em;
-}
-.table-radius tbody tr:last-child > td:last-child {
-  border-bottom-right-radius: .3em;
-}
-.pager .page {
-  padding: .3em .5em .2em .5em;
-  margin: 0 .3em;
-  background-color: #cccccc;
-  color: #444444;
-}
-.pager .page:hover,
-.pager .page.hover {
-  background-color: #428bca;
-  color: #ffffff;
-}
-.pager .prev,
-.pager .next {
-  padding: .4em .6em;
-  margin: 0 .3em;
-  background-color: #505050;
-  color: #fafafa;
-}
-.pager .prev.invalid,
-.pager .next.invalid {
-  background-color: #eeeeee;
-  color: #aaaaaa;
-  cursor: not-allowed;
-}
-.pager .page-radius {
-  border-radius: .2em;
-}

BIN
public/ng/fonts/FontAwesome.otf


BIN
public/ng/fonts/fontawesome-webfont.eot


File diff suppressed because it is too large
+ 0 - 196
public/ng/fonts/fontawesome-webfont.svg


BIN
public/ng/fonts/fontawesome-webfont.ttf


BIN
public/ng/fonts/fontawesome-webfont.woff


BIN
public/ng/fonts/fontawesome-webfont.woff2


+ 0 - 235
public/ng/fonts/octicons.css

@@ -1,235 +0,0 @@
-@font-face {
-  font-family: 'octicons';
-  src: url('octicons.eot?#iefix') format('embedded-opentype'),
-       url('octicons.woff') format('woff'),
-       url('octicons.ttf') format('truetype'),
-       url('octicons.svg#octicons') format('svg');
-  font-weight: normal;
-  font-style: normal;
-}
-
-/*
-
-.octicon is optimized for 16px.
-.mega-octicon is optimized for 32px but can be used larger.
-
-*/
-.octicon, .mega-octicon {
-  font: normal normal normal 16px/1 octicons;
-  display: inline-block;
-  text-decoration: none;
-  text-rendering: auto;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-  -webkit-user-select: none;
-  -moz-user-select: none;
-  -ms-user-select: none;
-  user-select: none;
-}
-.mega-octicon { font-size: 32px; }
-
-
-.octicon-alert:before { content: '\f02d'} /*  */
-.octicon-alignment-align:before { content: '\f08a'} /*  */
-.octicon-alignment-aligned-to:before { content: '\f08e'} /*  */
-.octicon-alignment-unalign:before { content: '\f08b'} /*  */
-.octicon-arrow-down:before { content: '\f03f'} /*  */
-.octicon-arrow-left:before { content: '\f040'} /*  */
-.octicon-arrow-right:before { content: '\f03e'} /*  */
-.octicon-arrow-small-down:before { content: '\f0a0'} /*  */
-.octicon-arrow-small-left:before { content: '\f0a1'} /*  */
-.octicon-arrow-small-right:before { content: '\f071'} /*  */
-.octicon-arrow-small-up:before { content: '\f09f'} /*  */
-.octicon-arrow-up:before { content: '\f03d'} /*  */
-.octicon-beer:before { content: '\f069'} /*  */
-.octicon-book:before { content: '\f007'} /*  */
-.octicon-bookmark:before { content: '\f07b'} /*  */
-.octicon-briefcase:before { content: '\f0d3'} /*  */
-.octicon-broadcast:before { content: '\f048'} /*  */
-.octicon-browser:before { content: '\f0c5'} /*  */
-.octicon-bug:before { content: '\f091'} /*  */
-.octicon-calendar:before { content: '\f068'} /*  */
-.octicon-check:before { content: '\f03a'} /*  */
-.octicon-checklist:before { content: '\f076'} /*  */
-.octicon-chevron-down:before { content: '\f0a3'} /*  */
-.octicon-chevron-left:before { content: '\f0a4'} /*  */
-.octicon-chevron-right:before { content: '\f078'} /*  */
-.octicon-chevron-up:before { content: '\f0a2'} /*  */
-.octicon-circle-slash:before { content: '\f084'} /*  */
-.octicon-circuit-board:before { content: '\f0d6'} /*  */
-.octicon-clippy:before { content: '\f035'} /*  */
-.octicon-clock:before { content: '\f046'} /*  */
-.octicon-cloud-download:before { content: '\f00b'} /*  */
-.octicon-cloud-upload:before { content: '\f00c'} /*  */
-.octicon-code:before { content: '\f05f'} /*  */
-.octicon-color-mode:before { content: '\f065'} /*  */
-.octicon-comment-add:before,
-.octicon-comment:before { content: '\f02b'} /*  */
-.octicon-comment-discussion:before { content: '\f04f'} /*  */
-.octicon-credit-card:before { content: '\f045'} /*  */
-.octicon-dash:before { content: '\f0ca'} /*  */
-.octicon-dashboard:before { content: '\f07d'} /*  */
-.octicon-database:before { content: '\f096'} /*  */
-.octicon-device-camera:before { content: '\f056'} /*  */
-.octicon-device-camera-video:before { content: '\f057'} /*  */
-.octicon-device-desktop:before { content: '\f27c'} /*  */
-.octicon-device-mobile:before { content: '\f038'} /*  */
-.octicon-diff:before { content: '\f04d'} /*  */
-.octicon-diff-added:before { content: '\f06b'} /*  */
-.octicon-diff-ignored:before { content: '\f099'} /*  */
-.octicon-diff-modified:before { content: '\f06d'} /*  */
-.octicon-diff-removed:before { content: '\f06c'} /*  */
-.octicon-diff-renamed:before { content: '\f06e'} /*  */
-.octicon-ellipsis:before { content: '\f09a'} /*  */
-.octicon-eye-unwatch:before,
-.octicon-eye-watch:before,
-.octicon-eye:before { content: '\f04e'} /*  */
-.octicon-file-binary:before { content: '\f094'} /*  */
-.octicon-file-code:before { content: '\f010'} /*  */
-.octicon-file-directory:before { content: '\f016'} /*  */
-.octicon-file-media:before { content: '\f012'} /*  */
-.octicon-file-pdf:before { content: '\f014'} /*  */
-.octicon-file-submodule:before { content: '\f017'} /*  */
-.octicon-file-symlink-directory:before { content: '\f0b1'} /*  */
-.octicon-file-symlink-file:before { content: '\f0b0'} /*  */
-.octicon-file-text:before { content: '\f011'} /*  */
-.octicon-file-zip:before { content: '\f013'} /*  */
-.octicon-flame:before { content: '\f0d2'} /*  */
-.octicon-fold:before { content: '\f0cc'} /*  */
-.octicon-gear:before { content: '\f02f'} /*  */
-.octicon-gift:before { content: '\f042'} /*  */
-.octicon-gist:before { content: '\f00e'} /*  */
-.octicon-gist-secret:before { content: '\f08c'} /*  */
-.octicon-git-branch-create:before,
-.octicon-git-branch-delete:before,
-.octicon-git-branch:before { content: '\f020'} /*  */
-.octicon-git-commit:before { content: '\f01f'} /*  */
-.octicon-git-compare:before { content: '\f0ac'} /*  */
-.octicon-git-merge:before { content: '\f023'} /*  */
-.octicon-git-pull-request-abandoned:before,
-.octicon-git-pull-request:before { content: '\f009'} /*  */
-.octicon-globe:before { content: '\f0b6'} /*  */
-.octicon-graph:before { content: '\f043'} /*  */
-.octicon-heart:before { content: '\2665'} /* ♥ */
-.octicon-history:before { content: '\f07e'} /*  */
-.octicon-home:before { content: '\f08d'} /*  */
-.octicon-horizontal-rule:before { content: '\f070'} /*  */
-.octicon-hourglass:before { content: '\f09e'} /*  */
-.octicon-hubot:before { content: '\f09d'} /*  */
-.octicon-inbox:before { content: '\f0cf'} /*  */
-.octicon-info:before { content: '\f059'} /*  */
-.octicon-issue-closed:before { content: '\f028'} /*  */
-.octicon-issue-opened:before { content: '\f026'} /*  */
-.octicon-issue-reopened:before { content: '\f027'} /*  */
-.octicon-jersey:before { content: '\f019'} /*  */
-.octicon-jump-down:before { content: '\f072'} /*  */
-.octicon-jump-left:before { content: '\f0a5'} /*  */
-.octicon-jump-right:before { content: '\f0a6'} /*  */
-.octicon-jump-up:before { content: '\f073'} /*  */
-.octicon-key:before { content: '\f049'} /*  */
-.octicon-keyboard:before { content: '\f00d'} /*  */
-.octicon-law:before { content: '\f0d8'} /*  */
-.octicon-light-bulb:before { content: '\f000'} /*  */
-.octicon-link:before { content: '\f05c'} /*  */
-.octicon-link-external:before { content: '\f07f'} /*  */
-.octicon-list-ordered:before { content: '\f062'} /*  */
-.octicon-list-unordered:before { content: '\f061'} /*  */
-.octicon-location:before { content: '\f060'} /*  */
-.octicon-gist-private:before,
-.octicon-mirror-private:before,
-.octicon-git-fork-private:before,
-.octicon-lock:before { content: '\f06a'} /*  */
-.octicon-logo-github:before { content: '\f092'} /*  */
-.octicon-mail:before { content: '\f03b'} /*  */
-.octicon-mail-read:before { content: '\f03c'} /*  */
-.octicon-mail-reply:before { content: '\f051'} /*  */
-.octicon-mark-github:before { content: '\f00a'} /*  */
-.octicon-markdown:before { content: '\f0c9'} /*  */
-.octicon-megaphone:before { content: '\f077'} /*  */
-.octicon-mention:before { content: '\f0be'} /*  */
-.octicon-microscope:before { content: '\f089'} /*  */
-.octicon-milestone:before { content: '\f075'} /*  */
-.octicon-mirror-public:before,
-.octicon-mirror:before { content: '\f024'} /*  */
-.octicon-mortar-board:before { content: '\f0d7'} /*  */
-.octicon-move-down:before { content: '\f0a8'} /*  */
-.octicon-move-left:before { content: '\f074'} /*  */
-.octicon-move-right:before { content: '\f0a9'} /*  */
-.octicon-move-up:before { content: '\f0a7'} /*  */
-.octicon-mute:before { content: '\f080'} /*  */
-.octicon-no-newline:before { content: '\f09c'} /*  */
-.octicon-octoface:before { content: '\f008'} /*  */
-.octicon-organization:before { content: '\f037'} /*  */
-.octicon-package:before { content: '\f0c4'} /*  */
-.octicon-paintcan:before { content: '\f0d1'} /*  */
-.octicon-pencil:before { content: '\f058'} /*  */
-.octicon-person-add:before,
-.octicon-person-follow:before,
-.octicon-person:before { content: '\f018'} /*  */
-.octicon-pin:before { content: '\f041'} /*  */
-.octicon-playback-fast-forward:before { content: '\f0bd'} /*  */
-.octicon-playback-pause:before { content: '\f0bb'} /*  */
-.octicon-playback-play:before { content: '\f0bf'} /*  */
-.octicon-playback-rewind:before { content: '\f0bc'} /*  */
-.octicon-plug:before { content: '\f0d4'} /*  */
-.octicon-repo-create:before,
-.octicon-gist-new:before,
-.octicon-file-directory-create:before,
-.octicon-file-add:before,
-.octicon-plus:before { content: '\f05d'} /*  */
-.octicon-podium:before { content: '\f0af'} /*  */
-.octicon-primitive-dot:before { content: '\f052'} /*  */
-.octicon-primitive-square:before { content: '\f053'} /*  */
-.octicon-pulse:before { content: '\f085'} /*  */
-.octicon-puzzle:before { content: '\f0c0'} /*  */
-.octicon-question:before { content: '\f02c'} /*  */
-.octicon-quote:before { content: '\f063'} /*  */
-.octicon-radio-tower:before { content: '\f030'} /*  */
-.octicon-repo-delete:before,
-.octicon-repo:before { content: '\f001'} /*  */
-.octicon-repo-clone:before { content: '\f04c'} /*  */
-.octicon-repo-force-push:before { content: '\f04a'} /*  */
-.octicon-gist-fork:before,
-.octicon-repo-forked:before { content: '\f002'} /*  */
-.octicon-repo-pull:before { content: '\f006'} /*  */
-.octicon-repo-push:before { content: '\f005'} /*  */
-.octicon-rocket:before { content: '\f033'} /*  */
-.octicon-rss:before { content: '\f034'} /*  */
-.octicon-ruby:before { content: '\f047'} /*  */
-.octicon-screen-full:before { content: '\f066'} /*  */
-.octicon-screen-normal:before { content: '\f067'} /*  */
-.octicon-search-save:before,
-.octicon-search:before { content: '\f02e'} /*  */
-.octicon-server:before { content: '\f097'} /*  */
-.octicon-settings:before { content: '\f07c'} /*  */
-.octicon-log-in:before,
-.octicon-sign-in:before { content: '\f036'} /*  */
-.octicon-log-out:before,
-.octicon-sign-out:before { content: '\f032'} /*  */
-.octicon-split:before { content: '\f0c6'} /*  */
-.octicon-squirrel:before { content: '\f0b2'} /*  */
-.octicon-star-add:before,
-.octicon-star-delete:before,
-.octicon-star:before { content: '\f02a'} /*  */
-.octicon-steps:before { content: '\f0c7'} /*  */
-.octicon-stop:before { content: '\f08f'} /*  */
-.octicon-repo-sync:before,
-.octicon-sync:before { content: '\f087'} /*  */
-.octicon-tag-remove:before,
-.octicon-tag-add:before,
-.octicon-tag:before { content: '\f015'} /*  */
-.octicon-telescope:before { content: '\f088'} /*  */
-.octicon-terminal:before { content: '\f0c8'} /*  */
-.octicon-three-bars:before { content: '\f05e'} /*  */
-.octicon-tools:before { content: '\f031'} /*  */
-.octicon-trashcan:before { content: '\f0d0'} /*  */
-.octicon-triangle-down:before { content: '\f05b'} /*  */
-.octicon-triangle-left:before { content: '\f044'} /*  */
-.octicon-triangle-right:before { content: '\f05a'} /*  */
-.octicon-triangle-up:before { content: '\f0aa'} /*  */
-.octicon-unfold:before { content: '\f039'} /*  */
-.octicon-unmute:before { content: '\f0ba'} /*  */
-.octicon-versions:before { content: '\f064'} /*  */
-.octicon-remove-close:before,
-.octicon-x:before { content: '\f081'} /*  */
-.octicon-zap:before { content: '\26A1'} /* ⚡ */

BIN
public/ng/fonts/octicons.eot


File diff suppressed because it is too large
+ 0 - 91
public/ng/fonts/octicons.svg


BIN
public/ng/fonts/octicons.ttf


BIN
public/ng/fonts/octicons.woff


+ 0 - 970
public/ng/js/gogs.js

@@ -1,970 +0,0 @@
-// @codekit-prepend "lib/jquery-1.11.1.min.js"
-// @codekit-prepend "lib/lib.js"
-// @codekit-prepend "utils/tabs.js"
-// @codekit-prepend "utils/preview.js"
-// @codekit-prepend "gogs/issue_label.js"
-// @codekit-prepend "lib/jquery.tipsy.js"
-
-var Gogs = {};
-
-(function ($) {
-    // Extend jQuery ajax, set CSRF token value.
-    var ajax = $.ajax;
-    $.extend({
-        ajax: function (url, options) {
-            if (typeof url === 'object') {
-                options = url;
-                url = undefined;
-            }
-            options = options || {};
-            url = options.url;
-            var csrftoken = $('meta[name=_csrf]').attr('content');
-            var headers = options.headers || {};
-            var domain = document.domain.replace(/\./ig, '\\.');
-            if (!/^(http:|https:).*/.test(url) || eval('/^(http:|https:)\\/\\/(.+\\.)*' + domain + '.*/').test(url)) {
-                headers = $.extend(headers, {'X-Csrf-Token': csrftoken});
-            }
-            options.headers = headers;
-            var callback = options.success;
-            options.success = function (data) {
-                if (data.once) {
-                    // change all _once value if ajax data.once exist
-                    $('[name=_once]').val(data.once);
-                }
-                if (callback) {
-                    callback.apply(this, arguments);
-                }
-            };
-            return ajax(url, options);
-        },
-
-        changeHash: function (hash) {
-            if (history.pushState) {
-                history.pushState(null, null, hash);
-            }
-            else {
-                location.hash = hash;
-            }
-        },
-
-        deSelect: function () {
-            if (window.getSelection) {
-                window.getSelection().removeAllRanges();
-            } else {
-                document.selection.empty();
-            }
-        }
-    });
-    $.fn.extend({
-        toggleHide: function () {
-            $(this).each(function(n, v) { $(v).addClass("hidden"); });
-        },
-        toggleShow: function () {
-            $(this).each(function(n, v) { $(v).removeClass("hidden"); });
-        },
-        toggleAjax: function (successCallback, errorCallback) {
-            var url = $(this).data("ajax");
-            var method = $(this).data('ajax-method') || 'get';
-            var ajaxName = $(this).data('ajax-name');
-            var data = {};
-
-            if (ajaxName.endsWith("preview")) {
-                data["mode"] = "gfm";
-                data["context"] = $(this).data('ajax-context');
-            }
-
-            $('[data-ajax-rel=' + ajaxName + ']').each(function () {
-                var field = $(this).data("ajax-field");
-                var t = $(this).data("ajax-val");
-                if (t == "val") {
-                    data[field] = $(this).val();
-                    return true;
-                }
-                if (t == "txt") {
-                    data[field] = $(this).text();
-                    return true;
-                }
-                if (t == "html") {
-                    data[field] = $(this).html();
-                    return true;
-                }
-                if (t == "data") {
-                    data[field] = $(this).data("ajax-data");
-                    return true;
-                }
-                return true;
-            });
-            console.log("toggleAjax:", method, url, data);
-            $.ajax({
-                url: url,
-                method: method.toUpperCase(),
-                data: data,
-                error: errorCallback,
-                success: function (d) {
-                    if (successCallback) {
-                        successCallback(d);
-                    }
-                }
-            })
-        }
-    });
-}(jQuery));
-
-(function ($) {
-    // Render markdown.
-    Gogs.renderMarkdown = function () {
-        var $md = $('.markdown');
-        var $pre = $md.find('pre > code').parent();
-        $pre.addClass('prettyprint');
-        prettyPrint();
-
-        // Set anchor.
-        var headers = {};
-        $md.find('h1, h2, h3, h4, h5, h6').each(function () {
-            var node = $(this);
-            var val = encodeURIComponent(node.text().toLowerCase().replace(/[^\w\- ]/g, '').replace(/[ ]/g, '-'));
-            var name = val;
-            if (headers[val] > 0) {
-                name = val + '-' + headers[val];
-            }
-            if (headers[val] == undefined) {
-                headers[val] = 1;
-            } else {
-                headers[val] += 1;
-            }
-            node = node.wrap('<div id="' + name + '" class="anchor-wrap" ></div>');
-            node.append('<a class="anchor" href="#' + name + '"><span class="octicon octicon-link"></span></a>');
-        });
-    };
-
-    // Render code view.
-    Gogs.renderCodeView = function () {
-        function selectRange($list, $select, $from) {
-            $list.removeClass('active');
-            if ($from) {
-                var a = parseInt($select.attr('rel').substr(1));
-                var b = parseInt($from.attr('rel').substr(1));
-                var c;
-                if (a != b) {
-                    if (a > b) {
-                        c = a;
-                        a = b;
-                        b = c;
-                    }
-                    var classes = [];
-                    for (i = a; i <= b; i++) {
-                        classes.push('.L' + i);
-                    }
-                    $list.filter(classes.join(',')).addClass('active');
-                    $.changeHash('#L' + a + '-' + 'L' + b);
-                    return
-                }
-            }
-            $select.addClass('active');
-            $.changeHash('#' + $select.attr('rel'));
-        }
-
-        $(document).on('click', '.lines-num span', function (e) {
-            var $select = $(this);
-            var $list = $select.parent().siblings('.lines-code').find('ol.linenums > li');
-            selectRange($list, $list.filter('[rel=' + $select.attr('rel') + ']'), (e.shiftKey ? $list.filter('.active').eq(0) : null));
-            $.deSelect();
-        });
-
-        $('.code-view .lines-code > pre').each(function () {
-            var $pre = $(this);
-            var $lineCode = $pre.parent();
-            var $lineNums = $lineCode.siblings('.lines-num');
-            if ($lineNums.length > 0) {
-                var nums = $pre.find('ol.linenums > li').length;
-                for (var i = 1; i <= nums; i++) {
-                    $lineNums.append('<span id="L' + i + '" rel="L' + i + '">' + i + '</span>');
-                }
-            }
-        });
-
-        $(window).on('hashchange', function (e) {
-            var m = window.location.hash.match(/^#(L\d+)\-(L\d+)$/);
-            var $list = $('.code-view ol.linenums > li');
-            var $first;
-            if (m) {
-                $first = $list.filter('.' + m[1]);
-                selectRange($list, $first, $list.filter('.' + m[2]));
-                $("html, body").scrollTop($first.offset().top - 200);
-                return;
-            }
-            m = window.location.hash.match(/^#(L\d+)$/);
-            if (m) {
-                $first = $list.filter('.' + m[1]);
-                selectRange($list, $first);
-                $("html, body").scrollTop($first.offset().top - 200);
-            }
-        }).trigger('hashchange');
-    };
-
-    // Render diff view.
-    Gogs.renderDiffView = function () {
-        function selectRange($list, $select, $from) {
-            $list.removeClass('active');
-            $list.parents('tr').removeClass('end-selected-line');
-            $list.parents('tr').find('td').removeClass('selected-line');
-            if ($from) {
-                var expr = new RegExp(/diff-(\w+)([LR]\d+)/);
-                var selectMatches = $select.attr('rel').match(expr)
-                var fromMatches = $from.attr('rel').match(expr)
-                var selectTop = $select.offset().top;
-                var fromTop = $from.offset().top;
-                var hash;
-
-                if (selectMatches[2] != fromMatches[2]) {
-                    if ((selectTop > fromTop)) {
-                        $startElem = $from;
-                        $endElem = $select;
-                        hash = fromMatches[1]+fromMatches[2] + '-' + selectMatches[2];
-                    } else {
-                        $startElem = $select;
-                        $endElem = $from;
-                        hash = selectMatches[1]+selectMatches[2] + '-' + fromMatches[2];
-                    }
-                    $endElem.parents('tr').next().addClass('end-selected-line');
-                    var $selectedLines = $startElem.parents('tr').nextUntil('.end-selected-line').andSelf();
-                    $selectedLines.find('td.lines-num > span').addClass('active')
-                    $selectedLines.find('td').addClass('selected-line');
-                    $.changeHash('#diff-'+hash);
-                    return
-                }
-            }
-            $select.addClass('active');
-            $select.parents('tr').find('td').addClass('selected-line');
-            $.changeHash('#' + $select.attr('rel'));
-        }
-
-        $(document).on('click', '.code-diff .lines-num span', function (e) {
-            var $select = $(this);
-            var $list = $select.parent().siblings('.lines-code').parents().find('td.lines-num > span');
-            selectRange(
-                $list,
-                $list.filter('[rel=' + $select.attr('rel') + ']'),
-                (e.shiftKey && $list.filter('.active').length ? $list.filter('.active').eq(0) : null)
-            );
-            $.deSelect();
-        });
-
-        $('.code-diff .lines-code > pre').each(function () {
-            var $pre = $(this);
-            var $lineCode = $pre.parent();
-            var $lineNums = $lineCode.siblings('.lines-num');
-            if ($lineNums.length > 0) {
-                var nums = $pre.find('ol.linenums > li').length;
-                for (var i = 1; i <= nums; i++) {
-                    $lineNums.append('<span id="L' + i + '" rel="L' + i + '">' + i + '</span>');
-                }
-            }
-        });
-
-        $(window).on('hashchange', function (e) {
-            var m = window.location.hash.match(/^#diff-(\w+)([LR]\d+)\-([LR]\d+)$/);
-            var $list = $('.code-diff td.lines-num > span');
-            var $first;
-            if (m) {
-                $first = $list.filter('[rel=diff-' + m[1] + m[2] + ']');
-                selectRange($list, $first, $list.filter('[rel=diff-' + m[1] + m[3] + ']'));
-                $("html, body").scrollTop($first.offset().top - 200);
-                return;
-            }
-            m = window.location.hash.match(/^#diff-(\w+)([LR]\d+)$/);
-            if (m) {
-                $first = $list.filter('[rel=diff-' + m[1] + m[2] + ']');
-                selectRange($list, $first);
-                $("html, body").scrollTop($first.offset().top - 200);
-            }
-        }).trigger('hashchange');
-    };
-
-    // Search users by keyword.
-    Gogs.searchUsers = function (val, $target) {
-        var notEmpty = function (str) {
-          return str && str.length > 0;
-        }
-        $.ajax({
-            url: Gogs.AppSubUrl + '/api/v1/users/search?q=' + val,
-            dataType: "json",
-            success: function (json) {
-                if (json.ok && json.data.length) {
-                    var html = '';
-                    $.each(json.data, function (i, item) {
-                        html += '<li><a><img src="' + item.avatar_url + '"><span class="username">' + item.username + '</span>';
-                        if (notEmpty(item.full_name)) {
-                          html += ' (' + item.full_name + ')';
-                        }
-                        html += '</a></li>';
-                    });
-                    $target.html(html);
-                    $target.toggleShow();
-                } else {
-                    $target.toggleHide();
-                }
-            }
-        });
-    }
-
-    // Search repositories by keyword.
-    Gogs.searchRepos = function (val, $target, $param) {
-        $.ajax({
-            url: Gogs.AppSubUrl + '/api/v1/repos/search?q=' + val + '&' + $param,
-            dataType: "json",
-            success: function (json) {
-                if (json.ok && json.data.length) {
-                    var html = '';
-                    $.each(json.data, function (i, item) {
-                        html += '<li><a><span class="octicon octicon-repo"></span> ' + item.full_name + '</a></li>';
-                    });
-                    $target.html(html);
-                    $target.toggleShow();
-                } else {
-                    $target.toggleHide();
-                }
-            }
-        });
-    }
-
-    // Copy util.
-    Gogs.bindCopy = function (selector) {
-        if ($(selector).hasClass('js-copy-bind')) {
-            return;
-        }
-
-        if ( document.documentElement.classList.contains("is-copy-enabled") ) {
-
-            $(selector).click(function(event) {
-                var $this = $(this);
-
-                var cfrom = $this.attr('data-copy-from');
-                $(cfrom).select();
-                document.execCommand('copy');
-                getSelection().removeAllRanges();
-
-                $this.tipsy("hide").attr('original-title', $this.data('after-title'));
-                setTimeout(function () {
-                    $this.tipsy("show");
-                }, 200);
-                setTimeout(function () {
-                    $this.tipsy('hide').attr('original-title', $this.data('original-title'));
-                }, 2000);
-                
-                this.blur();
-                return;
-            });
-
-            $(selector).addClass("js-copy-bind");
-
-        } else {
-
-            $(selector).zclip({
-                path: Gogs.AppSubUrl + "/js/ZeroClipboard.swf",
-                copy: function () {
-                    var t = $(this).data("copy-val");
-                    var to = $($(this).data("copy-from"));
-                    var str = "";
-                    if (t == "txt") {
-                        str = to.text();
-                    }
-                    if (t == 'val') {
-                        str = to.val();
-                    }
-                    if (t == 'html') {
-                        str = to.html();
-                    }
-                    return str;
-                },
-                afterCopy: function () {
-                    var $this = $(this);
-                    $this.tipsy("hide").attr('original-title', $this.data('after-title'));
-                    setTimeout(function () {
-                        $this.tipsy("show");
-                    }, 200);
-                    setTimeout(function () {
-                        $this.tipsy('hide').attr('original-title', $this.data('original-title'));
-                    }, 2000);
-                }
-            }).addClass("js-copy-bind");
-        }
-    }
-})(jQuery);
-
-function initCore() {
-    Gogs.renderMarkdown();
-
-    if ($('.code-diff').length == 0) {
-        Gogs.renderCodeView();
-    } else {
-        Gogs.renderDiffView();
-    }
-
-    // Switch list.
-    $('.js-tab-nav').click(function (e) {
-        if (!$(this).hasClass('js-tab-nav-show')) {
-            $(this).parent().find('.js-tab-nav-show').each(function () {
-                $(this).removeClass('js-tab-nav-show');
-                $($(this).data('tab-target')).hide();
-            });
-            $(this).addClass('js-tab-nav-show');
-            $($(this).data('tab-target')).show();
-        }
-        e.preventDefault();
-    });
-
-    // Popup.
-    $(document).on('click', '.popup-modal-dismiss', function (e) {
-        e.preventDefault();
-        $.magnificPopup.close();
-    });
-
-    // Plugins.
-    $('.collapse').hide();
-    $('.tipsy-tooltip').tipsy({
-        fade: true
-    });
-}
-
-function initUserSetting() {
-    // Confirmation of change username in user profile page.
-    var $username = $('#username');
-    var $profile_form = $('#user-profile-form');
-    $('#change-username-btn').magnificPopup({
-        modal: true,
-        callbacks: {
-            open: function () {
-                if (($username.data('uname') == $username.val())) {
-                    $.magnificPopup.close();
-                    $profile_form.submit();
-                }
-            }
-        }
-    }).click(function () {
-        if (($username.data('uname') != $username.val())) {
-            e.preventDefault();
-            return true;
-        }
-    });
-    $('#change-username-submit').click(function () {
-        $.magnificPopup.close();
-        $profile_form.submit();
-    });
-
-    // Show panels.
-    $('.show-form-btn').click(function () {
-        $($(this).data('target-form')).removeClass("hide");
-    });
-
-    // Confirmation of delete account.
-    $('#delete-account-btn').magnificPopup({
-        modal: true
-    }).click(function (e) {
-        e.preventDefault();
-        return true;
-    });
-    $('#delete-account-submit').click(function () {
-        $.magnificPopup.close();
-        $('#delete-account-form').submit();
-    });
-}
-
-function initRepoCreate() {
-    // Owner switch menu click.
-    $('#repo-create-owner-list').on('click', 'li', function () {
-        if (!$(this).hasClass('checked')) {
-            var uid = $(this).data('uid');
-            $('#repo-owner-id').val(uid);
-            $('#repo-owner-avatar').attr("src", $(this).find('img').attr("src"));
-            $('#repo-owner-name').text($(this).text().trim());
-
-            $(this).parent().find('.checked').removeClass('checked');
-            $(this).addClass('checked');
-            console.log("set repo owner to uid :", uid, $(this).text().trim());
-        }
-    });
-
-    $('#auth-button').click(function (e) {
-        $('#repo-migrate-auth').slideToggle('fast');
-        e.preventDefault();
-    })
-    console.log('initRepoCreate');
-}
-
-function initRepo() {
-    // Clone link switch button.
-    $('#repo-clone-ssh').click(function () {
-        $(this).removeClass('btn-gray').addClass('btn-blue');
-        $('#repo-clone-https').removeClass('btn-blue').addClass('btn-gray');
-        $('#repo-clone-url').val($(this).data('link'));
-        $('.clone-url').text($(this).data('link'))
-    });
-    $('#repo-clone-https').click(function () {
-        $(this).removeClass('btn-gray').addClass('btn-blue');
-        $('#repo-clone-ssh').removeClass('btn-blue').addClass('btn-gray');
-        $('#repo-clone-url').val($(this).data('link'));
-        $('.clone-url').text($(this).data('link'))
-    });
-
-    // Copy URL.
-    var $clone_btn = $('#repo-clone-copy');
-    $clone_btn.hover(function () {
-        Gogs.bindCopy($(this));
-    })
-    $clone_btn.tipsy({
-        fade: true
-    });
-
-    // Markdown preview.
-    $('.markdown-preview').click(function() {
-        var $this = $(this);
-        $this.toggleAjax(function (resp) {
-            $($this.data("preview")).html(resp);
-        }, function () {
-            $($this.data("preview")).html("no content");
-        })
-    });
-}
-
-// when user changes hook type, hide/show proper divs
-function initHookTypeChange() {
-    // web hook type change
-    $('select#hook-type').on("change", function () {
-        hookTypes = ['Gogs', 'Slack'];
-
-        var curHook = $(this).val();
-        hookTypes.forEach(function (hookType) {
-            if (curHook === hookType) {
-                $('div#' + hookType.toLowerCase()).toggleShow();
-            }
-            else {
-                $('div#' + hookType.toLowerCase()).toggleHide();
-            }
-        });
-    });
-}
-
-function initRepoRelease() {
-    $('#release-new-target-branch-list li').click(function() {
-        if (!$(this).hasClass('checked')) {
-            $('#repo-branch-current').text($(this).text());
-            $('#tag-target').val($(this).text());
-
-            $(this).parent().find('.checked').removeClass('checked');
-            $(this).addClass('checked');
-        }
-    })
-}
-
-function initRepoSetting() {
-    // Options.
-    // Confirmation of changing repository name.
-    var $reponame = $('#repo_name');
-    var $setting_form = $('#repo-setting-form');
-    $('#change-reponame-btn').magnificPopup({
-        modal: true,
-        callbacks: {
-            open: function () {
-                if (($reponame.data('repo-name') == $reponame.val())) {
-                    $.magnificPopup.close();
-                    $setting_form.submit();
-                }
-            }
-        }
-    }).click(function () {
-        if (($reponame.data('repo-name') != $reponame.val())) {
-            e.preventDefault();
-            return true;
-        }
-    });
-    $('#change-reponame-submit').click(function () {
-        $.magnificPopup.close();
-        $setting_form.submit();
-    });
-
-    initHookTypeChange();
-
-    // Transfer repository.
-    $('#transfer-repo-btn').magnificPopup({
-        modal: true
-    });
-    $('#transfer-repo-submit').click(function () {
-        $.magnificPopup.close();
-        $('#transfer-repo-form').submit();
-    });
-
-    // Delete repository.
-    $('#delete-repo-btn').magnificPopup({
-        modal: true
-    });
-    $('#delete-repo-submit').click(function () {
-        $.magnificPopup.close();
-        $('#delete-repo-form').submit();
-    });
-
-    // Collaboration.
-    $('#repo-collab-list hr:last-child').remove();
-    var $ul = $('#repo-collaborator').next().next().find('ul');
-    $('#repo-collaborator').on('keyup', function () {
-        var $this = $(this);
-        if (!$this.val()) {
-            $ul.toggleHide();
-            return;
-        }
-        Gogs.searchUsers($this.val(), $ul);
-    }).on('focus', function () {
-        if (!$(this).val()) {
-            $ul.toggleHide();
-        } else {
-            $ul.toggleShow();
-        }
-    }).next().next().find('ul').on("click", 'li', function () {
-        $('#repo-collaborator').val($(this).find('.username').text());
-        $ul.toggleHide();
-    });
-}
-
-function initOrgSetting() {
-    // Options.
-    // Confirmation of changing organization name.
-    var $orgname = $('#orgname');
-    var $setting_form = $('#org-setting-form');
-    $('#change-orgname-btn').magnificPopup({
-        modal: true,
-        callbacks: {
-            open: function () {
-                if (($orgname.data('orgname') == $orgname.val())) {
-                    $.magnificPopup.close();
-                    $setting_form.submit();
-                }
-            }
-        }
-    }).click(function () {
-        if (($orgname.data('orgname') != $orgname.val())) {
-            e.preventDefault();
-            return true;
-        }
-    });
-    $('#change-orgname-submit').click(function () {
-        $.magnificPopup.close();
-        $setting_form.submit();
-    });
-
-    // Confirmation of delete organization.
-    $('#delete-org-btn').magnificPopup({
-        modal: true
-    }).click(function (e) {
-        e.preventDefault();
-        return true;
-    });
-    $('#delete-org-submit').click(function () {
-        $.magnificPopup.close();
-        $('#delete-org-form').submit();
-    });
-
-    initHookTypeChange();
-}
-
-function initInvite() {
-    // Invitation.
-    var $ul = $('#org-member-invite-list');
-    $('#org-member-invite').on('keyup', function () {
-        var $this = $(this);
-        if (!$this.val()) {
-            $ul.toggleHide();
-            return;
-        }
-        Gogs.searchUsers($this.val(), $ul);
-    }).on('focus', function () {
-        if (!$(this).val()) {
-            $ul.toggleHide();
-        } else {
-            $ul.toggleShow();
-        }
-    }).next().next().find('ul').on("click", 'li', function () {
-        $('#org-member-invite').val($(this).find('.username').text());
-        $ul.toggleHide();
-    });
-}
-
-function initOrgTeamCreate() {
-    // Delete team.
-    $('#org-team-delete').magnificPopup({
-        modal: true
-    }).click(function (e) {
-        e.preventDefault();
-        return true;
-    });
-    $('#delete-team-submit').click(function () {
-        $.magnificPopup.close();
-        var $form = $('#team-create-form');
-        $form.attr('action', $form.data('delete-url'));
-    });
-}
-
-function initTeamMembersList() {
-    // Add team member.
-    var $ul = $('#org-team-members-list');
-    $('#org-team-members-add').on('keyup', function () {
-        var $this = $(this);
-        if (!$this.val()) {
-            $ul.toggleHide();
-            return;
-        }
-        Gogs.searchUsers($this.val(), $ul);
-    }).on('focus', function () {
-        if (!$(this).val()) {
-            $ul.toggleHide();
-        } else {
-            $ul.toggleShow();
-        }
-    }).next().next().find('ul').on("click", 'li', function () {
-        $('#org-team-members-add').val($(this).find('.username').text());
-        $ul.toggleHide();
-    });
-}
-
-function initTeamRepositoriesList() {
-    // Add team repository.
-    var $ul = $('#org-team-repositories-list');
-    $('#org-team-repositories-add').on('keyup', function () {
-        var $this = $(this);
-        if (!$this.val()) {
-            $ul.toggleHide();
-            return;
-        }
-        Gogs.searchRepos($this.val(), $ul, 'uid=' + $this.data('uid'));
-    }).on('focus', function () {
-        if (!$(this).val()) {
-            $ul.toggleHide();
-        } else {
-            $ul.toggleShow();
-        }
-    }).next().next().find('ul').on("click", 'li', function () {
-        $('#org-team-repositories-add').val($(this).text());
-        $ul.toggleHide();
-    });
-}
-
-function initAdmin() {
-    // Create account.
-    $('#login-type').on("change", function () {
-        var v = $(this).val();
-        if (v.indexOf("0-") + 1) {
-            $('.auth-name').toggleHide();
-            $(".pwd").find("input").attr("required", "required")
-                .end().toggleShow();
-        } else {
-            $(".pwd").find("input").removeAttr("required")
-                .end().toggleHide();
-            $('.auth-name').toggleShow();
-        }
-    });
-
-    // Delete account.
-    $('#delete-account-btn').magnificPopup({
-        modal: true
-    }).click(function (e) {
-        e.preventDefault();
-        return true;
-    });
-    $('#delete-account-submit').click(function () {
-        $.magnificPopup.close();
-        var $form = $('#user-profile-form');
-        $form.attr('action', $form.data('delete-url'));
-    });
-
-    // Create authorization. Keep list in sync with models/login.go.
-    var all_auths = ['none', 'plain', 'ldap', 'dldap', 'smtp', 'pam'];
-    $('#auth-type').on("change", function () {
-        var v = $(this).val();
-        if (v >= all_auths.length) return;
-
-        // Hide all through their class names.
-        $.each(all_auths, function(i, type) {
-          $('.' + type).toggleHide();
-        });
-
-        // Show the selected one.
-        var selected = all_auths[v];
-        $('.' + selected).toggleShow();
-    });
-
-    // Delete authorization.
-    $('#delete-auth-btn').magnificPopup({
-        modal: true
-    }).click(function (e) {
-        e.preventDefault();
-        return true;
-    });
-    $('#delete-auth-submit').click(function () {
-        $.magnificPopup.close();
-        var $form = $('#auth-setting-form');
-        $form.attr('action', $form.data('delete-url'));
-    });
-}
-
-function initInstall() {
-    // Change database type.
-    (function () {
-        var mysql_default = '127.0.0.1:3306';
-        var postgres_default = '127.0.0.1:5432';
-
-        $('#install-database').on("change", function () {
-            var val = $(this).val();
-            if (val != "SQLite3") {
-                $('.server-sql').show();
-                $('.sqlite-setting').addClass("hide");
-                if (val == "PostgreSQL") {
-                    $('.pgsql-setting').removeClass("hide");
-
-                    // Change the host value to the Postgres default, but only
-                    // if the user hasn't already changed it from the MySQL
-                    // default.
-                    if ($('#database-host').val() == mysql_default) {
-                        $('#database-host').val(postgres_default);
-                    }
-                } else if (val == 'MySQL') {
-                    $('.pgsql-setting').addClass("hide");
-                    if ($('#database-host').val() == postgres_default) {
-                        $('#database-host').val(mysql_default);
-                    }
-                } else {
-                    $('.pgsql-setting').addClass("hide");
-                }
-            } else {
-                $('.server-sql').hide();
-                $('.pgsql-setting').hide();
-                $('.sqlite-setting').removeClass("hide");
-            }
-        });
-    }());
-}
-
-function initProfile() {
-    // Avatar.
-    $('#profile-avatar').tipsy({
-        fade: true
-    });
-}
-
-function initTimeSwitch() {
-    // Time switch.
-    $(".time-since[title]").on("click", function () {
-        var $this = $(this);
-
-        var title = $this.attr("title");
-        var text = $this.text();
-
-        $this.text(title);
-        $this.attr("title", text);
-    });
-}
-
-function initDiff() {
-    $('.diff-detail-box>a').click(function () {
-        $($(this).data('target')).slideToggle(100);
-    })
-
-    var $counter = $('.diff-counter');
-    if ($counter.length < 1) {
-        return;
-    }
-    $counter.each(function (i, item) {
-        var $item = $(item);
-        var addLine = $item.find('span[data-line].add').data("line");
-        var delLine = $item.find('span[data-line].del').data("line");
-        var addPercent = parseFloat(addLine) / (parseFloat(addLine) + parseFloat(delLine)) * 100;
-        $item.find(".bar .add").css("width", addPercent + "%");
-    });
-}
-
-$(document).ready(function () {
-    Gogs.AppSubUrl = $('head').data('suburl') || '';
-    initCore();
-    if ($('#user-profile-setting').length) {
-        initUserSetting();
-    }
-    if ($('#repo-create-form').length || $('#repo-migrate-form').length) {
-        initRepoCreate();
-    }
-    if ($('#repo-header').length) {
-        initTimeSwitch();
-        initRepo();
-    }
-    if ($('#release').length) {
-        initRepoRelease();
-    }
-    if ($('#repo-setting').length) {
-        initRepoSetting();
-    }
-    if ($('#org-setting').length) {
-        initOrgSetting();
-    }
-    if ($('#invite-box').length) {
-        initInvite();
-    }
-    if ($('#team-create-form').length) {
-        initOrgTeamCreate();
-    }
-    if ($('#team-members-list').length) {
-        initTeamMembersList();
-    }
-    if ($('#team-repositories-list').length) {
-        initTeamRepositoriesList();
-    }
-    if ($('#admin-setting').length) {
-        initAdmin();
-    }
-    if ($('#install-form').length) {
-        initInstall();
-    }
-    if ($('#user-profile-page').length) {
-        initProfile();
-    }
-    if ($('#diff-page').length) {
-        initTimeSwitch();
-        initDiff();
-    }
-
-    $('#dashboard-sidebar-menu').tabs();
-    $('#pull-issue-preview').markdown_preview(".issue-add-comment");
-
-    homepage();
-    emojify.setConfig({
-        img_dir: Gogs.AppSubUrl + '/img/emoji'
-    });
-    emojify.run();
-
-    // Fix language drop-down menu height.
-    var l = $('#footer-lang li').length;
-    $('#footer-lang .drop-down').css({
-        "top": (-31 * l) + "px",
-        "height": (31 * l - 3) + "px"
-    });
-});
-
-function homepage() {
-    // Change method to GET if no username input.
-    $('#promo-form').submit(function (e) {
-        if ($('#username').val() === "") {
-            e.preventDefault();
-            window.location.href = Gogs.AppSubUrl + '/user/login';
-            return true
-        }
-    });
-    // Redirect to register page.
-    $('#register-button').click(function (e) {
-        if ($('#username').val() === "") {
-            e.preventDefault();
-            window.location.href = Gogs.AppSubUrl + '/user/sign_up';
-            return true
-        }
-        $('#promo-form').attr('action', Gogs.AppSubUrl + '/user/sign_up');
-    });
-}
-
-String.prototype.endsWith = function (suffix) {
-    return this.indexOf(suffix, this.length - suffix.length) !== -1;
-};

+ 0 - 97
public/ng/js/gogs/issue_label.js

@@ -1,97 +0,0 @@
-// when dom ready, init issue label events
-$(document).ready(function(){
-    var labelColors = ["#e11d21","#EB6420","#FBCA04","#009800",
-    "#006B75","#207DE5","#0052cc","#53E917",
-    "#F6C6C7","#FAD8C7","#FEF2C0","#BFE5BF",
-    "#BFDADC","#C7DEF8","#BFD4F2","#D4C5F9"];
-
-    var colorDropHtml = "";
-    labelColors.forEach(function(item){
-       colorDropHtml += '<a class="color" style="background-color:'+item+'" data-color-hex="'+item+'"></a>';
-    });
-
-
-
-    // render label color input
-    var color_input = $('#label-add-color');
-    var color_label = $('#label-add-form .label-color-drop label');
-    color_label.css("background-color",labelColors[0]);
-    color_input.val(labelColors[0]);
-
-
-    // render label color drop
-    function render_color_drop($e){
-        $e.find('.label-color-drop .drop-down')
-            .html(colorDropHtml)
-            .on("click","a",function(){
-                var $form = $(this).parents(".form");
-                var color_label = $form.find(".label-color-drop label");
-                var color_input = $form.find("input[name=color]");
-                var color = $(this).data("color-hex");
-                color_label.css("background-color",color);
-                color_input.val(color);
-            });
-    }
-
-
-    //  color drop visible
-    var form = $('#label-add-form');
-    render_color_drop(form);
-    $('#label-new-btn').on("click",function(){
-        if(form.hasClass("hidden")){
-            form.removeClass("hidden");
-        }
-    });
-    $('#label-cancel-btn').on("click",function(){
-        form.addClass("hidden");
-    });
-
-    // label edit form render
-    var $edit_form_tpl = $("#label-edit-form-tpl");
-    $("#label-list").on("click","a.edit",function(){
-        var $label_item = $(this).parents(".item");
-        var $clone_form = $edit_form_tpl.clone();
-        render_color_drop($clone_form);
-
-        // add default color
-        var color_label = $clone_form.find(".label-color-drop label");
-        var color_input = $clone_form.find("input[name=color]");
-        var color = $label_item.find(".label").data("color-hex");
-        color_label.css("background-color",color);
-        color_input.val(color);
-
-        // add label name
-        $clone_form.find("input[name=name]").val($label_item.find(".label").text());
-
-        // add label id
-        $clone_form.find("input[name=id]").val($label_item.attr("id").replace("label-",""));
-
-        // append form
-        $label_item.after($clone_form.show());
-
-        // add cancel button event
-        $('#label-edit-cancel-btn').on("click",function(){
-           $clone_form.remove();
-        });
-
-    });
-
-    // label delete form render
-    var $del_form_tpl = $('#label-delete-form-tpl');
-    $("#label-list").on("click","a.delete",function(){
-        var $label_item = $(this).parents(".item");
-        var $clone_form = $del_form_tpl.clone();
-
-        // add label id
-        $clone_form.find("input[name=id]").val($label_item.attr("id").replace("label-",""));
-
-        // append form
-        $label_item.after($clone_form.show());
-
-        // add cancel button event
-        $('#label-del-cancel-btn').on("click",function(){
-            $clone_form.remove();
-        });
-    });
-
-});

File diff suppressed because it is too large
+ 0 - 1
public/ng/js/lib/jquery-1.11.1.min.js


File diff suppressed because it is too large
+ 0 - 3
public/ng/js/lib/jquery.magnific-popup.min.js


+ 0 - 258
public/ng/js/lib/jquery.tipsy.js

@@ -1,258 +0,0 @@
-// tipsy, facebook style tooltips for jquery
-// version 1.0.0a
-// (c) 2008-2010 jason frame [jason@onehackoranother.com]
-// released under the MIT license
-
-(function($) {
-    
-    function maybeCall(thing, ctx) {
-        return (typeof thing == 'function') ? (thing.call(ctx)) : thing;
-    };
-    
-    function isElementInDOM(ele) {
-      while (ele = ele.parentNode) {
-        if (ele == document) return true;
-      }
-      return false;
-    };
-    
-    function Tipsy(element, options) {
-        this.$element = $(element);
-        this.options = options;
-        this.enabled = true;
-        this.fixTitle();
-    };
-    
-    Tipsy.prototype = {
-        show: function() {
-            var title = this.getTitle();
-            if (title && this.enabled) {
-                var $tip = this.tip();
-                
-                $tip.find('.tipsy-inner')[this.options.html ? 'html' : 'text'](title);
-                $tip[0].className = 'tipsy'; // reset classname in case of dynamic gravity
-                $tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).prependTo(document.body);
-                
-                var pos = $.extend({}, this.$element.offset(), {
-                    width: this.$element[0].offsetWidth,
-                    height: this.$element[0].offsetHeight
-                });
-                
-                var actualWidth = $tip[0].offsetWidth,
-                    actualHeight = $tip[0].offsetHeight,
-                    gravity = maybeCall(this.options.gravity, this.$element[0]);
-                
-                var tp;
-                switch (gravity.charAt(0)) {
-                    case 'n':
-                        tp = {top: pos.top + pos.height + this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
-                        break;
-                    case 's':
-                        tp = {top: pos.top - actualHeight - this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
-                        break;
-                    case 'e':
-                        tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth - this.options.offset};
-                        break;
-                    case 'w':
-                        tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width + this.options.offset};
-                        break;
-                }
-                
-                if (gravity.length == 2) {
-                    if (gravity.charAt(1) == 'w') {
-                        tp.left = pos.left + pos.width / 2 - 15;
-                    } else {
-                        tp.left = pos.left + pos.width / 2 - actualWidth + 15;
-                    }
-                }
-                
-                $tip.css(tp).addClass('tipsy-' + gravity);
-                $tip.find('.tipsy-arrow')[0].className = 'tipsy-arrow tipsy-arrow-' + gravity.charAt(0);
-                if (this.options.className) {
-                    $tip.addClass(maybeCall(this.options.className, this.$element[0]));
-                }
-                
-                if (this.options.fade) {
-                    $tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity});
-                } else {
-                    $tip.css({visibility: 'visible', opacity: this.options.opacity});
-                }
-            }
-        },
-        
-        hide: function() {
-            if (this.options.fade) {
-                this.tip().stop().fadeOut(function() { $(this).remove(); });
-            } else {
-                this.tip().remove();
-            }
-        },
-        
-        fixTitle: function() {
-            var $e = this.$element;
-            if ($e.attr('title') || typeof($e.attr('original-title')) != 'string') {
-                $e.attr('original-title', $e.attr('title') || '').removeAttr('title');
-            }
-        },
-        
-        getTitle: function() {
-            var title, $e = this.$element, o = this.options;
-            this.fixTitle();
-            var title, o = this.options;
-            if (typeof o.title == 'string') {
-                title = $e.attr(o.title == 'title' ? 'original-title' : o.title);
-            } else if (typeof o.title == 'function') {
-                title = o.title.call($e[0]);
-            }
-            title = ('' + title).replace(/(^\s*|\s*$)/, "");
-            return title || o.fallback;
-        },
-        
-        tip: function() {
-            if (!this.$tip) {
-                this.$tip = $('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');
-                this.$tip.data('tipsy-pointee', this.$element[0]);
-            }
-            return this.$tip;
-        },
-        
-        validate: function() {
-            if (!this.$element[0].parentNode) {
-                this.hide();
-                this.$element = null;
-                this.options = null;
-            }
-        },
-        
-        enable: function() { this.enabled = true; },
-        disable: function() { this.enabled = false; },
-        toggleEnabled: function() { this.enabled = !this.enabled; }
-    };
-    
-    $.fn.tipsy = function(options) {
-        
-        if (options === true) {
-            return this.data('tipsy');
-        } else if (typeof options == 'string') {
-            var tipsy = this.data('tipsy');
-            if (tipsy) tipsy[options]();
-            return this;
-        }
-        
-        options = $.extend({}, $.fn.tipsy.defaults, options);
-        
-        function get(ele) {
-            var tipsy = $.data(ele, 'tipsy');
-            if (!tipsy) {
-                tipsy = new Tipsy(ele, $.fn.tipsy.elementOptions(ele, options));
-                $.data(ele, 'tipsy', tipsy);
-            }
-            return tipsy;
-        }
-        
-        function enter() {
-            var tipsy = get(this);
-            tipsy.hoverState = 'in';
-            if (options.delayIn == 0) {
-                tipsy.show();
-            } else {
-                tipsy.fixTitle();
-                setTimeout(function() { if (tipsy.hoverState == 'in') tipsy.show(); }, options.delayIn);
-            }
-        };
-        
-        function leave() {
-            var tipsy = get(this);
-            tipsy.hoverState = 'out';
-            if (options.delayOut == 0) {
-                tipsy.hide();
-            } else {
-                setTimeout(function() { if (tipsy.hoverState == 'out') tipsy.hide(); }, options.delayOut);
-            }
-        };
-        
-        if (!options.live) this.each(function() { get(this); });
-        
-        if (options.trigger != 'manual') {
-            var binder   = options.live ? 'live' : 'bind',
-                eventIn  = options.trigger == 'hover' ? 'mouseenter' : 'focus',
-                eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
-            this[binder](eventIn, enter)[binder](eventOut, leave);
-        }
-        
-        return this;
-        
-    };
-    
-    $.fn.tipsy.defaults = {
-        className: null,
-        delayIn: 0,
-        delayOut: 0,
-        fade: false,
-        fallback: '',
-        gravity: 'n',
-        html: false,
-        live: false,
-        offset: 0,
-        opacity: 0.8,
-        title: 'title',
-        trigger: 'hover'
-    };
-    
-    $.fn.tipsy.revalidate = function() {
-      $('.tipsy').each(function() {
-        var pointee = $.data(this, 'tipsy-pointee');
-        if (!pointee || !isElementInDOM(pointee)) {
-          $(this).remove();
-        }
-      });
-    };
-    
-    // Overwrite this method to provide options on a per-element basis.
-    // For example, you could store the gravity in a 'tipsy-gravity' attribute:
-    // return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
-    // (remember - do not modify 'options' in place!)
-    $.fn.tipsy.elementOptions = function(ele, options) {
-        return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
-    };
-    
-    $.fn.tipsy.autoNS = function() {
-        return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
-    };
-    
-    $.fn.tipsy.autoWE = function() {
-        return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
-    };
-    
-    /**
-     * yields a closure of the supplied parameters, producing a function that takes
-     * no arguments and is suitable for use as an autogravity function like so:
-     *
-     * @param margin (int) - distance from the viewable region edge that an
-     *        element should be before setting its tooltip's gravity to be away
-     *        from that edge.
-     * @param prefer (string, e.g. 'n', 'sw', 'w') - the direction to prefer
-     *        if there are no viewable region edges effecting the tooltip's
-     *        gravity. It will try to vary from this minimally, for example,
-     *        if 'sw' is preferred and an element is near the right viewable 
-     *        region edge, but not the top edge, it will set the gravity for
-     *        that element's tooltip to be 'se', preserving the southern
-     *        component.
-     */
-     $.fn.tipsy.autoBounds = function(margin, prefer) {
-		return function() {
-			var dir = {ns: prefer[0], ew: (prefer.length > 1 ? prefer[1] : false)},
-			    boundTop = $(document).scrollTop() + margin,
-			    boundLeft = $(document).scrollLeft() + margin,
-			    $this = $(this);
-
-			if ($this.offset().top < boundTop) dir.ns = 'n';
-			if ($this.offset().left < boundLeft) dir.ew = 'w';
-			if ($(window).width() + $(document).scrollLeft() - $this.offset().left < margin) dir.ew = 'e';
-			if ($(window).height() + $(document).scrollTop() - $this.offset().top < margin) dir.ns = 's';
-
-			return dir.ns + (dir.ew ? dir.ew : '');
-		}
-	};
-    
-})(jQuery);

File diff suppressed because it is too large
+ 0 - 167
public/ng/js/lib/lib.js


File diff suppressed because it is too large
+ 0 - 0
public/ng/js/min/gogs-min.js


+ 0 - 53
public/ng/js/utils/preview.js

@@ -1,53 +0,0 @@
-/**
- * preview plugin
- * @param selector
- * @param target_selector
- */
-function Preview(selector, target_selector) {
-
-    // get input element
-    function get_input($e) {
-        return $e.find(".js-preview-input").eq(0);
-    }
-
-    // get result html container element
-    function get_container($t) {
-        if ($t.hasClass("js-preview-container")) {
-            return $t
-        }
-        return $t.find(".js-preview-container").eq(0);
-    }
-
-    var $e = $(selector);
-    var $t = $(target_selector);
-
-    var $ipt = get_input($t);
-    if (!$ipt.length) {
-        console.log("[preview]: no preview input");
-        return
-    }
-    var $cnt = get_container($t);
-    if (!$cnt.length) {
-        console.log("[preview]: no preview container");
-        return
-    }
-
-
-    // call api via ajax
-    $e.on("click", function () {
-        $.post("/api/v1/markdown", {
-            text: $ipt.val()
-        }, function (html) {
-            $cnt.html(html);
-        })
-    });
-
-    console.log("[preview]: init preview @", selector, "&", target_selector);
-}
-
-
-$.fn.extend({
-    markdown_preview: function (target) {
-        Preview(this, target);
-    }
-});

+ 0 - 45
public/ng/js/utils/tabs.js

@@ -1,45 +0,0 @@
-/*
- js tabs and tabbed content plugin
- */
-function Tabs(selector) {
-
-    function hide($nav) {
-        console.log("hide", $nav);
-        $nav.removeClass("js-tab-nav-show");
-        $($nav.data("tab-target")).removeClass("js-tab-show").hide();
-    }
-
-    function show($nav) {
-        console.log("show", $nav);
-        $nav.addClass("js-tab-nav-show");
-        $($nav.data("tab-target")).addClass("js-tab-show").show();
-    }
-
-    var $e = $(selector);
-    if ($e.length) {
-        // pre-assign init index
-        var $current = $e.find('.js-tab-nav-show');
-        if ($current.length) {
-            $($current.data("tab-target")).addClass("js-tab-show");
-        }
-        // bind nav click
-        $e.on("click", ".js-tab-nav", function (e) {
-            e.preventDefault();
-            var $this = $(this);
-            // is showing, not change.
-            if ($this.hasClass("js-tab-nav-show")) {
-                return;
-            }
-            $current = $e.find(".js-tab-nav-show").eq(0);
-            hide($current);
-            show($this);
-        });
-        console.log("init tabs @", selector)
-    }
-}
-
-$.fn.extend({
-    tabs: function () {
-        Tabs(this);
-    }
-});

+ 0 - 11
public/ng/less/gogs.less

@@ -1,11 +0,0 @@
-@import "gogs/base";
-@import "gogs/markdown";
-@import "gogs/external";
-@import "gogs/dashboard";
-@import "gogs/sign";
-@import "gogs/repository";
-@import "gogs/settings";
-@import "gogs/issue";
-@import "gogs/organization";
-@import "gogs/admin";
-@import "gogs/profile";

+ 0 - 26
public/ng/less/gogs/admin.less

@@ -1,26 +0,0 @@
-.admin-panel {
-	padding: 10px 20px;
-}
-.admin-desc {
-	padding: 10px 20px;
-}
-.admin-table {
-	padding: 15px 0 5px 0;
-}
-.dl-horizontal dt {
-	float: left;
-	width: 160px;
-	clear: left;
-	overflow: hidden;
-	text-overflow: ellipsis;
-	white-space: nowrap;
-}
-.admin-dl-horizontal {
-	padding: 20px;
-	> dt {
-		width: 250px;
-	}
-	> dd {
-		margin-left: 240px;
-	}
-}

+ 0 - 306
public/ng/less/gogs/base.less

@@ -1,306 +0,0 @@
-@import "../ui/var";
-@headerBgColor: #428BCA;
-@headerLinkFontColor: #FFF;
-@headerLinkHoverColor: #fff65f;
-@headerLinkCurrentColor: #fff65f;
-@headerSignOutColor: #ff908b;
-@footerBorderColor: #D6D6D6;
-@footerFontColor: #888;
-@langNum: 2px;
-// means 2 items
-html,
-body {
-    height: 100%;
-}
-.octicon,
-.fa {
-    width: 16px;
-    text-align: center;
-}
-.container {
-    max-width: 1170px;
-    padding: 0 1.5em;
-    margin: auto;
-}
-img.avatar-16 {
-    width: 16px;
-    height: 16px;
-    vertical-align: middle;
-}
-img.avatar-20 {
-    width: 20px;
-    height: 20px;
-    vertical-align: middle;
-}
-img.avatar-24 {
-    width: 24px;
-    height: 24px;
-    vertical-align: middle;
-}
-img.avatar-30 {
-    width: 30px;
-    height: 30px;
-    vertical-align: middle;
-}
-img.avatar-40 {
-  width: 40px;
-  height: 40px;
-  vertical-align: middle;
-}
-img.avatar-48{
-  width: 48px;
-  height: 48px;
-  vertical-align: middle;
-}
-img.avatar-100{
-  width: 100px;
-  height: 100px;
-  vertical-align: middle;
-}
-.drop-down{
-  .panel-header{
-    font-size: 14px;
-  }
-}
-#wrapper {
-    padding: 0;
-    margin: 0 0 -55px 0;
-    min-height: 100%;
-}
-#footer {
-    background-color: white;
-    border-top: 1px solid@footerBorderColor;
-
-clear: both;
-    width: 100%;
-    .container {
-        padding: 15px;
-    }
-    color:@footerFontColor;
-.official,
-    .version {
-        color: @footerFontColor;
-    }
-}
-#footer-links {
-    > * {
-        border-left: 1px solid@footerBorderColor;
-        padding-left: 8px;
-        margin-left: 5px;
-        &:first-child {
-            border-left: none;
-        }
-    }
-}
-#footer-lang {
-    position: relative;
-    .drop-down {
-        top: -2-31*@langNum;
-        left: -2px;
-        position: absolute;
-        height: -3+31*@langNum;
-        z-index: 100;
-        font-size: 12px;
-        width: 170%;
-        min-width: 140px;
-        li > a {
-            padding: 3px 9px;
-        }
-    }
-}
-#header {
-    background-color: @headerBgColor;
-    height: 45px;
-    > .menu-line {
-        > li > a {
-            display: inline-block;
-            color:@headerLinkFontColor;
-            &:hover {
-                background-color: transparent;
-                color: @headerLinkHoverColor;
-            }
-        }
-        > li.head {
-            color: @headerLinkFontColor;
-        }
-        > li.hover a:after {
-            bottom: -9px;
-            color: @headerLinkFontColor;
-        }
-        > li.current > a {
-            color: @headerLinkCurrentColor;
-            font-weight: bold;
-        }
-    }
-}
-#header-nav-user {
-    height: 44px;
-    img {
-        margin: -2px 10px 0 0;
-        border-radius: 3px;
-    }
-}
-#header-nav-sign-out > a:hover {
-    color: @headerSignOutColor !important;
-}
-#header-nav-logo {
-    padding: 6px 1.2em 6px 0;
-}
-#header-nav-explore,
-#header-nav-help {
-    font-size: 14px;
-}
-#header-new-repo-menu {
-    width: 180px;
-    background-color: #FFF;
-    top: 44px;
-    border-top: none;
-    .octicon {
-        margin-right: 6px;
-        font-size: 1.1em;
-    }
-    left:-66px;
-}
-.switching-list {
-    width: 100%;
-    list-style: none;
-    > li {
-        border-bottom: 1px solid #eaeaea;
-        &:last-child {
-            border-bottom: none;
-        }
-        > a {
-            padding: .4em 1.2em;
-            display: block;
-            color: #444;
-            &:hover {
-                background-color: #428bca !important;
-                color: #fff !important;
-            }
-        }
-    }
-}
-.social-buttons {
-    .btn {
-        border: none;
-        font-size: 16px;
-        border-radius: 4px;
-        margin-right: 12px;
-        font-family: 'PT Sans Narrow', sans-serif;
-        padding: 5px 12px;
-        color: #FFF;
-        .fa {
-            margin-right: 6px;
-            font-size: 16px;
-        }
-    }
-    .twitter {
-        background-color: #1c6399;
-        &:hover {
-            background-color: #1c5487;
-        }
-    }
-    .github {
-        background-color: #444;
-        &:hover {
-            background-color: #333;
-        }
-    }
-    .google {
-        background-color: #C03D20;
-        &:hover {
-            background-color: #D56060;
-        }
-    }
-    .weibo {
-        background-color: #bf1324;
-        &:hover {
-            background-color: #b94c4a;
-        }
-    }
-    .qq {
-        background-color: #03a2ef;
-        &:hover {
-            background-color: #3cb3ff;
-        }
-    }
-}
-.main-wrapper {
-    padding: 20px 0 40px;
-}
-.user-list {
-    width: auto;
-    min-width: 180px;
-    max-width: 300px;
-    img {
-        width: 28px;
-        height: 28px;
-        margin-right: 1em;
-        margin-top: 1px;
-        vertical-align: middle;
-    }
-    li {
-        cursor: pointer;
-        font-weight: bold;
-    }
-}
-.text-success {
-    color: #3c763d;
-}
-.text-blue {
-    color: #15c;
-}
-.text-red {
-    color: #DD4B39;
-}
-.text-grey {
-    color: #999999;
-}
-.text-black {
-    color: #444444;
-}
-.text-gold {
-    color: #a1882b;
-}
-.table {
-    width: 100%;
-    max-width: 100%;
-    > thead > tr > th,
-    > tbody > tr > th,
-    > tfoot > tr > th,
-    > thead > tr > td,
-    > tbody > tr > td,
-    > tfoot > tr > td {
-        border-top: 1px solid #e7eaec;
-        line-height: 1.42857;
-        padding: 8px;
-        vertical-align: top;
-    }
-    th {
-        text-align: left;
-    }
-}
-.table-striped {
-    >tbody>tr:nth-child(odd)>td,
-    >tbody>tr:nth-child(odd)>th {
-        background-color: #f9f9f9;
-    }
-}
-.pagination {
-    display: inline-block;
-    padding-left: 0;
-    margin: 20px 0;
-    border-radius: 4px;
-    li {
-        display: inline;
-    }
-}
-.list-unstyled {
-    padding-left: 0;
-    list-style: none;
-}
-.emoji {
-    width: 1.5em;
-    height: 1.5em;
-    display: inline-block;
-}

+ 0 - 260
public/ng/less/gogs/dashboard.less

@@ -1,260 +0,0 @@
-@import "../ui/var";
-/*
-    The dashboard page style
-*/
-@dashboardHeaderBorderColor: #D6D6D6;
-@dashboardHeaderLinkColor: #444;
-@dashboardHeaderLinkHoverColor: #D9453D;
-@dashboardSwitchMenuHoverBgColor: @linkColor;
-@dashboardSwitchMenuHoverFontColor: #FFF;
-
-// dashboard header, contains dashboard selection menu and nav of Feed/PR/Issues.
-#dashboard-header {
-  border-bottom: 1px solid @dashboardHeaderBorderColor;
-  height: 69px;
-  background-color: #FFF;
-  > .menu-line {
-    > li {
-      padding: 12px 6px;
-    }
-    > li.drop{
-      margin-left: -22px;
-      &:hover a {
-        background-color: transparent;
-      }
-    }
-    > li.right {
-      > a {
-        font-size: 1.2em;
-        color: @dashboardHeaderLinkColor;
-        margin: -12px 0px;
-    	padding: 22px 0.8em;
-        &:hover {
-          background-color: transparent;
-          color: @dashboardHeaderLinkHoverColor;
-        }
-        .octicon {
-          margin-right: 6px;
-        }
-      }
-      .current {
-        border-bottom: 2px solid #D26911;
-      }
-    }
-  }
-}
-// dashboard context switch selection
-#dashboard-selection-menu {
-  a img {
-    margin: -4px 10px 0 0;
-  }
-}
-#dashboard {
-  padding: 1.5em;
-}
-// dashboard sidebar contains contributed repositories panel,
-// and my repositories panel
-#dashboard-sidebar {
-  .panel-header h4 {
-    margin: 0;
-  }
-  > .panel {
-    margin-bottom: 24px;
-    border-bottom-left-radius: .3em;
-    border-bottom-right-radius: .3em;
-  }
-}
-#dashboard-sidebar-menu {
-  border-top-left-radius: .3em;
-  border-top-right-radius: .3em;
-  > li {
-    border: 1px solid #d6d6d6;
-    float: left;
-    margin-right: -1px;
-    border-bottom: none;
-    > a {
-      padding-top: .3em;
-      padding-bottom: .3em;
-    }
-  }
-  > li.first {
-    border-top-left-radius: .3em;
-    > a {
-      border-top-left-radius: .3em;
-    }
-  }
-  > li.drop {
-    border: none;
-    float: right;
-  }
-  width: 100%;
-  height: 32px;
-  > li.js-tab-nav-show {
-    background-color: #EEEEEE;
-  }
-  > li.last {
-    border-top-right-radius: .3em;
-    > a {
-      border-top-right-radius: .3em;
-    }
-  }
-}
-#dashboard-my-mirror,
-#dashboard-my-org,
-#dashboard-my-repo {
-  li {
-    &.private {
-      background-color: #fcf8e9;
-    }
-    border-bottom: 1px solid #EAEAEA;
-    &:last-child {
-      border-bottom: none;
-    }
-    a {
-      padding: 6px 1.2em;
-      display: block;
-      .octicon {
-        margin-right: 6px;
-        color: #888;
-      }
-      &:hover {
-        .repo-name {
-          text-decoration: underline;
-        }
-      }
-    }
-  }
-  .repo-name {
-    font-size: 1.1em;
-  }
-  .repo-star {
-    color: #888;
-  }
-  .repo-contrib-header {
-    border-top: 1px solid #d6d6d6;
-  }
-  .panel-header {
-    font-size: 14px;
-  }
-}
-#dashboard-my-repo {
-  .panel-header {
-    .octicon {
-      margin-right: 6px;
-      font-size: 12px;
-    }
-  }
-  .repo-count {
-    margin-left: 4px;
-  }
-}
-#dashboard-my-org,
-#dashboard-my-mirror {
-  display: none;
-}
-// the button of new repository in my repositories panel
-#dashboard-new-repo {
-  width: 50px;
-  height: 33px;
-  padding-top: 6px;
-  margin-right: 1px;
-  .octicon {
-    font-size: 20px;
-  }
-  border-top-left-radius: .3em;
-  border-top-right-radius: .3em;
-}
-// the drop-down menu of #dashboard-new-repo
-#dashboard-new-repo-menu {
-  top: 33px;
-  width: 180px;
-  background-color: #FFF;
-  left: -132px;
-  .octicon {
-    margin-right: 6px;
-    font-size: 1.1em;
-  }
-}
-#dashboard-selection-menu {
-  width: auto;
-  max-width: 300px;
-  > .drop-down {
-    top: 56px;
-    left: 22px;
-  }
-  li {
-    white-space: nowrap;
-    &.checked {
-      .octicon {
-        opacity: 1;
-      }
-    }
-    a {
-      text-overflow: ellipsis;
-      -o-text-overflow: ellipsis;
-      overflow: hidden;
-    }
-  }
-}
-// the drop-down menu of #dashboard-selection-menu
-#dashboard-switch-menu {
-  > li {
-    > a {
-      img {
-        margin-top: 0;
-      }
-      .octicon {
-        margin-right: 12px;
-      }
-    }
-    &:last-child {
-      > a {
-        border-bottom-left-radius: .3em;
-        border-bottom-right-radius: .3em;
-      }
-    }
-  }
-  > li.org > a {
-    .octicon {
-      opacity: 0;
-    }
-  }
-  > li.checked > a {
-    .octicon {
-      opacity: 1;
-    }
-    font-weight: bold;
-  }
-  border-bottom-left-radius: .3em;
-  border-bottom-right-radius: .3em;
-}
-#dashboard-news {
-  padding-bottom: 60px;
-  .news {
-    margin-right: 2.4em;
-    .mega-octicon {
-      color: #CCC;
-    }
-    .avatar {
-      margin-right: 1.2em;
-    }
-    .news-content,
-    .news-time {
-      color: #888;
-    }
-    padding-bottom: 1em;
-    margin-bottom: 1em;
-    border-bottom: 1px solid #E6E6E6;
-    min-height: 30px;
-  }
-  .push-news {
-    .news-content li {
-      margin-left: 1em;
-      img {
-        vertical-align: inherit;
-        margin-bottom: -2px;
-      }
-    }
-  }
-}
-

+ 0 - 105
public/ng/less/gogs/external.less

@@ -1,105 +0,0 @@
-@import "base";
-@import "../ui/var";
-#promo-wrapper {
-    padding-top: 50px;
-    background-color: @headerBgColor;
-}
-#promo-logo {
-    margin-right: 50px;
-    padding-bottom: 50px;
-    img {
-        max-width: 250px;
-    }
-}
-#promo-content {
-    color: #FFF;
-    margin-left: 300px;
-    h1,
-    h2 {
-        font-family: 'PT Sans Narrow', sans-serif;
-        line-height: 60px;
-        margin-bottom: 0;
-        text-shadow: 0 2px 1px rgba(0, 0, 0, 0.5);
-    }
-    h1 {
-        font-size: 96px;
-        line-height: 96px;
-        margin-bottom: 30px;
-    }
-    h2 {
-        font-size: 52px;
-        line-height: 70px;
-        font-weight: normal;
-    }
-}
-#promo-form {
-    padding: 40px 0;
-    .ipt-large {
-        border: none;
-        border-radius: 4px;
-        font-size: 18px;
-        margin-right: 12px;
-        &:focus {
-          box-shadow: 0 0 3px #FFF;
-        }
-    }
-    .btn-large {
-        border-radius: 4px;
-        font-size: 18px;
-        margin-right: 12px;
-    }
-}
-#promo-social {
-    padding-bottom: 60px;
-    .qq{
-        box-shadow: 0 0 1px #1c6399;
-    }
-}
-#feature-wrapper {
-    font-family: Lato, sans-serif;
-    font-size: 18px;
-    padding: 50px 0 100px 0;
-    .octicon {
-        color: @btnRedColor;
-        font-size: 60px;
-        height: 60px;
-        width: 60px;
-        line-height: 60px;
-        margin-right: 12px;
-        vertical-align: middle;
-        display: inline-block;
-    }
-    b {
-        color: #000;
-        font-size: 24px;
-        display: inline-block;
-        line-height: 60px;
-    }
-    p {
-        margin: 1em 0;
-        line-height: 40px;
-        padding-right: 30px;
-    }
-    a {
-        color: @btnRedColor;
-        &:hover {
-            color: @btnHoverRedColor;
-        }
-    }
-    .grid-1-2 {
-        margin-bottom: 30px;
-    }
-}
-#install-form {
-    padding: 15px;
-    label {
-        width: 35%;
-    }
-    input {
-        width: 30%;
-    }
-    input[type="checkbox"], 
-    input[type="radio"] {
-        width: auto;
-    }
-}

+ 0 - 540
public/ng/less/gogs/issue.less

@@ -1,540 +0,0 @@
-@import "../ui/var";
-// pull request main content
-.pr-main {
-  margin-right: 100px;
-}
-// right bar in pull request page
-.pr-sidebar {
-  border-left: 1px solid #DDD;
-  box-sizing: border-box;
-  position: absolute;
-  right: 0;
-  top: 12px;
-}
-.pr-title {
-  .pr-num {
-    font-weight: normal;
-    color: #888;
-  }
-  padding: 4px 0;
-}
-.pr-meta {
-  color: #888;
-  padding: 4px 0 8px 0;
-  .pr-author {
-    margin: 0 8px;
-    color: #444;
-    &:hover {
-      text-decoration: underline;
-    }
-  }
-  .pr-branch {
-    margin: 0 4px;
-    font-size: 12px;
-    padding: 4px 6px;
-  }
-}
-.pr-nav {
-  border-bottom: 1px solid #DDD;
-  margin-top: 16px;
-  margin-bottom: 16px;
-  .octicon {
-    margin-right: 4px;
-  }
-  li > a {
-    padding: 3px 9px !important;
-    border: 1px solid transparent;
-    border-bottom: none;
-    .label {
-      padding: 1px 5px;
-      font-size: 12px;
-      margin-left: 4px;
-    }
-    border-top-left-radius: .2em;
-    border-top-right-radius: .2em;
-  }
-  li.js-tab-nav-show {
-    > a {
-      background-color: #FFF;
-      border-color: #E6E6E6;
-    }
-  }
-}
-.diff-bar {
-  .diff-add {
-    color: @btnGreenColor;
-  }
-  .diff-delete {
-    color: @btnRedColor;
-  }
-  .diff-status {
-    width: 50px;
-    background-color: @btnRedColor;
-    height: 10px;
-    margin-top: 7px;
-    margin-left: 4px;
-    margin-right: 4px;
-    border-radius: .2em;
-  }
-  .diff-status-inner {
-    width: 45%;
-    background-color: @btnGreenColor;
-    height: 10px;
-    border-top-left-radius: .2em;
-    border-bottom-left-radius: .2em;
-  }
-}
-#pr-commit,
-#pr-file-diff,
-#issue-add-comment-preview {
-  display: none;
-}
-#pr-conversation-list {
-  padding-right: 30px;
-  box-sizing: border-box;
-}
-.issue-comment,
-.issue-commit,
-.issue-line,
-.issue-merge,
-.issue-add-comment {
-  margin-bottom: 24px;
-}
-.issue-comment {
-  .author-avatar {
-    img {
-      margin-right: 12px;
-    }
-  }
-  .panel {
-    margin-left: 60px;
-    margin-top: -40px;
-  }
-  .panel-header {
-    font-size: 13px;
-  }
-  .author-name {
-    font-weight: bold;
-  }
-  .date {
-    margin-left: 4px;
-    font-style: italic;
-    color: #888;
-  }
-  .action {
-    > * {
-      margin-left: 4px;
-      font-size: 12px;
-    }
-    i {
-      font-size: 13px;
-    }
-  }
-}
-.issue-commit {
-  line-height: 32px;
-  i, .author-avatar img {
-    margin-right: 16px;
-  }
-  .sha {
-    margin-left: 24px;
-  }
-  .message {
-    display: block;
-    margin-left: 88px;
-    padding-top: 4px;
-    line-height: 24px;
-  }
-}
-.issue-merge {
-  .ico {
-    width: 40px;
-    height: 40px;
-    text-align: center;
-    color: #FFF;
-    i {
-      margin-top: 8px;
-      font-size: 24px;
-    }
-    margin-right: 12px;
-  }
-  .panel {
-    margin-left: 60px;
-    margin-top: -40px;
-  }
-  .panel-header {
-    font-size: 13px;
-  }
-}
-.issue-merge-ok {
-  .ico {
-    background-color: #65AD4E;
-  }
-  .panel,
-  .panel-content,
-  .panel-header {
-    border-color: #65AD4E;
-    background-color: #FFF;
-  }
-  .panel-header {
-    color: darken(#65AD4E, 10%);
-  }
-}
-.issue-line {
-  height: 4px;
-  background-color: #E6E6E6;
-}
-.issue-add-comment {
-  .panel {
-    margin-left: 60px;
-    margin-top: -40px;
-  }
-  .panel-header {
-    font-size: 13px;
-    padding-bottom: 0;
-  }
-  .add-nav {
-    > li {
-      > a {
-        padding: 4px 12px;
-        color: #444;
-        border: 1px solid #CCC;
-        margin-bottom: -1px;
-        font-size: 14px;
-        border-top-left-radius: .3em;
-        border-top-right-radius: .3em;
-        &:hover {
-          background-color: #FFF;
-        }
-      }
-      &.js-tab-nav-show {
-        > a {
-          background-color: #FFF;
-        }
-      }
-    }
-  }
-}
-textarea#issue-add-content {
-  width: 100%;
-  box-sizing: border-box;
-  height: 120px;
-  resize: vertical;
-}
-// #issue list navigator
-#issue-list-nav {
-  border-bottom: 1px solid #DDD;
-  padding-bottom: 12px;
-  li {
-    > a {
-      font-size: 13px;
-      font-weight: bold;
-      padding: .2em .8em;
-    }
-  }
-  li.current {
-    > a {
-      background-color: #0079bc;
-      color: #FAFAFA;
-    }
-  }
-  li.right {
-    margin-left: 4px;
-  }
-}
-// new issue button
-#issue-new,
-#label-new,
-#milestone-new{
-  > a {
-    padding: 0 !important;
-    button {
-      height: 29px;
-    }
-  }
-}
-// issue list menu
-#issue-list-menu {
-  padding: 16px 0 12px 0;
-  border-bottom: 1px solid #BBB;
-  margin-bottom: 12px;
-  .mark {
-    a {
-      color: #AAA;
-      &:hover {
-        color: #444;
-      }
-    }
-    &.hover {
-      a {
-        color: #222;
-        font-weight: bold;
-      }
-    }
-  }
-  > .left {
-    .mark {
-      margin-right: 12px;
-    }
-  }
-  > .right {
-    .mark {
-      margin-left: 12px;
-    }
-  }
-}
-// each issue list item
-#issue-list,
-#pull-list {
-  .item {
-    position: relative;
-    padding-bottom: 12px;
-    margin-bottom: 12px;
-    border-bottom: 1px dashed #AAA;
-    .title > .title-text {
-      color: #444;
-      font-size: 15px;
-      margin: 0 6px;
-    }
-  }
-  .comment {
-    color: #666;
-    position: absolute;
-    top: 6px;
-    right: 0;
-  }
-  .issue-label {
-    a {
-      color: #FFF;
-    }
-  }
-  .desc {
-    color: #999;
-    a {
-      color: #999;
-      &:hover {
-        color: #03a2ef;
-      }
-    }
-  }
-}
-// issue list filter
-#issue-list-filter{
-  .drop > a{
-    width: 90px;
-    padding: 0;
-    margin-left: 12px;
-    text-align: center;
-  }
-  .drop-down{
-    z-index: 999;
-    width: 236px;
-    left:-158px; // 260 - 90 - 12
-    top:22px;
-    padding: 0 12px;
-    h4{
-      line-height: 40px;
-      border-bottom: 1px solid #CCC;
-      margin-bottom: 0;
-    }
-    li{
-      line-height: 30px;
-      border-bottom: 1px dashed #EEE;
-      padding-left: 9px;
-      &:hover{
-        background-color: #fcffec;
-      }
-    }
-    > ul > li > a{
-      display: block;
-    }
-  }
-  .labels{
-    .color{
-      margin-top: 8px;
-      display: inline-block;
-      width: 12px;
-      height: 12px;
-      background-color: red;
-      margin-right: 9px;
-      margin-left: 9px;
-    }
-    .name{
-      vertical-align: top;
-      display: inline-block;
-      color: #444;
-    }
-  }
-  .milestones{
-    a{
-      color: #444;
-      font-weight: bold;
-    }
-  }
-}
-// issue list pager
-#issue-list-pager {
-  margin: 18px 0 24px 0;
-  font-size: 14px;
-  line-height: 24px;
-}
-// labels numbers
-#labels-num {
-  margin-right: 1em;
-}
-// labels list
-#label-list {
-  a.right {
-    margin-left: 1em;
-    color: #999;
-    i {
-      margin-right: 3px;
-    }
-    line-height: 30px;
-    &:hover {
-      color: #444444;
-    }
-  }
-  .num {
-    margin-right: 3px;
-  }
-  .issue-num {
-    margin-right: 4em;
-  }
-  .label {
-    &:hover {
-      color: #FFF;
-    }
-    i {
-      margin-right: 6px;
-    }
-  }
-  .item {
-    height: 30px;
-    padding-bottom: 12px;
-    margin-bottom: 12px;
-    border-bottom: 1px dashed #AAA;
-  }
-}
-// label add form, label edit form
-#label-add-form,
-#label-edit-form,
-#label-delete-form{
-  .ipt{
-    font-size: 14px;
-  }
-  .ipt[name=name]{
-    width: 300px;
-  }
-  .btn{
-    height: 33px;
-    font-size: 14px;
-    margin-left: 12px;
-  }
-}
-#label-add-form{
-  padding: 18px 0;
-  border-bottom: 1px solid #DDD;
-}
-#label-delete-form{
-  span{
-    line-height: 33px;
-  }
-}
-// label color drop
-.label-color-drop{
-  .ipt{
-    width:100px;
-  }
-  .drop-down{
-    width:128px !important;
-    top:22px !important;
-    left:50px !important;
-    padding: 12px;
-    line-height: 16px;
-    a.color{
-      width: 16px;
-      height: 16px;
-      display: inline-block;
-    }
-  }
-  label{
-    width: 24px;
-    height: 24px;
-    display: inline-block;
-    margin: 0 1em;
-    vertical-align: middle;
-  }
-}
-// milestone items
-#milestone-list{
-  padding-top: 6px;
-  .title-text{
-    font-size: 16px;
-  }
-  .desc {
-    color: #999;
-    line-height: 30px;
-  }
-  .content{
-    width: 400px;
-  }
-  .item {
-    padding-bottom: 18px;
-    margin-bottom: 18px;
-    border-bottom: 1px dashed #AAA;
-    position: relative;
-  }
-  .action{
-    position: absolute;
-    top: 0;
-    right: 0;
-  }
-  .status-bar {
-    > .bar {
-      margin: -2px 8px 0 8px;
-      width: 360px;
-      background-color: #DDD;
-      height: 14px;
-      vertical-align:middle;
-    }
-    .opening{
-      background-color: #65ad4e;
-      width: 40%;
-      height: 14px;
-      vertical-align: top;
-    }
-  }
-  .action-bar{
-    margin-top: 8px;
-    a{
-      margin-left: 12px;
-    }
-  }
-}
-
-.issues.list-group {
-	margin: 10px 0 20px 0;
-	> .list-group-item {
-  		background-color: #FFF;
-		border: 1px solid #e5e5e5;
-		display: block;
-  		padding: 10px 15px;
-  		margin-bottom: -1px;
-  		&:hover {
-		  background-color: rgba(19, 95, 215, 0.03);
-		}
-  		> .title {
-		  margin-bottom: 16px;
-		  font-weight: bold;
-		  font-size: 1.2em;
-		  > a { color: #444; }
-		}
-		> .info span {
-		  margin-right: 12px;
-		  color: #888;
-		  line-height: 20px;
-		  > a { color: #444; }
-		}
-	}
-}

+ 0 - 595
public/ng/less/gogs/markdown.less

@@ -1,595 +0,0 @@
-.markdown {
-  overflow:hidden;
-  font-family:"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
-  font-size:16px;
-  line-height:1.6;
-  word-wrap:break-word;
-  padding: 5px 2em 2em !important;
-
-  >*:first-child {
-    margin-top:0 !important;
-  }
-
-  >*:last-child {
-    margin-bottom:0 !important;
-  }
-
-  a:not([href]) {
-    color:inherit;
-    text-decoration:none;
-  }
-
-  .absent {
-    color:#c00;
-  }
-
-  .anchor {
-    position:absolute;
-    top:0;
-    left:0;
-    display:block;
-    padding-right:6px;
-    padding-left:30px;
-    margin-left:-30px;
-  }
-
-  .anchor:focus {
-    outline:none;
-  }
-
-  h1,
-  h2,
-  h3,
-  h4,
-  h5,
-  h6 {
-    position:relative;
-    margin-top:1em;
-    margin-bottom:16px;
-    font-weight:bold;
-    line-height:1.4;
-  }
-
-  h1 .octicon-link,
-  h2 .octicon-link,
-  h3 .octicon-link,
-  h4 .octicon-link,
-  h5 .octicon-link,
-  h6 .octicon-link {
-    display:none;
-    color:#000;
-    vertical-align:middle;
-  }
-
-  h1:hover .anchor,
-  h2:hover .anchor,
-  h3:hover .anchor,
-  h4:hover .anchor,
-  h5:hover .anchor,
-  h6:hover .anchor {
-    padding-left:8px;
-    margin-left:-30px;
-    text-decoration:none;
-  }
-
-  h1:hover .anchor .octicon-link,
-  h2:hover .anchor .octicon-link,
-  h3:hover .anchor .octicon-link,
-  h4:hover .anchor .octicon-link,
-  h5:hover .anchor .octicon-link,
-  h6:hover .anchor .octicon-link {
-    display:inline-block;
-  }
-
-  h1 tt,
-  h1 code,
-  h2 tt,
-  h2 code,
-  h3 tt,
-  h3 code,
-  h4 tt,
-  h4 code,
-  h5 tt,
-  h5 code,
-  h6 tt,
-  h6 code {
-    font-size:inherit;
-  }
-
-  h1 {
-    padding-bottom:0.3em;
-    font-size:2.25em;
-    line-height:1.2;
-    border-bottom:1px solid #eee;
-  }
-
-  h1 .anchor {
-    line-height:1;
-  }
-
-  h2 {
-    padding-bottom:0.3em;
-    font-size:1.75em;
-    line-height:1.225;
-    border-bottom:1px solid #eee;
-  }
-
-  h2 .anchor {
-    line-height:1;
-  }
-
-  h3 {
-    font-size:1.5em;
-    line-height:1.43;
-  }
-
-  h3 .anchor {
-    line-height:1.2;
-  }
-
-  h4 {
-    font-size:1.25em;
-  }
-
-  h4 .anchor {
-    line-height:1.2;
-  }
-
-  h5 {
-    font-size:1em;
-  }
-
-  h5 .anchor {
-    line-height:1.1;
-  }
-
-  h6 {
-    font-size:1em;color:#777;
-  }
-
-  h6 .anchor {
-    line-height:1.1;
-  }
-
-  p,
-  blockquote,
-  ul,
-  ol,
-  dl,
-  table,
-  pre {
-    margin-top:0;
-    margin-bottom:16px;
-  }
-
-  hr {
-    height:4px;
-    padding:0;
-    margin:16px 0;
-    background-color:#e7e7e7;
-    border:0 none;
-  }
-
-  ul,
-  ol {
-    padding-left:2em;
-  }
-
-  ul.no-list,
-  ol.no-list {
-    padding:0;
-    list-style-type:none;
-  }
-
-  ul ul,
-  ul ol,
-  ol ol,
-  ol ul {
-    margin-top:0;
-    margin-bottom:0;
-  }
-
-  ol ol,
-  ul ol {
-    list-style-type: lower-roman;
-  }
-
-  li>p {
-    margin-top:16px;
-  }
-
-  dl {
-    padding:0;
-  }
-
-  dl dt {
-    padding:0;
-    margin-top:16px;
-    font-size:1em;
-    font-style:italic;
-    font-weight:bold;
-  }
-
-  dl dd {
-    padding:0 16px;
-    margin-bottom:16px;
-  }
-
-  blockquote {
-    padding:0 15px;
-    color:#777;
-    border-left:4px solid #ddd;
-  }
-
-  blockquote>:first-child {
-    margin-top:0;
-  }
-
-  blockquote>:last-child {
-    margin-bottom:0;
-  }
-
-  table {
-    display:block;
-    width:100%;
-    overflow:auto;
-    word-break:normal;
-    word-break:keep-all;
-  }
-
-  table th {
-    font-weight:bold;
-  }
-
-  table th,
-  table td {
-    padding:6px 13px !important;
-    border:1px solid #ddd;
-  }
-
-  table tr {
-    background-color:#fff;
-    border-top:1px solid #ccc;
-  }
-
-  table tr:nth-child(2n) {
-    background-color:#f8f8f8;
-  }
-
-  img {
-    max-width:100%;
-    box-sizing:border-box;
-  }
-
-  .emoji {
-    max-width:none;
-  }
-
-  span.frame {
-    display:block;
-    overflow:hidden;
-  }
-
-  span.frame>span {
-    display:block;
-    float:left;
-    width:auto;
-    padding:7px;
-    margin:13px 0 0;
-    overflow:hidden;
-    border:1px solid #ddd;
-  }
-
-  span.frame span img {
-    display:block;
-    float:left;
-  }
-
-  span.frame span span {
-    display:block;
-    padding:5px 0 0;
-    clear:both;
-    color:#333;
-  }
-
-  span.align-center {
-    display:block;
-    overflow:hidden;
-    clear:both;
-  }
-
-  span.align-center>span {
-    display:block;
-    margin:13px auto 0;
-    overflow:hidden;
-    text-align:center;
-  }
-
-  span.align-center span img {
-    margin:0 auto;
-    text-align:center;
-  }
-
-  span.align-right {
-    display:block;
-    overflow:hidden;
-    clear:both;
-  }
-
-  span.align-right>span {
-    display:block;
-    margin:13px 0 0;
-    overflow:hidden;
-    text-align:right;
-  }
-
-  span.align-right span img {
-    margin:0;
-    text-align:right;
-  }
-
-  span.float-left {
-    display:block;
-    float:left;
-    margin-right:13px;
-    overflow:hidden;
-  }
-
-  span.float-left span {
-    margin:13px 0 0;
-  }
-
-  span.float-right {
-    display:block;
-    float:right;
-    margin-left:13px;
-    overflow:hidden;
-  }
-
-  span.float-right>span {
-    display:block;
-    margin:13px auto 0;
-    overflow:hidden;
-    text-align:right;
-  }
-
-  code,
-  tt {
-    padding:0;
-    padding-top:0.2em;
-    padding-bottom:0.2em;
-    margin:0;
-    font-size:85%;
-    background-color:rgba(0,0,0,0.04);
-    border-radius:3px;
-  }
-
-  code:before,
-  code:after,
-  tt:before,
-  tt:after {
-    letter-spacing:-0.2em;
-    content:"\00a0";
-  }
-
-  code br,
-  tt br {
-    display:none;
-  }
-
-  del code {
-    text-decoration:inherit;
-  }
-
-  pre>code {
-    padding:0;
-    margin:0;
-    font-size:100%;
-    word-break:normal;
-    white-space:pre;
-    background:transparent;
-    border:0;
-  }
-
-  .highlight {
-    margin-bottom:16px;
-  }
-
-  .highlight pre,
-  pre {
-    padding:16px;
-    overflow:auto;
-    font-size:85%;
-    line-height:1.45;
-    background-color:#f7f7f7;
-    border-radius:3px;
-  }
-
-  .highlight pre {
-    margin-bottom:0;
-    word-break:normal;
-  }
-
-  pre {
-    word-wrap:normal;
-  }
-
-  pre code,
-  pre tt {
-    display:inline;
-    max-width:initial;
-    padding:0;
-    margin:0;
-    overflow:initial;
-    line-height:inherit;
-    word-wrap:normal;
-    background-color:transparent;
-    border:0;
-  }
-
-  pre code:before,
-  pre code:after,
-  pre tt:before,
-  pre tt:after {
-    content:normal;
-  }
-
-  kbd {
-    display:inline-block;
-    padding:3px 5px;
-    font-size:11px;
-    line-height:10px;
-    color:#555;
-    vertical-align:middle;
-    background-color:#fcfcfc;
-    border:solid 1px #ccc;
-    border-bottom-color:#bbb;
-    border-radius:3px;
-    box-shadow:inset 0 -1px 0 #bbb;
-  }
-
-  .csv-data td,
-  .csv-data th {
-    padding:5px;
-    overflow:hidden;
-    font-size:12px;
-    line-height:1;
-    text-align:left;
-    white-space:nowrap;
-  }
-
-  .csv-data .blob-num {
-    padding:10px 8px 9px;
-    text-align:right;
-    background:#fff;border:0;
-  }
-
-  .csv-data tr {
-    border-top:0;
-  }
-
-  .csv-data th {
-    font-weight:bold;
-    background:#f8f8f8;border-top:0;
-  }
-
-}
-
-/* Author: jmblog */
-
-/* Project: https://github.com/jmblog/color-themes-for-google-code-prettify */
-
-/* GitHub Theme */
-
-/* Pretty printing styles. Used with prettify.js. */
-
-/* SPAN elements with the classes below are added by prettyprint. */
-
-/* plain text */
-
-.pln {
-    color: #333333;
-}
-@media screen {
-    /* string content */
-    .str {
-        color: #dd1144;
-    }
-    /* a keyword */
-    .kwd {
-        color: #333333;
-    }
-    /* a comment */
-    .com {
-        color: #999988;
-        font-style: italic;
-    }
-    /* a type name */
-    .typ {
-        color: #445588;
-    }
-    /* a literal value */
-    .lit {
-        color: #445588;
-    }
-    /* punctuation */
-    .pun {
-        color: #333333;
-    }
-    /* lisp open bracket */
-    .opn {
-        color: #333333;
-    }
-    /* lisp close bracket */
-    .clo {
-        color: #333333;
-    }
-    /* a markup tag name */
-    .tag {
-        color: navy;
-    }
-    /* a markup attribute name */
-    .atn {
-        color: teal;
-    }
-    /* a markup attribute value */
-    .atv {
-        color: #dd1144;
-    }
-    /* a declaration */
-    .dec {
-        color: #333333;
-    }
-    /* a variable name */
-    .var {
-        color: teal;
-    }
-    /* a function name */
-    .fun {
-        color: #990000;
-    }
-}
-/* Use higher contrast and text-weight for printable form. */
-
-@media print,
-projection {
-    .str {
-        color: #006600;
-    }
-    .kwd {
-        color: #006;
-        font-weight: bold;
-    }
-    .com {
-        color: #600;
-        font-style: italic;
-    }
-    .typ {
-        color: #404;
-        font-weight: bold;
-    }
-    .lit {
-        color: #004444;
-    }
-    .pun,
-    .opn,
-    .clo {
-        color: #444400;
-    }
-    .tag {
-        color: #006;
-        font-weight: bold;
-    }
-    .atn {
-        color: #440044;
-    }
-    .atv {
-        color: #006600;
-    }
-}
-/* Specify class=linenums on a pre to get line numbering */
-
-ol.linenums {
-    margin-top: 0;
-    margin-bottom: 0;
-}

+ 0 - 232
public/ng/less/gogs/organization.less

@@ -1,232 +0,0 @@
-@import "../ui/var";
-.org-header-alert .alert {
-  margin-top: 10px;
-}
-.org-header {
-  padding: 16px 0;
-  background-color: #FFF;
-  border-bottom: 1px solid #DDD;
-  img {
-    padding-right: 10px;
-  }
-}
-#org-home-header {
-  min-height: 100px;
-}
-#org-header {
-  height: 48px;
-  .org-name {
-    padding-left: 10px;
-    font-size: 1.4em;
-    height: 50px;
-    line-height: 50px;
-    margin-bottom: 0;
-  }
-  > div {
-    > .menu-line {
-      > li {
-        &.right {
-          > a {
-            font-size: 1.2em;
-            color: @dashboardHeaderLinkColor;
-            &:hover {
-              background-color: transparent;
-              color: @dashboardHeaderLinkHoverColor;
-            }
-            .octicon {
-              margin-right: 4px;
-            }
-            .label{
-              margin-left: 4px;
-            }
-          }
-          .current {
-            border-bottom: 2px solid #D26911;
-          }
-        }
-      }
-    }
-  }
-}
-#org-home-header-info {
-  padding-top: 10px;
-  h2 {
-    font-size: 30px;
-  }
-  ul {
-    list-style: none;
-    li {
-      float: left;
-      padding-right: 5px;
-    }
-  }
-}
-#org-home-repo-list {
-  padding: 10px 0;
-}
-#org-repo-list {
-  padding: 10px 0;
-  .org-repo-item {
-    border-top: 1px solid #eee;
-    padding: 30px 20px;
-    .org-repo-status {
-      list-style: none;
-      color: #888;
-      li {
-        float: left;
-        margin-right: 6px;
-      }
-    }
-    h2 {
-      margin-bottom: 5px;
-    }
-    .org-repo-description {
-      margin: 0;
-      font-size: 14px;
-      color: #666;
-    }
-    .org-repo-updated {
-      font-size: 12px;
-      display: block;
-      margin: 5px 0 0;
-      color: #808080;
-    }
-  }
-}
-.org-sidebar {
-  margin: -80px 0 0 20px;
-  .panel-footer {
-    padding: .8em 1.2em;
-  }
-  .member-avatar-group {
-    padding: 15px;
-    img {
-      width: 59px;
-      height: 59px;
-      border-radius: 3px;
-    }
-  }
-}
-#org-home-team-list {
-  padding: 0 15px;
-  ul {
-    list-style: none;
-    padding-top: 10px;
-    li {
-      padding: 10px 0;
-      border-bottom: 1px solid #eee;
-      &:last-child {
-        border-bottom: 0;
-      }
-    }
-  }
-}
-.team-name {
-  display: block;
-  font-size: 14px;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  white-space: nowrap;
-}
-.team-meta {
-  margin-top: 0;
-  margin-bottom: 0;
-  color: #777;
-}
-.org-toolbar {
-  padding: 10px 0;
-  border-bottom: 1px solid #eee;
-}
-#org-member-list {
-  .org-member-item {
-    height: 50px;
-    line-height: 50px;
-    border-bottom: 1px solid #eee;
-    padding: 15px 20px;
-    .member-name {
-      padding-left: 15px;
-    }
-    ul {
-      list-style: none;
-      li {
-        text-align: center;
-        display: inline-block;
-      }
-    }
-  }
-}
-.invite-box {
-  padding: 50px 0;
-  min-height: 130px;
-  margin: 0 auto;
-  width: 50%;
-  input {
-    width: 300px;
-  }
-}
-#org-member-list-block {
-  padding-top: 2px;
-}
-.org-team-list {
-  .org-team-list-item {
-    float: left;
-    padding: 15px;
-    width: 555px;
-    .member-avatar-group {
-      padding: 5px 15px;
-      img {
-        width: 38px;
-        height: 38px;
-        border-radius: 3px;
-      }
-    }
-  }
-}
-#team-create-form {
-  .note {
-    margin-left: 153px;
-  }
-}
-#org-team-card {
-  .desc {
-    font-size: 14px;
-    padding: 10px 20px;
-  }
-  .team-stats {
-    padding: 0 20px 10px 20px;
-    text-transform: uppercase;
-    border-bottom: 1px solid #dddddd;
-  }
-  .panel-footer {
-    padding: 10px 20px;
-  }
-}
-#team-repositories-list,
-#team-members-list {
-  .panel-body .search {
-    padding: 4px 0 10px 10px;
-    border-bottom: 1px solid #dddddd;
-  }
-  li {
-    &.collab {
-      padding-top: 10px !important;
-      border-bottom: 1px solid #dddddd;
-    }
-    &:last-child {
-      border-bottom: 0 !important;
-    }
-  }
-}
-#team-repositories-list {
-  li {
-    a .octicon {
-      color: #888;
-    }
-    .member {
-      color: @linkColor;
-      font-size: 14px;
-      height: 40px;
-      line-height: 40px;
-    }
-  }
-}

+ 0 - 59
public/ng/less/gogs/profile.less

@@ -1,59 +0,0 @@
-.profile-avatar {
-	width: 100%;
-	border-radius: 6px;
-}
-#profile-name {
-	padding: 10px 0;
-}
-#profile-fullname {
-	font-size: 1.6em;
-}
-#profile-username {
-	font-size: 1.6em;
-	font-weight: bold;
-}
-.profile-info {
-	// padding: 0 50px;
-	font-size: 14px;
-	ul {
-		padding-bottom: 10px;
-		.list-group-item {
-			background-color: transparent;
-			padding-top: 5px;
-			color: #666;
-		}
-		.profile-rel {
-			width: 31%;
-			text-align: center;
-			display: inline-block;
-			strong {
-				display: block;
-				font-size: 28px;
-				font-weight: bold;
-				line-height: 1;
-			}
-			p {
-				font-size: 12px;
-			}
-		}
-	}
-}
-#profile-header {
-	li {
-		a {
-			font-size: 1.2em;
-			color: #444444;
-			padding: .4em .8em;
-	        &:hover {
-	          background-color: transparent;
-	          color: @dashboardHeaderLinkHoverColor;
-	        }
-		}
-		.current {
-			border-bottom: 2px solid #D26911;
-		}
-	}
-}
-#profile-body {
-	margin-left: 20px;
-}

+ 0 - 878
public/ng/less/gogs/repository.less

@@ -1,878 +0,0 @@
-@import "../ui/var";
-@repoHeaderBorderColor: #D6D6D6;
-@repoHeaderBgColor: #FFF;
-@repoHeaderNameColor: #888;
-
-#repo-wrapper {
-    padding-bottom: 100px;
-}
-#repo-header {
-    height: 69px;
-    border-bottom: 1px solid@repoHeaderBorderColor;
-    background-color: @repoHeaderBgColor;
-}
-#repo-header-name {
-    line-height: 66px;
-    color: @repoHeaderNameColor;
-    font-size: 1.6em;
-    font-weight: normal;
-    margin-bottom: 0;
-    i {
-        margin-right: 12px;
-        vertical-align: middle;
-    }
-    .divider {
-        margin: 0 4px;
-    }
-}
-#repo-header-meta {
-    line-height: 66px;
-    li {
-        >a {
-            padding: 0;
-            &:hover {
-                background-color: transparent;
-            }
-        }
-    }
-    a {
-        &>.btn {
-            line-height: 16px;
-            margin-left: 16px;
-            font-size: 13px;
-            i {
-                margin-right: 6px;
-            }
-            .num {
-                margin-left: 6px;
-            }
-        }
-    }
-}
-#repo-header-download-btn {
-    >.btn>i {
-        margin-right: 0 !important;
-    }
-    &:hover {
-        &:after, .btn {
-            background-color: @btnHoverBlackColor;
-            color: #FFF;
-        }
-    }
-    &:after {
-        background-color: @btnBlackColor;
-        padding: 9px 16px 8px 0;
-        margin-left: -8px !important;
-        color: #FFF;
-        border-top: 1px solid@btnBlackColor;
-        border-bottom: 1px solid@btnBlackColor;
-        border-top-right-radius: .25em;
-        border-bottom-right-radius: .25em;
-    }
-}
-#repo-header-download-drop {
-    line-height: 24px;
-    width: 460px;
-    top: 50px;
-    left: -390px;
-    padding: 20px;
-    box-sizing: border-box;
-    z-index: 1;
-    .btn>i {
-        margin-right: 6px;
-    }
-    button, input {
-        font-size: 11px;
-    }
-    #repo-clone-copy {
-        width: 85px;
-        text-overflow: clip;
-    }
-}
-#repo-content {
-    padding-top: 18px;
-    padding-bottom: 18px;
-}
-.repo-wide-wrapper {
-    padding: 18px;
-    position: relative;
-}
-#repo-clone-url {
-    border-right: none;
-    width: 190px;
-    border-left: none;
-    cursor: default;
-}
-#repo-clone-help {
-    clear: both;
-    line-height: 48px;
-}
-#repo-clone-zip {
-    line-height: 48px;
-    a {
-        cursor: pointer;
-        color: white;
-        overflow: visible;
-        padding: .6em 1.2em;
-    }
-    .btn {
-        margin: 0 6px;
-    }
-}
-#repo-desc {
-    font-size: 1.2em;
-    .no-description{
-        color: #999;
-    }
-}
-#repo-sidebar-nav {
-    .label {
-        font-size: 12px;
-        line-height: 1.4em;
-        margin-top: 2px;
-    }
-    i {
-        margin-right: 6px;
-    }
-}
-#repo-sidebar-mini {
-    margin-top: 6px;
-    width: 60px;
-    li {
-        margin-bottom: 4px;
-    }
-    li > a {
-        position: relative;
-        padding-left: 12px;
-        width: 24px;
-        text-align: center;
-        >i.octicon {
-            font-size: 21px;
-        }
-    }
-    .num {
-        position: absolute;
-        font-size: 12px;
-        top: 0;
-        left: 36px;
-        padding: 0 2px;
-        min-width: 16px;
-        height: 16px;
-        text-align: center;
-        line-height: 16px;
-        border-radius: 4px;
-        opacity: 0.7;
-        -webkit-transform: scale(0.9);
-        font-weight: bold;
-    }
-}
-#repo-file-nav {
-    padding: .6em 0 1em 0;
-    >li>a {
-        padding-left: 0;
-    &:hover {
-        background-color: transparent;
-    }
-}
-    li.repo-jump > a {
-        padding-right: 0;
-        .btn {
-            margin-left: -1px;
-        }
-    }
-}
-#repo-branch-switch {
-    >a {
-        .btn {
-            padding-right: 30px;
-        }
-        &:after {
-            position: absolute;
-            top: 12px;
-            right: 30px;
-            margin-left: 0;
-            color: @baseFontColor;
-        }
-    }
-    >.drop-down {
-        top: 40px;
-        left: 0;
-    }
-}
-#repo-branch-filter-ipt {
-    width: 100%;
-    border-left: none;
-    border-right: none;
-    box-sizing: border-box;
-}
-#repo-branch-tag {
-    .tab-nav {
-        border-bottom: 1px solid #EAEAEA;
-        a {
-            padding: .3em .8em;
-        }
-        .js-tab-nav-show {
-            background-color: #EEE;
-            font-weight: bold;
-        }
-    }
-    .switching-list {
-        max-height: 300px;
-        overflow-y: auto;
-    }
-}
-#repo-branch-list,
-#repo-tag-list {
-    li {
-        i {
-            margin-right: 12px;
-            opacity: 0;
-        }
-    }
-    li.checked {
-        i {
-            opacity: 1;
-        }
-    }
-}
-#repo-bread {
-    .bread {
-        padding-right: 0;
-        font-size: 16px;
-        font-weight: bold;
-    }
-}
-#repo-main {
-    padding-right: 40px;
-    box-sizing: border-box;
-}
-#repo-files-table {
-    margin-bottom: 20px;
-    .sha .label {
-     font-family: Monaco,Menlo,Consolas,"Courier New",monospace;   
-    }
-    th, td {
-        text-align: left;
-        line-height: 32px;
-    }
-    td.icon {
-        width: 16px;
-        padding-right: .1em;
-        padding-left: 1em;
-    }
-    td.name {
-        max-width: 120px;
-        .text-truncate {
-            max-width: 100%;
-        }
-    }
-    td.age {
-        max-width: 120px;
-        text-align: right;
-    }
-    td.msg {
-        max-width: 440px;
-        .text-truncate {
-            max-width: 100%;
-        }
-    }
-    td.age,
-    td.size,
-    td.msg a {
-        color: #888;
-    }
-    td.msg a:hover {
-        color: #428BCA;
-        text-decoration: underline;
-    }
-    td.message {
-        .text-truncate {
-            max-width: 360px;
-        }
-    }
-    tbody {
-        background-color: #FFF;
-        tr:hover {
-            background-color: #ffffEE;
-        }
-    }
-    thead {
-        background-color: #F0F0F0;
-        .author {
-        a {
-        margin: 0 .4em;
-        }
-        }
-        .last-commit {
-            strong {
-                color: #444;
-            }
-            .text-truncate {
-                max-width: 440px;
-                margin-left: .4em;
-            }
-        }
-        .last-commit .text-truncate,
-        .age {
-            font-weight: normal;
-            color: #888;
-        }
-    }
-}
-#repo-readme,
-#repo-read-file {
-    margin-bottom: 80px;
-}
-#repo-bare-start {
-    margin-bottom: 100px;
-    .panel-content {
-        background-color: #FFF;
-    }
-    pre {
-        margin: 0 40px;
-        padding: 6px 10px;
-        border: 1px solid #ddd;
-        background: #f8f8f8;
-    }
-}
-.repo-bare {
-    #repo-bare-start {
-        h2 {
-            margin-top: 30px;
-            margin-bottom: 24px;
-        }
-    }
-    #repo-header-meta {
-        display: none;
-    }
-    .btn-first {
-        margin-left: 200px;
-    }
-    #repo-clone-copy {
-        margin-right: 200px;
-    }
-    #repo-clone-help {
-        clear: both;
-        width: 100%;
-    }
-    #repo-clone-url {
-        width: 520px;
-    }
-}
-
-/* repository create */
-
-#team-create-form,
-#repo-migrate-form,
-#repo-create-form {
-    width: 800px;
-    margin: 60px auto auto auto;
-    background: white;
-    h2 {
-        margin: .5em 1em;
-    }
-    .field {
-        margin: 1.2em 0 2em 0;
-    }
-    .ipt {
-        width: 540px;
-    }
-    textarea {
-        height: 120px;
-    }
-    .avatar {
-        vertical-align: middle;
-        margin-right: .6em;
-        width: 28px;
-        height: 28px;
-    }
-    &:hover {
-        box-shadow: 0px 0px 6px #CCC;
-    }
-}
-#repo-create-cancel {
-    margin-left: 4em;
-}
-#release-new-target-branch-list,
-#repo-create-owner-list {
-    top: 30px;
-    left: 0;
-    width: auto;
-    max-width: 300px;
-    .octicon {
-        margin-right: 12px;
-        opacity: 0;
-    }
-    .avatar {
-        width: 20px;
-        height: 20px;
-    }
-    li {
-        white-space: nowrap;
-        &.checked {
-            .octicon {
-                opacity: 1;
-            }
-        }
-        a {
-            text-overflow: ellipsis;
-            -o-text-overflow: ellipsis;
-            overflow: hidden;
-        }
-    }
-}
-#release-new-target-branch-list {
-    margin-top: -1px;
-    min-width: 150px;
-}
-#release-new-title {
-    margin-top: 10px;
-}
-#release-new-content {
-    width: 100%;
-}
-#release-preview-btn .btn {
-    border-left: 0;
-}
-#release-preview.markdown {
-    margin-top: 5px;
-    background-color: transparent;
-}
-.file-name {
-    margin-left: 1em;
-}
-.file-size {
-    font-size: 13px;
-    color: #888;
-    margin-left: 1em;
-}
-.code-view {
-    overflow: auto;
-    overflow-x: auto;
-    overflow-y: hidden;
-    background: white;
-    .view-raw {
-        min-height: 40px;
-        text-align: center;
-        padding-top: 20px;
-        .btn {
-            font-size: 1.05em;
-            line-height: 16px;
-            padding: 6px 8px;
-        }
-    }
-    table {
-        width: 100%;
-        td {
-            padding: 0;
-        }
-    }
-    .lines-num {
-        vertical-align: top;
-        text-align: right;
-        color: #999;
-        background: #f5f5f5;
-        width: 1%;
-        span {
-            font-family: Monaco,Menlo,Consolas,"Courier New",monospace;
-            line-height: 20px;
-            padding: 0 10px;  
-            cursor: pointer;
-            display: block;
-        }
-    }
-    .lines-code > pre {
-        border: none;
-        border-left: 1px solid #ddd;
-        > ol.linenums > li {
-            padding: 0 10px;
-            line-height: 20px;
-            &.active {
-                background: #ffffdd;
-            }
-        }
-    }
-}
-.repo-setting-zone {
-    padding: 30px;
-}
-#team-repositories-list,
-#team-members-list,
-#repo-collab-list {
-    list-style: none;
-    padding: 10px 0 5px 0;
-    li.collab {
-        clear: both;
-        height: 50px;
-        padding: 0 15px 0 15px;
-    }
-    a.member {
-        color: #444;
-        height: 50px;
-        line-height: 50px;
-        &:hover {
-            color: #4183C4;
-        }
-    }
-    .avatar {
-        margin-right: 1em;
-        width: 40px;
-    }
-    .remove-collab {
-        color: #DD4B39;
-    }
-}
-.repo-user-list-block {
-    position: relative;
-    top: 5px;
-}
-.setting-list {
-    width: 100%;
-    list-style: none;
-}
-#commits-list {
-    padding-top: 20px;
-    h4{
-        line-height: 30px;
-        margin-bottom: 0;
-    }
-}
-.commit-list {
-    th {
-        background-color: #FFF;
-        line-height: 28px !important;
-    }
-    .date {
-        width: 120px;
-    }
-    .author {
-        padding-left: 20px;
-        min-width: 180px;
-        img {
-            margin-top: -4px;
-        }
-    }
-    .sha a {
-        font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace;
-        font-size: 14px;
-    }
-    .message {
-        width: 60%;
-        span {
-            max-width: 500px;
-        }
-    }
-}
-
-.commit-message {
-	white-space: pre-wrap;
-}
-
-.diff-head-box {
-    margin-top: 10px;
-    .panel-body {
-        padding: 10px 15px 5px 10px;
-    }
-    .author {
-        img {
-            margin-top: -7px;
-        }
-    }
-}
-.diff-detail-box {
-    margin: 15px 0;
-    line-height: 30px;
-    ol {
-        clear: both;
-        padding-left: 0;
-        margin-bottom: 28px;
-        li {
-            list-style: none;
-            padding-bottom: 4px;
-            margin-bottom: 4px;
-            border-bottom: 1px dashed #DDD;
-            padding-left: 6px;
-        }
-    }
-    span.status{
-        display: inline-block;
-        width: 12px;
-        height: 12px;
-        margin-right: 8px;
-        vertical-align: middle;
-        &.modify {
-            background-color: #f0db88;
-        }
-        &.add {
-            background-color: #b4e2b4;
-        }
-        &.del {
-            background-color: #e9aeae;
-        }
-        &.rename {
-            background-color: #dad8ff;
-        }
-    }
-}
-.diff-box {
-    .count {
-        margin-right: 12px;
-        .bar {
-            background-color: #e75316;
-            height: 12px;
-            width: 40px;
-            display: inline-block;
-            margin: 2px 4px 0 4px;
-            vertical-align: text-top;
-            .add {
-                background-color: #77c64a;
-                height: 12px;
-            }
-        }
-    }
-    .file {
-        color: #888;
-    }
-    .panel-header {
-        font-size: 14px;
-    }
-}
-.diff-file-box {
-    .file-body.file-code {
-        .lines-num {
-            text-align: right;
-            color: #999;
-            background: #fafafa;
-            width: 1%;
-        }
-        .lines-num-old {
-            border-right: 1px solid #DDD;
-        }
-    }
-    .code-diff {
-        tbody {
-            tr {
-                &.tag-code {
-                    td, pre {
-                        background-color: #E0E0E0 !important;
-                        border-color: #ADADAD !important;
-                    }
-                    td.selected-line, td.selected-line pre {
-                        background-color: #ffffdd !important;
-                    }
-                }
-                &.same-code {
-                    td.selected-line, td.selected-line pre {
-                        background-color: #ffffdd !important;
-                    }
-                }
-                &.del-code {
-                    td, pre {
-                        background-color: #ffe2dd !important;
-                        border-color: #e9aeae !important;
-                    }
-                    td.selected-line, td.selected-line pre {
-                        background-color: #ffffdd !important;
-                    }
-                }
-                &.add-code {
-                    td, pre { 
-                        background-color: #d1ffd6 !important;
-                        border-color: #b4e2b4 !important;
-                    }
-                    td.selected-line, td.selected-line pre {
-                        background-color: #ffffdd !important;
-                    }
-                }
-                &:hover {
-                    td, pre {
-                        background-color: #FFF8D2 !important;
-                        border-color: #F0DB88 !important;   
-                    }
-                }
-            }
-        }
-    }
-}
-.compare-head-box {
-    margin-top: 10px;
-    .compare {
-        padding: 0 15px 15px 15px;
-    }
-}
-.fork-flag {
-    display: block;
-    font-size: 11px;
-    line-height: 10px;
-    white-space: nowrap;
-    margin-left: 44px;
-    margin-top: -15px;
-}
-#release {
-    h4 {
-        font-size: 18px;
-        small {
-            font-weight: 400;
-            line-height: 1;
-            color: #999;
-        }
-    }
-    #release-head {
-        margin-top: 0;
-        margin-bottom: 0;
-        padding-bottom: 20px;
-        border-bottom: 1px solid #DDD;
-        .btn {
-            margin-left: 10px;
-        }
-    }
-    .release-item {
-        &>div {
-            padding-top: 20px;
-            padding-bottom: 20px;
-        }
-        .label-green:hover {
-            background-color: @labelGreenColor;
-        }
-        .release-meta {
-            position: relative;
-            float: left;
-            padding-right: 15px;
-        }
-        .tag, 
-        .commit {
-            display: block;
-            margin-top: 12px;
-            line-height: 20px;
-        }
-        .release-detail {
-            margin-top: -1px;
-            border-left: 1px solid #DDD;
-            position: relative;
-            float: left;
-            padding-left: 15px;
-        }
-        .title {
-            line-height: 25px;
-            margin-top: 0;
-        }
-        p.info {
-            line-height: 20px;
-            color: #666;
-            margin-bottom: 15px;
-            >* {
-                margin-right: 10px;
-            }
-        }
-        .author {
-            img {
-                margin-top: -3px;
-            }
-        }
-        div.desc {
-            margin-bottom: 25px;
-            &.markdown {
-                background-color: transparent;
-            }
-        }
-        .download a {
-            margin-right: 10px;
-        }
-        .dot {
-            width: 9px;
-            height: 9px;
-            background-color: #ccc;
-            z-index: 999;
-            position: absolute;
-            display: block;
-            left: -6px;
-            top: 27px;
-            border-radius: 6px;
-            border: 1px solid #FFF;
-        }
-    }
-    #release-new-form {
-        padding-top: 15px;
-    }
-}
-
-#stars, #watchers, #forks {
-    h4 {
-        font-size: 18px;
-        padding-bottom: 20px;
-        text-transform: capitalize;
-        border-bottom: 1px solid #DDD;
-    }
-
-    h3 {
-        margin: -4px 0 0 0;
-        padding: 0;
-    }
-
-    .avatar {
-        width: 75px;
-        height: 75px;
-        float: left;
-        display: block;
-        margin-right: 10px;
-    }
-
-    .avatar-small {
-        width: 24px;
-        height: 24px;
-        float: left;
-        display: block;
-        margin-right: 10px;
-    }
-
-    ol {
-        margin-top: 10px;
-        list-style: none;
-        width: 100%;
-        overflow: hidden;
-    }
-
-    li {
-        width: 32.25%;
-        margin: 10px 10px 10px 0;
-        border-bottom: 1px solid #DDD;
-        float: left;
-        padding-bottom: 10px;
-    }
-
-    .pagination {
-        width: 100%;
-        text-align: center;
-        text-transform: capitalize;
-
-        a {
-            border-radius: 3px;
-            border: 1px solid #399ADE;
-            padding: 8px;
-            margin: 0;
-        }
-
-        .active {
-            border-radius: 3px;
-            border: 1px solid #399ADE;
-            background: #399ADE;
-            cursor: default;
-            padding: 8px;
-            margin: 0;
-            color: #FFFFFF;
-        }
-
-        .disabled {
-            border-radius: 3px;
-            border: 1px solid #DDD;
-            color: #D3D3D3;
-            cursor: default;
-            padding: 8px;
-            margin: 0;
-        }
-    }
-}
-
-#forks p {
-    padding: 5px 0;
-}

+ 0 - 131
public/ng/less/gogs/settings.less

@@ -1,131 +0,0 @@
-@import "../ui/var";
-#admin-wrapper,
-#setting-wrapper {
-    padding-bottom: 100px;
-}
-
-#setting-menu {
-  box-sizing: border-box;
-  li > a {
-    border-left: 2px solid #FFF;
-    background-color: #FFF;
-  }
-  li:hover {
-    a {
-      border-left: 2px solid #EFEFEF;
-      background-color: #EFEFEF !important;
-      color: #000 !important;
-    }
-    border-color: #EAEAEA;
-  }
-  li.current {
-    a {
-      color: #000 !important;
-      font-weight: bold;
-      border-left: 2px solid #d26911;
-    }
-  }
-}
-
-.setting-content {
-  margin-left: 32px;
-}
-
-#auth-setting-form,
-#org-setting-form,
-#repo-setting-form,
-#user-profile-form,
-#add-email-form,
-.repo-setting-form {
-    background-color: #FFF;
-    padding: 30px 0;
-    textarea {
-        margin-left: 4px;
-        height: 100px;
-    }
-    label,
-    .form-label {
-        width: 240px;
-    }
-    .ipt {
-        width: 360px;
-    }
-    .field {
-        margin-bottom: 24px;
-    }
-}
-
-#hook-type {
-    padding: 10px 0 0 0;
-    background-color: #fff;
-    .field {
-        margin-bottom: 24px;
-    }
-    label {
-        width: 240px;
-    }
-}
-
-#repo-hooks-panel,
-#repo-hooks-history-panel,
-#user-social-panel,
-#user-applications-panel,
-#user-email-panel,
-#user-ssh-panel {
-    margin-bottom: 20px;
-    .setting-list {
-        background-color: #FFF;
-        li {
-            padding: 8px 20px;
-            border-bottom: 1px solid #eaeaea;
-            &.ssh:hover {
-                background-color: #ffffEE;
-            }
-            i {
-                padding-right: 5px;
-            }
-        }
-    }
-    .active-icon {
-        width: 10px;
-        height: 10px;
-        border-radius: 6px;
-        padding: 0;
-        margin-right: 20px;
-        margin-top: 10px;
-    }
-    .ssh-content {
-        margin-left: 24px;
-        .octicon {
-            margin-right: 4px;
-        }
-        .print,
-        .access,
-        .activity {
-            color: #888;
-        }
-        .access {
-            max-width: 500px;
-        }
-    }
-    .ssh-btn {
-        margin-top: 6px;
-    }
-}
-
-.form-settings-add {
-  .panel-body {
-    background-color: #FFF;
-    padding: 30px 0;
-  }
-  .ipt {
-    width: 500px;
-  }
-  textarea {
-    height: 120px;
-    margin-left: 3px;
-  }
-  .field {
-    margin-bottom: 24px;
-  }
-}

+ 0 - 68
public/ng/less/gogs/sign.less

@@ -1,68 +0,0 @@
-@import "../ui/var";
-
-/*
-The register and sign-in page style
-*/
-
-@signPanelBgColor: #FFF;
-
-#sign-wrapper {
-  padding: 60px 0;
-}
-
-.sign-panel {
-  background-color: @signPanelBgColor;
-}
-
-.sign-form.form-align {
-  .field {
-    margin: 1.2em 0 2em 0;
-  }
-  .ipt-large {
-    width: 300px;
-  }
-  label,
-  .form-label {
-    width: 160px;
-  }
-  .chk-label {
-    width: auto;
-    text-align: left;
-    margin-left: 176px;
-  }
-  .alert{
-    margin:0 30px 24px 30px;
-  }
-  &:hover{
-    box-shadow: 0 0 6px #CCC;
-  }
-}
-
-.sign-form.container{
-  padding: 0;
-  width: 600px;
-  margin-bottom: 80px;
-}
-
-// register form element
-#sign-up-form {
-  .panel-content{
-    margin-top: 1.2em;
-  }
-  h2 {
-    margin: .5em 1em;
-  }
-}
-
-#sign-social{
-  position: relative;
-  margin: 40px 0;
-  .or{
-    position: absolute;
-    width: 30px;
-    top: -52px;
-    left: 50%;
-    background-color: #FFF;
-    margin-left: -15px;
-  }
-}

+ 0 - 11
public/ng/less/ui.less

@@ -1,11 +0,0 @@
-@import "ui/var";
-@import "ui/reset";
-@import "ui/grid";
-@import "ui/form";
-@import "ui/menu";
-@import "ui/panel";
-@import "ui/label";
-@import "ui/bread";
-@import "ui/alert";
-@import "ui/table";
-@import "ui/pager";

+ 0 - 55
public/ng/less/ui/alert.less

@@ -1,55 +0,0 @@
-@import "var";
-
-.alert{
-  padding: .6em 1.5em;
-  margin-bottom: 10px;
-  i{
-    margin-right: 8px;
-  }
-}
-
-.alert-radius{
-  border-radius: .25em;
-}
-
-.alert-red{
-  color: @alertRedColor;
-  border: 1px solid darken(@alertRedColor,10%);
-  background-color: lighten(@alertRedColor,40%);
-}
-
-.alert-blue{
-  color: @alertBlueColor;
-  border: 1px solid darken(@alertBlueColor,10%);
-  background-color: lighten(@alertBlueColor,45%);
-}
-
-.alert-green{
-  color: @alertGreenColor;
-  border: 1px solid darken(@alertGreenColor,10%);
-  background-color: lighten(@alertGreenColor,45%);
-}
-
-.alert-gray{
-  color: @alertGrayColor;
-  border: 1px solid darken(@alertGrayColor,10%);
-  background-color: lighten(@alertGrayColor,35%);
-}
-
-.alert-orange{
-  color: @alertOrangeColor;
-  border: 1px solid darken(@alertOrangeColor,10%);
-  background-color: lighten(@alertOrangeColor,45%);
-}
-.white-popup-block {
-    background: #FFF;
-    padding: 20px 30px;
-    text-align: left;
-    max-width: 650px;
-    margin: 40px auto;
-    position: relative;
-    p {
-        font-size: 14px;
-    }
-}
-

+ 0 - 18
public/ng/less/ui/bread.less

@@ -1,18 +0,0 @@
-@import "var";
-
-.breads {
-  .bread {
-    &:after {
-      content: "/";
-      font-weight: bold;
-      margin: 0 4px 0 7px;
-      color:@breadColor;
-    }
-  }
-  .bread:last-child {
-    &:after {
-      content: "";
-      margin: 0;
-    }
-  }
-}

+ 0 - 230
public/ng/less/ui/form.less

@@ -1,230 +0,0 @@
-@import "var";
-
-// Button.
-.btn {
-    white-space: nowrap;
-}
-.btn-small {
-  font-size: 0.9*@baseFontSize;
-  padding: .4em .9em;
-}
-.btn-medium {
-    font-size: @baseFontSize;
-    padding: .4em .9em;
-}
-.btn-large {
-    font-size: 1.2*@baseFontSize;
-    padding: .4em .9em;
-}
-
-.btn-green {
-  background-color: @btnGreenColor;
-  border: 1px solid @btnGreenColor;
-  &:hover {
-    background-color: @btnHoverGreenColor;
-    color: #FFF;
-  }
-}
-.btn-blue {
-  background-color: @btnBlueColor;
-  border: 1px solid @btnBlueColor;
-  &:hover {
-    background-color: @btnHoverBlueColor;
-    color: #FFF;
-  }
-}
-.btn-red {
-    color: #FFF;
-    background-color: @btnRedColor;
-    border: 1px solid @btnRedColor;
-    &:hover {
-        background-color: @btnHoverRedColor;
-        color: #FFF;
-    }
-}
-.btn-orange {
-  background-color: @btnOrangeColor;
-  border: 1px solid @btnOrangeColor;
-  &:hover {
-    background-color: @btnHoverOrangeColor;
-    color: #FFF;
-  }
-}
-
-.btn-black {
-  background-color: @btnBlackColor;
-  border: 1px solid @btnBlackColor;
-  &:hover {
-    background-color: @btnHoverBlackColor;
-    color: #FFF;
-  }
-}
-
-.btn-gray {
-  background-color: @btnGrayColor;
-  color: @baseFontColor;
-  border: 1px solid @btnGrayBorderColor;
-  &:hover {
-    background-color: @btnGrayHoverColor;
-    color: @baseFontColor;
-  }
-}
-
-.btn-white {
-  background-color: @btnWhiteColor;
-  color: @baseFontColor;
-  border: 1px solid @btnWhiteBorderColor;
-  &:hover {
-    background-color: @btnWhiteHoverColor;
-    color: @baseFontColor;
-  }
-  &.active {
-    background-color: @btnWhiteHoverColor;
-    color: @baseFontColor;
-  }
-}
-// status buttons
-
-.btn-active {
-    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1) inset, 0 0 4px rgba(0, 0, 0, .15) inset
-}
-.btn-header {
-    margin-top: -1px;
-    color: white;
-    padding: 0 10px;
-}
-.btn-link {
-    overflow: visible;
-    color: white;
-    padding: .6em 1.2em;
-}
-.btn-radius {
-    border-radius: .25em;
-}
-.btn-left-radius {
-    border-top-left-radius: .25em;
-    border-bottom-left-radius: .25em;
-}
-.btn-right-radius {
-    border-top-right-radius: .25em;
-    border-bottom-right-radius: .25em;
-}
-.btn-block {
-    display: block;
-    width: 100%;
-    box-sizing: content-box;
-    text-align: center;
-}
-.btn-comb {
-    margin-left: -1px;
-}
-
-.btn-disabled {
-  opacity: .6;
-  cursor: not-allowed;
-  box-shadow: none;
-  background-image: none !important;
-  border: none;
-  &:hover {
-    background-image: none !important;
-    color: @btnHoverFontColor;
-  }
-}
-
-.btn-group {
-  display: inline-block;
-  > .btn {
-  	position: relative;
-	float: left;
-	margin-right: -1px;
-	&:first-child{
-		border-bottom-left-radius: .25em;
-  		border-top-left-radius: .25em;
-	}
-	&:last-child{
-		border-bottom-right-radius: .25em;
-  		border-top-right-radius: .25em;
-	}
-  }
-}
-// input form elements
-.ipt {
-    &:focus {
-        border-color: @iptFocusBorderColor;
-    }
-}
-.ipt-radius {
-    border-radius: .25em;
-}
-.ipt-small {
-    font-size: .8*@baseFontSize;
-}
-.ipt-large {
-    font-size: 1.2*@baseFontSize;
-}
-.ipt-textarea {
-    height: auto !important;
-    width: auto;
-}
-.ipt-disabled,
-input[disabled] {
-  background-color: @iptDisabledColor !important;
-  &:focus {
-    background-color: @iptDisabledColor !important;
-  }
-  color: #888;
-  cursor: not-allowed;
-}
-.ipt-readonly,
-input[readonly] {
-  &:focus {
-    background-color: @iptDisabledColor !important;
-  }
-}
-.ipt-error {
-  border-color: @iptErrorBorderColor !important;
-  background-color: @iptErrorFocusColor !important;
-}
-
-.form {
-  label {
-    margin-right: 1em;
-  }
-  .help {
-    color: @formHelpFontColor;
-    padding-top: .6em;
-    display: inline-block;
-  }
-}
-
-.form-stack {
-  label {
-    display: block;
-  }
-  .field {
-    margin-bottom: 1em;
-  }
-}
-.form-align {
-  label,
-  .form-label {
-    display: inline-block;
-    width: 120px;
-    text-align: right;
-    margin-right: 1em;
-  }
-  .field {
-    margin-bottom: 1em;
-  }
-}
-label {
-    &.text-left {
-        text-align: left;
-    }
-    &.req {
-        &:after {
-            content: "*";
-            color: @labelRedColor;
-        }
-    }
-}

+ 0 - 99
public/ng/less/ui/grid.less

@@ -1,99 +0,0 @@
-@import "var";
-@import "reset";
-
-// float elements
-
-.left {
-  float: left;
-}
-
-.right {
-  float: right;
-}
-
-.clear::after {
-  clear: both;
-  content: " ";
-  width: 0;
-  height: 0;
-  display: block;
-}
-
-.hide {
-  display: none;
-}
-
-// 12 based grids
-
-.grid-1-12 {
-  width: 8.33%;
-}
-
-.grid-2-12,
-.grid-1-6 {
-  width: 16.67%;
-}
-
-.grid-3-12,
-.grid-1-4 {
-  width: 25%;
-}
-
-.grid-4-12,
-.grid-1-3 {
-  width: 33%;
-}
-
-.grid-5-12 {
-  width: 41.67%;
-}
-
-.grid-6-12,
-.grid-1-2 {
-  width: 50%;
-}
-
-.grid-7-12 {
-  width: 58.33%;
-}
-
-.grid-8-12,
-.grid-2-3 {
-  width: 66.67%;
-}
-
-.grid-9-12,
-.grid-3-4 {
-  width: 75%;
-}
-
-.grid-10-12,
-.grid-5-6 {
-  width: 83.33%;
-}
-
-.grid-11-12 {
-  width: 91.67%;
-}
-
-*[class*="grid-"] {
-  box-sizing: content-box;
-}
-
-// 5 based
-
-.grid-1-5 {
-  width: 20%;
-}
-
-.grid-2-5 {
-  width: 40%;
-}
-
-.grid-3-5 {
-  width: 60%;
-}
-
-.grid-4-5 {
-  width: 80%;
-}

+ 0 - 43
public/ng/less/ui/label.less

@@ -1,43 +0,0 @@
-@import "var";
-
-.label {
-    padding: .3em .6em .2em .6em;
-    color: @labelFontColor;
-}
-
-.label-red {
-  background-color: @labelRedColor;
-}
-
-.label-blue {
-  background-color: @labelBlueColor;
-}
-
-.label-gray {
-  background-color: @labelGrayColor;
-}
-.label-green {
-    background-color: @labelGreenColor;
-    &:hover {
-        background-color: @btnHoverGreenColor;
-        color: #FFF;
-    }
-}
-.label-orange {
-  background-color: @labelOrangeColor;
-}
-
-.label-black {
-  background-color: @labelBlackColor;
-}
-
-.label-radius{
-    border-radius: .2em;
-}
-
-.label-link{
-  color: @labelFontColor;
-  &:hover{
-    color: @labelFontColor;
-  }
-}

+ 0 - 170
public/ng/less/ui/menu.less

@@ -1,170 +0,0 @@
-@import "var";
-
-// lined menu
-
-ul.menu {
-  > li {
-    list-style: none;
-    > a {
-      padding: .8em 1.2em;
-      &:hover {
-        background-color: @lineMenuHoverBgColor;
-        color: @lineMenuHoverFontColor;
-      }
-      &.active {
-		  background-color: #4183c4;
-		  color: #FFF;
-	  }
-    }
-    &.current > a,
-    &.hover > a {
-      color: @lineMenuHoverFontColor;
-    }
-  }
-  > li.head {
-    font-weight: bold;
-    padding: .8em 1.2em;
-  }
-  > li.down:hover {
-    > ul.menu-down {
-      display: block;
-    }
-  }
-  > li.border-bottom {
-    border-bottom: 1px solid @menuBorderColor;
-    height: 0;
-    margin: .5em 0;
-  }
-}
-
-ul.menu-line {
-  > li,
-  > li > a {
-    display: inline-block;
-  }
-  > li.down {
-    position: relative;
-    > a:after {
-      content: "\25BE";
-      margin-left: .4em;
-    }
-    > ul.menu-down {
-      top: 2.1em;
-      width: 150%;
-    }
-  }
-  > li.hover {
-    position: relative;
-    > a:after {
-      position: absolute;
-      content: "\25B4";
-      left: 50%;
-      bottom: -1.1em;
-      margin-left: -4px;
-    }
-  }
-}
-
-ul.menu-vertical,
-ul.menu-down {
-  > li > a,
-  > li.head {
-    display: block;
-    padding: .4em 1.2em;
-  }
-  > li.down {
-    position: relative;
-    > a:after {
-      content: "\25B8";
-      position: absolute;
-      right: .6em;
-    }
-  }
-  > li.hover {
-    position: relative;
-    > a:after {
-      content: "\25B8";
-      position: absolute;
-      left: .5em;
-    }
-  }
-}
-
-ul.menu-border,
-ul.menu-down {
-  border: 1px solid @menuBorderColor;
-  > li.head {
-    border-bottom: 1px solid @menuBorderColor;
-  }
-}
-
-ul {
-    &.menu-down {
-        position: absolute;
-        display: none;
-        z-index: 99;
-        box-shadow: 0 0 2px @menuShadowColor;
-        background-color: @menuDownBgColor;
-    }
-    &.menu-down-show {
-        position: absolute;
-        z-index: 99;
-        box-shadow: 0 0 2px @menuShadowColor;
-        background-color: @menuDownBgColor;
-    }
-}
-
-ul.menu-radius {
-  border-radius: .3em;
-  > li {
-    &:first-child {
-      border-top-left-radius: .3em;
-      border-top-right-radius: .3em;
-      > a {
-        border-top-left-radius: .2em;
-        border-top-right-radius: .2em;
-      }
-    }
-    &:last-child {
-      border-bottom-left-radius: .3em;
-      border-bottom-right-radius: .3em;
-      > a {
-        border-bottom-left-radius: .2em;
-        border-bottom-right-radius: .2em;
-      }
-    }
-  }
-}
-
-.drop {
-  position: relative;
-  &:hover {
-    > .drop-down {
-      position: absolute;
-      top: 0;
-      left: 0;
-      width: 200%;
-      display: block;
-    }
-  }
-  > .drop-down {
-    display: none;
-    border: 1px solid @dropBorderColor;
-    box-shadow: 0 0 3px @menuShadowColor;
-    background-color: @dropDownBgColor;
-  }
-}
-
-.drop-bottom {
-  &:after {
-    content: "\25BE";
-    margin-left: .4em;
-  }
-}
-
-.drop-top {
-  &:after {
-    content: "\25B4";
-    margin-left: .4em;
-  }
-}

+ 0 - 28
public/ng/less/ui/pager.less

@@ -1,28 +0,0 @@
-@import "var";
-
-.pager{
-  .page{
-    padding: .3em .5em .2em .5em;
-    margin: 0 .3em;
-    background-color: @pagerPageBgColor;
-    color: @pagerPageColor;
-    &:hover,&.hover{
-      background-color: @pagerHoverBgColor;
-      color: @pagerHoverColor;
-    }
-  }
-  .prev,.next{
-    padding: .4em .6em;
-    margin: 0 .3em;
-    background-color: @pagerDirectionBgColor;
-    color: @pagerDirectionColor;
-    &.invalid{
-      background-color: @pagerInvalidBgColor;
-      color: @pagerInvalidColor;
-      cursor: not-allowed;
-    }
-  }
-  .page-radius{
-    border-radius: .2em;
-  }
-}

+ 0 - 54
public/ng/less/ui/panel.less

@@ -1,54 +0,0 @@
-@import "var";
-.panel {
-    border: 1px solid@panelBorderColor;
-    .panel-header {
-        font-size: 16px;
-        padding: .6em 1.2em;
-        background-color: @panelHeaderBgColor;
-        border-bottom: 1px solid@panelBorderColor;
-    }
-    .panel-body {
-        background-color: white;
-        .panel-desc {
-            padding: 0 40px 20px 40px;
-        }
-    }
-    .panel-content {
-        padding: 1em 1.2em;
-    }
-    .panel-footer {
-        padding: .6em 1.2em;
-        background-color: @panelFooterBgColor;
-        border-top: 1px solid@panelBorderColor;
-    }
-    &.panel-radius {
-        border-radius: .3em;
-        .panel-header {
-            border-top-left-radius: .3em;
-            border-top-right-radius: .3em;
-        }
-        .panel-footer {
-            border-bottom-left-radius: .3em;
-            border-bottom-right-radius: .3em;
-        }
-        .panel-content{
-          border-bottom-left-radius: .3em;
-          border-bottom-right-radius: .3em;
-        }
-    }
-    &.panel-info {
-        border-color: #85c5e5;
-        > .panel-header {
-            color: #31708f;
-            background-color: #d9edf7;
-            border-color: #85c5e5;
-        }
-    }
-    &.panel-warning {
-        border-color: #F0C36D;
-        > .panel-header {
-            background-color: #F9EDBE;
-            border-color: #F0C36D;
-        }
-    }
-}

+ 0 - 368
public/ng/less/ui/reset.less

@@ -1,368 +0,0 @@
-@import "var";
-
-* {
-  padding: 0;
-  margin: 0;
-}
-
-html {
-  font-size: @baseFontSize+1;
-  font-family: Helvetica, "Microsoft Yahei", Arial, sans-serif;
-  // make sure min font size
-  -ms-text-size-adjust: 100%;
-  -webkit-text-size-adjust: 100%;
-  line-height: @baseLineHeight;
-
-  color: @baseFontColor;
-  background-color: @baseBgColor;
-
-}
-
-input,
-textarea,
-select,
-option,
-button {
-  font-family: Helvetica, "Microsoft Yahei", Arial, sans-serif;
-}
-
-// html5 block elements
-
-article,
-aside,
-details,
-figcaption,
-figure,
-footer,
-header,
-main,
-nav,
-section,
-summary,
-.block {
-  display: block;
-}
-
-.inline {
-  display: inline;
-}
-
-.inline-block {
-  display: inline-block;
-}
-
-.dis-table {
-  display: table;
-}
-
-.dis-table-cell {
-  display: table-cell;
-}
-
-.dis-flex {
-  display: flex;
-}
-
-// html5 media elements
-
-audio,
-canvas,
-progress,
-video {
-  display: inline-block;
-  vertical-align: baseline;
-}
-
-audio:not([controls]) {
-  display: none;
-  height: 0;
-}
-
-// display hidden elements
-
-[hidden],
-template,
-.hidden {
-    display: none;
-}
-.opacity {
-    opacity: 0;
-}
-.opacity-half {
-    opacity: .5;
-}
-
-// links element
-
-a,
-.text-link {
-  color: @linkColor;
-  text-decoration: none;
-  cursor: pointer;
-  &:hover {
-    color: @linkHoverColor;
-    text-decoration: none;
-  }
-  &:focus {
-    outline: none;
-  }
-}
-
-// stylus elements
-
-b,
-strong,
-.text-bold {
-  font-weight: bold;
-}
-
-dfn,
-.text-italic {
-  font-style: italic;
-}
-
-// headers elements
-
-h1,
-.text-h1 {
-  font-size: 2em;
-  margin-bottom: 0.67em;
-}
-
-h2,
-.text-h2 {
-  font-size: 1.6em;
-  margin-bottom: 0.625em;
-}
-
-h3,
-.text-h3 {
-  font: 1.2em;
-  margin-bottom: 0.5em;
-}
-
-h4,
-h5,
-h6,
-.text-h4,
-.text-h5,
-.text-h6 {
-  font-size: 1em;
-  margin-bottom: .3em;
-}
-
-// text elements
-
-small,
-.text-small {
-  font-size: .8em;
-}
-
-sub,
-sup,
-.text-sup,
-.text-sub {
-  font-size: .7em;
-  line-height: 0;
-  position: relative;
-  vertical-align: baseline;
-}
-
-sup,
-.text-sup {
-  top: -0.5em;
-}
-
-sub,
-.text-sub {
-  bottom: -0.25em;
-}
-
-.figure,
-.blockquote {
-  margin: 1em 1.5em;
-}
-
-pre {
-  overflow: auto;
-  margin: 0;
-  padding: .4em 1em;
-}
-
-code,
-kbd,
-pre,
-samp {
-    font-family: monospace;
-    font-size: 1em;
-}
-
-.text-left {
-  text-align: left;
-}
-.text-right {
-  text-align: right;
-}
-.text-center {
-  text-align: center;
-}
-.list-no-style {
-  list-style: none;
-}
-
-// image elements
-
-img {
-  border: none;
-}
-
-svg:not(:root) {
-  overflow: hidden;
-}
-
-// form elements
-
-label {
-  font-weight: bold;
-}
-
-textarea,
-input,
-.ipt {
-  padding: .6em;
-  line-height: normal;
-  border: 1px solid @iptBorderColor;
-  &:focus {
-    background-color: @iptFocusColor;
-    outline: none;
-  }
-}
-
-button,.btn {
-  overflow: visible;
-  padding: .6em 1.2em;
-}
-
-button,
-select {
-  text-transform: none;
-  &:focus {
-    outline: none;
-  }
-}
-
-button,
-input[type="button"],
-input[type="reset"],
-input[type="submit"] {
-  -webkit-appearance: button;
-  -moz-appearance: button;
-  cursor: pointer;
-  background-color: @btnBgColor;
-  color: @btnFontColor;
-  border: none;
-  &:hover {
-    background-color: @btnHoverBgColor;
-    color: @btnHoverFontColor;
-  }
-}
-
-button[disabled],
-html input[disabled] {
-  cursor: default;
-}
-
-button::-moz-focus-inner,
-input::-moz-focus-inner {
-  border: 0;
-  padding: 0;
-}
-
-input[type="checkbox"],
-input[type="radio"] {
-  box-sizing: border-box;
-  padding: 0;
-}
-
-input[type="search"] {
-  -webkit-appearance: textfield;
-  -moz-appearance: textfield;
-  -moz-box-sizing: content-box;
-  -webkit-box-sizing: content-box;
-  box-sizing: content-box;
-}
-
-fieldset {
-  border: 1px solid @iptBorderColor;
-  margin: 0 2px;
-  padding: 0.4em 0.8em 0.8em;
-}
-
-legend {
-  border: 0;
-  padding: 0;
-}
-
-textarea {
-  overflow: auto;
-  border: 1px solid @iptBorderColor;
-  padding: .6em;
-  &:focus {
-    background-color: @iptFocusColor;
-    outline: none;
-  }
-}
-
-optgroup {
-  font-weight: bold;
-}
-
-// table elements
-table {
-    background-color: transparent;
-    border-collapse: collapse;
-    border-spacing: 0;
-}
-
-td,
-th {
-  padding: 0;
-}
-
-// hr element
-
-hr {
-  -moz-box-sizing: content-box;
-  box-sizing: content-box;
-  height: 0;
-  border: none;
-  border-bottom: 1px solid @hrColor;
-  margin-bottom: .75em;
-}
-// radius element
-
-.radius {
-  border-radius: .25em;
-}
-
-// truncate element
-
-.text-truncate {
-    overflow: hidden;
-    text-overflow: ellipsis;
-    white-space: nowrap;
-    display: inline-block;
-    vertical-align: top;
-}
-
-// code elements
-
-pre {
-  line-height: 1.6;
-  overflow: auto;
-  padding: 0;
-}
-
-dt {
-    font-weight: bold;
-}

+ 0 - 63
public/ng/less/ui/table.less

@@ -1,63 +0,0 @@
-@import "var";
-
-table {
-  th,
-  td {
-    padding: .3em .6em;
-    line-height: 30px;
-  }
-}
-
-.table-border {
-  border: 1px solid @tableBorderColor;
-  tr {
-    border-top: 1px solid @tableCellBorderColor;
-    th,
-    td, {
-      border-top: 1px solid @tableCellBorderColor;
-    }
-    &:first-child {
-      border-top: none;
-    }
-  }
-  thead {
-    border-bottom: 1px solid @tableBorderColor;
-  }
-}
-
-.table-block {
-  width: 100%;
-  box-sizing: border-box;
-}
-
-.table-radius {
-  border-collapse: separate !important;
-  border-radius: .3em;
-  thead:first-child {
-    border-top-left-radius: .3em;
-    border-top-right-radius: .3em;
-    tr:first-child {
-      border-top-left-radius: .3em;
-      > th:first-child {
-        border-top-left-radius: .3em;
-      }
-      > th:last-child {
-        border-top-right-radius: .3em;
-      }
-    }
-  }
-  tbody {
-    border-bottom-left-radius: .3em;
-    border-bottom-right-radius: .3em;
-    tr:last-child {
-      border-bottom-left-radius: .3em;
-      border-bottom-right-radius: .3em;
-      > td:first-child {
-        border-bottom-left-radius: .3em;
-      }
-      > td:last-child {
-        border-bottom-right-radius: .3em;
-      }
-    }
-  }
-}

+ 0 - 96
public/ng/less/ui/var.less

@@ -1,96 +0,0 @@
-@baseFontSize: 12px;
-
-@baseLineHeight: 24px;
-
-@baseBgColor: #FAFAFA;
-@baseFontColor: #444;
-
-@linkColor: #428BCA;
-@linkHoverColor: #399ADE;
-@linkVisitedColor: #0c172f;
-
-@iptBorderColor: #BBB;
-@iptFocusColor: #f2fffc;
-@iptFocusBorderColor: #428BCA;
-@iptDisabledColor: #F2F2F2;
-@iptErrorBorderColor: #b63b2c;
-@iptErrorFocusColor: #ffF0F0;
-@formHelpFontColor:#999;
-
-@hrColor: #DDD;
-
-@inlineCodeColor: #b63b2c;
-
-@btnBgColor: #888;
-@btnFontColor: #FAFAFA;
-@btnHoverBgColor: #444;
-@btnHoverFontColor: #FFF;
-
-@btnGreenColor: #65AD4E;
-@btnHoverGreenColor: #71BF57;
-
-@btnBlueColor: #428BCA;
-@btnHoverBlueColor: #539CDB;
-
-@btnRedColor: #D9453D;
-@btnHoverRedColor: #FF635A;
-
-@btnBlackColor: #444;
-@btnHoverBlackColor: #383838;
-
-@btnOrangeColor: #DF7514;
-@btnHoverOrangeColor: #df8229;
-
-@btnGrayColor: #F0F0F0;
-@btnGrayHoverColor: #FAFAFA;
-@btnGrayBorderColor: #D0D0D0;
-
-@btnWhiteColor: #FFF;
-@btnWhiteHoverColor: #e8e8e8;
-@btnWhiteBorderColor: #c6c6c6;
-
-@lineMenuHoverBgColor: #EAEAEA;
-@lineMenuHoverFontColor: #444;
-
-@menuBorderColor: #BBB;
-@dropBorderColor: #BBB;
-@menuShadowColor: #666;
-@dropShadowColor: #666;
-@menuDownBgColor: #FFF;
-@dropDownBgColor: #FFF;
-
-@panelBorderColor: #CCC;
-@panelHeaderBgColor: #EEE;
-@panelFooterBgColor: #EEE;
-
-@labelRedColor: #D9453D;
-@labelBlueColor: #428BCA;
-@labelGreenColor: #65AD4E;
-@labelOrangeColor: #DF7514;
-@labelBlackColor: #444;
-@labelFontColor: #FFF;
-@labelGrayColor: #999;
-
-@breadColor: #444;
-
-@alertRedColor: #D9453D;
-@alertBlueColor: #428BCA;
-@alertGreenColor: #65AD4E;
-@alertOrangeColor: #DF7514;
-@alertBlackColor: #444;
-@alertGrayColor: #999;
-
-@tableBorderColor:#D6D6D6;
-@tableCellBorderColor:#EAEAEA;
-
-@preBgColor:#444;
-@preFontColor:#FFF;
-
-@pagerPageColor:#444;
-@pagerPageBgColor:#CCC;
-@pagerHoverBgColor:#428BCA;
-@pagerHoverColor:#FFF;
-@pagerInvalidColor:#AAA;
-@pagerInvalidBgColor:#EEE;
-@pagerDirectionBgColor:#505050;
-@pagerDirectionColor:#FAFAFA;

+ 1 - 1
routers/org/members.go

@@ -50,7 +50,7 @@ func MembersAction(ctx *middleware.Context) {
 		}
 		err = models.ChangeOrgUserStatus(org.Id, uid, false)
 	case "public":
-		if ctx.User.Id != uid {
+		if ctx.User.Id != uid && !ctx.Org.IsOwner {
 			ctx.Error(404)
 			return
 		}

+ 8 - 5
routers/org/teams.go

@@ -120,7 +120,7 @@ func TeamsRepoAction(ctx *middleware.Context) {
 	var err error
 	switch ctx.Params(":action") {
 	case "add":
-		repoName := path.Base(ctx.Query("repo-name"))
+		repoName := path.Base(ctx.Query("repo_name"))
 		var repo *models.Repository
 		repo, err = models.GetRepositoryByName(ctx.Org.Organization.Id, repoName)
 		if err != nil {
@@ -280,9 +280,12 @@ func EditTeamPost(ctx *middleware.Context, form auth.CreateTeamForm) {
 
 func DeleteTeam(ctx *middleware.Context) {
 	if err := models.DeleteTeam(ctx.Org.Team); err != nil {
-		ctx.Handle(500, "DeleteTeam", err)
-		return
+		ctx.Flash.Error("DeleteTeam: " + err.Error())
+	} else {
+		ctx.Flash.Success(ctx.Tr("org.teams.delete_team_success"))
 	}
-	ctx.Flash.Success(ctx.Tr("org.teams.delete_team_success"))
-	ctx.Redirect(ctx.Org.OrgLink + "/teams")
+
+	ctx.JSON(200, map[string]interface{}{
+		"redirect": ctx.Org.OrgLink + "/teams",
+	})
 }

+ 35 - 69
routers/user/home.go

@@ -52,6 +52,37 @@ func getDashboardContextUser(ctx *middleware.Context) *models.User {
 	return ctxUser
 }
 
+func retrieveFeeds(ctx *middleware.Context, uid, offset int64, isProfile bool) {
+	actions, err := models.GetFeeds(uid, offset, isProfile)
+	if err != nil {
+		ctx.Handle(500, "GetFeeds", err)
+		return
+	}
+
+	// Check access of private repositories.
+	feeds := make([]*models.Action, 0, len(actions))
+	unameAvatars := make(map[string]string)
+	for _, act := range actions {
+		// Cache results to reduce queries.
+		_, ok := unameAvatars[act.ActUserName]
+		if !ok {
+			u, err := models.GetUserByName(act.ActUserName)
+			if err != nil {
+				if models.IsErrUserNotExist(err) {
+					continue
+				}
+				ctx.Handle(500, "GetUserByName", err)
+				return
+			}
+			unameAvatars[act.ActUserName] = u.AvatarLink()
+		}
+
+		act.ActAvatar = unameAvatars[act.ActUserName]
+		feeds = append(feeds, act)
+	}
+	ctx.Data["Feeds"] = feeds
+}
+
 func Dashboard(ctx *middleware.Context) {
 	ctx.Data["Title"] = ctx.Tr("dashboard")
 	ctx.Data["PageIsDashboard"] = true
@@ -100,46 +131,10 @@ func Dashboard(ctx *middleware.Context) {
 	ctx.Data["MirrorCount"] = len(mirrors)
 	ctx.Data["Mirrors"] = mirrors
 
-	// Get feeds.
-	actions, err := models.GetFeeds(ctxUser.Id, 0, false)
-	if err != nil {
-		ctx.Handle(500, "GetFeeds", err)
+	retrieveFeeds(ctx, ctx.User.Id, 0, false)
+	if ctx.Written() {
 		return
 	}
-
-	// Check access of private repositories.
-	feeds := make([]*models.Action, 0, len(actions))
-	unameAvatars := make(map[string]string)
-	for _, act := range actions {
-		if act.IsPrivate {
-			// This prevents having to retrieve the repository for each action
-			repo := &models.Repository{ID: act.RepoID, IsPrivate: true}
-			if act.RepoUserName != ctx.User.LowerName {
-				if has, _ := models.HasAccess(ctx.User, repo, models.ACCESS_MODE_READ); !has {
-					continue
-				}
-			}
-
-		}
-
-		// Cache results to reduce queries.
-		_, ok := unameAvatars[act.ActUserName]
-		if !ok {
-			u, err := models.GetUserByName(act.ActUserName)
-			if err != nil {
-				if models.IsErrUserNotExist(err) {
-					continue
-				}
-				ctx.Handle(500, "GetUserByName", err)
-				return
-			}
-			unameAvatars[act.ActUserName] = u.AvatarLink()
-		}
-
-		act.ActAvatar = unameAvatars[act.ActUserName]
-		feeds = append(feeds, act)
-	}
-	ctx.Data["Feeds"] = feeds
 	ctx.HTML(200, DASHBOARD)
 }
 
@@ -356,39 +351,10 @@ func Profile(ctx *middleware.Context) {
 	ctx.Data["TabName"] = tab
 	switch tab {
 	case "activity":
-		actions, err := models.GetFeeds(u.Id, 0, true)
-		if err != nil {
-			ctx.Handle(500, "GetFeeds", err)
+		retrieveFeeds(ctx, u.Id, 0, true)
+		if ctx.Written() {
 			return
 		}
-		feeds := make([]*models.Action, 0, len(actions))
-		for _, act := range actions {
-			if act.IsPrivate {
-				if !ctx.IsSigned {
-					continue
-				}
-				// This prevents having to retrieve the repository for each action
-				repo := &models.Repository{ID: act.RepoID, IsPrivate: true}
-				if act.RepoUserName != ctx.User.LowerName {
-					if has, _ := models.HasAccess(ctx.User, repo, models.ACCESS_MODE_READ); !has {
-						continue
-					}
-				}
-
-			}
-			// FIXME: cache results?
-			u, err := models.GetUserByName(act.ActUserName)
-			if err != nil {
-				if models.IsErrUserNotExist(err) {
-					continue
-				}
-				ctx.Handle(500, "GetUserByName", err)
-				return
-			}
-			act.ActAvatar = u.AvatarLink()
-			feeds = append(feeds, act)
-		}
-		ctx.Data["Feeds"] = feeds
 	default:
 		ctx.Data["Repos"], err = models.GetRepositories(u.Id, ctx.IsSigned && ctx.User.Id == u.Id)
 		if err != nil {

+ 1 - 1
templates/.VERSION

@@ -1 +1 @@
-0.7.19.1121 Beta
+0.7.20.1121 Beta

+ 23 - 0
templates/explore/repo_list.tmpl

@@ -0,0 +1,23 @@
+<div class="ui repository list">
+  {{range .Repos}}
+  <div class="item">
+    <div class="ui header">
+      <a href="{{AppSubUrl}}/{{if .Owner}}{{.Owner.Name}}{{else if $.Org}}{{$.Org.Name}}{{else}}{{$.Owner.Name}}{{end}}/{{.Name}}">{{if $.PageIsExplore}}{{.Owner.Name}} / {{end}}{{.Name}}</a>
+      {{if .IsPrivate}}
+      <span class="text gold"><i class="icon octicon octicon-lock"></i></span>
+      {{else if .IsFork}}
+      <span><i class="icon octicon octicon-repo-forked"></i></span>
+      {{else if .IsMirror}}
+      <span><i class="icon octicon octicon-repo-clone"></i></span>
+      {{end}}
+
+      <div class="ui right metas">
+        <span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
+        <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
+      </div>
+    </div>
+    {{if .Description}}<p>{{.Description}}</p>{{end}}
+    <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
+  </div>
+  {{end}}
+</div>

+ 1 - 16
templates/explore/repos.tmpl

@@ -4,22 +4,7 @@
 		<div class="ui grid">
 			{{template "explore/navbar" .}}
 			<div class="twelve wide column content">
-				<div class="ui repository list">
-					{{range .Repos}}
-					<div class="item">
-						<div class="ui header">
-							<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Owner.Name}} / {{.Name}}</a>
-
-							<div class="ui right metas">
-								<span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
-								<span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
-							</div>
-						</div>
-						{{if .Description}}<p>{{.Description}}</p>{{end}}
-						<p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
-					</div>
-					{{end}}
-				</div>
+        {{template "explore/repo_list" .}}
 
 				{{with .Page}}
 				{{if gt .TotalPages 1}}

+ 0 - 3
templates/ng/base/alert.tmpl

@@ -1,3 +0,0 @@
-{{if .Flash.ErrorMsg}}<span class="alert alert-red alert-radius block text-bold"><i class="octicon octicon-alert"></i>{{.Flash.ErrorMsg|Str2html}}</span>{{end}}
-{{if .Flash.SuccessMsg}}<div class="alert alert-green alert-radius block"><i class="octicon octicon-check"></i>{{.Flash.SuccessMsg|Str2html}}</div>{{end}}
-{{if .Flash.InfoMsg}}<div class="alert alert-blue alert-radius block"><i class="octicon octicon-info"></i>{{.Flash.InfoMsg|Str2html}}</div>{{end}}

+ 0 - 29
templates/ng/base/footer.tmpl

@@ -1,29 +0,0 @@
-		</div>
-		<footer id="footer">
-		    <div class="container clear">
-		        <p class="left" id="footer-rights">© 2015 Gogs · {{ if .ShowFooterVersion }}{{.i18n.Tr "version"}}: {{AppVer}}{{ end }} · {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> ·
-		            {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong></p>
-
-		        <div class="right" id="footer-links">
-		        		{{if .ShowFooterBranding}}
-		            <a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github-square"></i></a>
-		            <a target="_blank" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i></a>
-		            <a target="_blank" href="https://plus.google.com/communities/115599856376145964459"><i class="fa fa-google-plus"></i></a>
-		            <a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i></a>
-		            {{end}}
-		            <div id="footer-lang" class="inline drop drop-top">{{.i18n.Tr "language"}}
-		                <div class="drop-down">
-		                    <ul class="menu menu-vertical switching-list">
-		                    	{{range .AllLangs}}
-		                        <li><a href="{{if eq $.Lang .Lang}}#{{else}}{{$.Link}}?lang={{.Lang}}{{end}}">{{.Name}}</a></li>
-		                        {{end}}
-		                    </ul>
-		                </div>
-		            </div>
-		            <a target="_blank" href="http://gogs.io">{{.i18n.Tr "website"}}</a>
-		            {{ if .ShowVersionFooter }}<span class="version">{{GoVer}}</span>{{ end }}
-		        </div>
-		    </div>
-		</footer>
-	</body>
-</html>

+ 0 - 45
templates/ng/base/head.tmpl

@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<html{{if .BrowserSupportsCopy}} class="is-copy-enabled"{{end}}>
-	<head data-suburl="{{AppSubUrl}}">
-		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
-        <meta name="author" content="Gogs - Go Git Service" />
-		<meta name="description" content="Gogs(Go Git Service) a painless self-hosted Git Service written in Go" />
-		<meta name="keywords" content="go, git, self-hosted, gogs">
-		<meta name="referrer" content="no-referrer" />
-		<meta name="_csrf" content="{{.CsrfToken}}" />
-		{{if .GoGetImport}}
-		<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
-		<meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
-		{{end}}
-
-		<link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />
-
-
-		<link rel="stylesheet" href="{{AppSubUrl}}/ng/css/font-awesome.min.css">
-		
-		<script src="{{AppSubUrl}}/ng/js/lib/jquery-1.11.1.min.js"></script>
-
-		<!-- Stylesheet -->
-		<link rel="stylesheet" href="{{AppSubUrl}}/ng/css/ui.css">
-		<link rel="stylesheet" href="{{AppSubUrl}}/ng/css/gogs.css">
-		<link rel="stylesheet" href="{{AppSubUrl}}/ng/css/tipsy.css">
-		<link rel="stylesheet" href="{{AppSubUrl}}/ng/css/magnific-popup.css">
-		<link rel="stylesheet" href="{{AppSubUrl}}/ng/fonts/octicons.css">
-		<link rel="stylesheet" href="{{AppSubUrl}}/css/github.min.css">
-
-		<!-- JavaScript -->
-    	<script src="{{AppSubUrl}}/ng/js/lib/lib.js"></script>
-    	<script src="{{AppSubUrl}}/ng/js/lib/jquery.tipsy.js"></script>
-    	<script src="{{AppSubUrl}}/ng/js/lib/jquery.magnific-popup.min.js"></script>
-	<script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script>
-        <script src="{{AppSubUrl}}/ng/js/utils/tabs.js"></script>
-        <script src="{{AppSubUrl}}/ng/js/utils/preview.js"></script>
-		<script src="{{AppSubUrl}}/ng/js/gogs/issue_label.js"></script>
-		<script src="{{AppSubUrl}}/ng/js/gogs.js"></script>
-
-		<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
-	</head>
-	<body>
-		<div id="wrapper">
-		<noscript>Please enable JavaScript in your browser!</noscript>

+ 0 - 60
templates/ng/base/header.tmpl

@@ -1,60 +0,0 @@
-<header id="header">
-    <ul class="menu menu-line container" id="header-nav">
-        {{if not .PageIsHome}}
-        <li class="head" id="header-nav-logo">
-            <img src="{{AppSubUrl}}/img/favicon.png" alt="avatar" class="avatar-30"/>
-        </li>
-        <li {{if .PageIsDashboard}}class="current"{{end}}>
-            <a href="{{AppSubUrl}}/">{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}</a>
-        </li>
-        <li><a href="{{AppSubUrl}}/explore">{{.i18n.Tr "explore"}}</a></li>
-        <li><a target="_blank" href="http://gogs.io/docs">{{.i18n.Tr "help"}}</a></li>
-        {{end}}
-
-        {{if .IsSigned}}
-        <li class="right" id="header-nav-sign-out">
-            <a href="{{AppSubUrl}}/user/logout" title="{{.i18n.Tr "sign_out"}}"><i class="octicon octicon-sign-out"></i></a>
-        </li>
-        <li class="right {{if .PageIsUserSettings}}current{{end}}">
-            <a href="{{AppSubUrl}}/user/settings" title="{{.i18n.Tr "account_settings"}}"><i class="octicon octicon-settings"></i></a>
-        </li>
-            {{if .IsAdmin}}
-            <li class="right {{if .PageIsAdmin}}current{{end}}">
-                <a href="{{AppSubUrl}}/admin" title="{{.i18n.Tr "admin_panel"}}"><i class="octicon octicon-circuit-board"></i></a>
-            </li>
-            {{end}}
-        <li class="right down">
-            <a href="#"><i class="octicon octicon-plus"></i></a>
-            <ul class="menu menu-down" id="header-new-repo-menu">
-                <li><a href="{{AppSubUrl}}/repo/create"><i class="octicon octicon-repo-create"></i>{{.i18n.Tr "new_repo"}}</a></li>
-                <li><a href="{{AppSubUrl}}/repo/migrate"><i class="octicon octicon-repo-clone"></i>{{.i18n.Tr "new_migrate"}}</a></li>
-                <li><a href="{{AppSubUrl}}/org/create"><i class="octicon octicon-organization"></i>{{.i18n.Tr "new_org"}}</a></li>
-            </ul>
-        </li>
-        <li class="right" id="header-nav-user">
-            <a href="{{AppSubUrl}}/{{.SignedUser.Name}}" class="text-bold">
-                <img src="{{.SignedUser.AvatarLink}}" alt="user-avatar" class="avatar-30"/>
-                {{.SignedUser.Name}}
-            </a>
-        </li>
-        {{else}}
-            {{if .PageIsHome}}
-            <li class="right" id="header-nav-help">
-                <a target="_blank" href="http://gogs.io/docs"><i class="octicon octicon-info"></i>&nbsp;&nbsp;{{.i18n.Tr "help"}}</a>
-            </li>
-            <li class="right" id="header-nav-explore">
-                <a href="{{AppSubUrl}}/explore"><i class="octicon octicon-globe"></i>&nbsp;&nbsp;{{.i18n.Tr "explore"}}</a>
-            </li>
-            {{else}}
-            <li class="right" id="header-nav-sign-in">
-                <a href="{{AppSubUrl}}/user/login" title="Sign In"><i class="octicon octicon-sign-in"></i> {{.i18n.Tr "sign_in"}}</a>
-            </li>
-            {{if .ShowRegistrationButton}}
-            <li class="right">
-                <a href="{{AppSubUrl}}/user/sign_up" title="Account Settings"><i class="octicon octicon-person-add"></i> {{.i18n.Tr "register"}}</a>
-            </li>
-            {{end}}
-            {{end}}
-        {{end}}
-    </ul>
-</header>

+ 0 - 16
templates/org/base/header.tmpl

@@ -1,16 +0,0 @@
-<div class="org-header" id="org-header">
-	<div class="container">
-		<a class="text-black left" href="{{AppSubUrl}}/org/{{.Org.LowerName}}">
-			<img class="avatar-48 left" src="{{.Org.AvatarLink}}?s=100">
-			<span class="org-name">{{if .Org.FullName}}{{.Org.FullName}}{{else}}{{.Org.Name}}{{end}}</span>
-		</a>
-		<ul class="menu menu-line container">
-			<li class="right">
-				<a {{if .PageIsOrgTeams}}class="current"{{end}} href="{{.OrgLink}}/teams"><i class="octicon octicon-jersey"></i> {{.i18n.Tr "org.teams"}} <span class="label label-gray label-radius">{{.Org.NumTeams}}</span></a>
-			</li>
-			<li class="right">
-				<a {{if .PageIsOrgMembers}}class="current"{{end}} href="{{.OrgLink}}/members"><i class="octicon octicon-organization"></i> {{.i18n.Tr "org.people"}} <span class="label label-gray label-radius">{{.Org.NumMembers}}</span></a>
-			</li>
-		</ul>
-	</div>
-</div>

+ 81 - 89
templates/org/home.tmpl

@@ -1,93 +1,85 @@
-{{template "ng/base/head" .}}
-{{template "ng/base/header" .}}
-<div class="org-header" id="org-home-header">
-	<div class="container clear">
-		<img class="avatar-100 left" src="{{.Org.AvatarLink}}?s=140"/>
-		<div id="org-home-header-info">
-			<h2>
-				{{.Org.FullName}}
-				{{if .IsOrganizationOwner}}<a class="text-grey" href="{{.OrgLink}}/settings"><span class="octicon octicon-gear"></span></a>{{end}}
-			</h2>
-			{{if .Org.Description}}<p>{{.Org.Description}}</p>{{end}}
-      <ul class="text-grey">
-        {{if .Org.Location}}<li><span class="octicon octicon-location"></span> <span>{{.Org.Location}}</span></li>{{end}}
-        {{if .Org.Website}}<li><span class="octicon octicon-link"></span> <a target="_blank" href="{{.Org.Website}}">{{.Org.Website}}</a></li>{{end}}
-        {{if and .Org.Email .IsSigned}}<li><span class="octicon octicon-mail"></span> <a href="mailto:{{.Org.Email}}">{{.Org.Email}}</a></li>{{end}}
-      </ul>
-		</div>
-	</div>
-</div>
-<div class="container">
-	{{$isMember := .Org.IsOrgMember $.SignedUser.Id}}
-  <div id="org-home-repo-list" class="left grid-2-3">
-    <div class="clear">
-	  	{{if .IsOrganizationOwner}}
-	     <a class="btn btn-green btn-large btn-link btn-radius right" href="{{AppSubUrl}}/repo/create?org={{.Org.Id}}"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "new_repo"}}</a>
-	  	{{end}}
-    </div>
-    <div id="org-repo-list">
-		{{range .Repos}}
-			{{if or (not .IsPrivate) (.HasAccess $.SignedUser)}}
-			<div class="org-repo-item">
-        <ul class="org-repo-status right">
-          <li><i class="octicon octicon-star"></i> {{.NumStars}}</li>
-          <li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li>
-        </ul>
-				<h2><a href="{{AppSubUrl}}/{{$.Org.Name}}/{{.Name}}">{{.Name}}</a></h2>
-				<p class="org-repo-description">{{.Description}}</p>
-				<p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
-			</div>
-			{{end}}
-		{{end}}
+{{template "base/head" .}}
+<div class="organization profile">
+  <div class="ui container">
+    <div class="ui grid">
+      <div class="ui sixteen wide column">
+        <img class="ui left" id="org-avatar" src="{{.Org.AvatarLink}}?s=140"/>
+        <div id="org-info">
+          <div class="ui header">
+            {{.Org.FullName}}
+            {{if .IsOrganizationOwner}}<a class="text grey" href="{{.OrgLink}}/settings"><span class="icon octicon octicon-gear"></span></a>{{end}}
+          </div>
+          {{if .Org.Description}}<p class="desc">{{.Org.Description}}</p>{{end}}
+          <div class="text grey meta">
+            {{if .Org.Location}}<div class="item"><span class="icon octicon octicon-location"></span> <span>{{.Org.Location}}</span></div>{{end}}
+            {{if .Org.Website}}<div class="item"><span class="icon octicon octicon-link"></span> <a target="_blank" href="{{.Org.Website}}">{{.Org.Website}}</a></div>{{end}}
+          </div>
+        </div>
+
+      </div>
     </div>
   </div>
-  <div class="grid-1-3 right">
-  	<div class="org-sidebar">
-    	<div class="panel panel-radius">
-    		<div class="panel-header">
-    			{{if $isMember}}
-    			<a class="text-grey right" href="{{AppSubUrl}}/org/{{.Org.LowerName}}/members"><strong>{{.Org.NumMembers}}</strong><span class="octicon octicon-chevron-right"></span></a>
-    			{{end}}
-    			<strong>{{.i18n.Tr "org.people"}}</strong>
-    		</div>
-    		<div class="panel-body member-avatar-group">
-    			{{range .Members}}
-						{{if or $isMember (.IsPublicMember $.Org.Id)}}
-	    			<a href="{{AppSubUrl}}/{{.Name}}" title="{{.Name}}"><img src="{{.AvatarLink}}"></a>
-	    			{{end}}
-    			{{end}}
-    		</div>
-    		{{if .IsOrganizationOwner}}
-    		<div class="panel-footer">
-    			<a class="btn btn-medium btn-blue btn-link btn-radius" href="{{AppSubUrl}}/org/{{.Org.LowerName}}/invitations/new">{{.i18n.Tr "org.invite_someone"}}</a>
-    		</div>
-    		{{end}}
-    	</div>
-    	{{if $isMember}}
-    	<br>
-    	<div class="panel panel-radius">
-    		<div class="panel-header">
-    			<a class="text-grey right" href="{{AppSubUrl}}/org/{{.Org.LowerName}}/teams"><strong>{{.Org.NumTeams}}</strong><span class="octicon octicon-chevron-right"></span></a>
-    			<strong>{{.i18n.Tr "org.teams"}}</strong>
-    		</div>
-    		<div class="panel-body" id="org-home-team-list">
-    			<ul>
-	    			{{range .Teams}}
-    				<li>
-    					<a class="text-black" href="{{AppSubUrl}}/org/{{$.Org.LowerName}}/teams/{{.LowerName}}"><strong class="team-name">{{.Name}}</strong></a>
-    					<p class="team-meta">{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}} · {{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}</p>
-    				</li>
-	    			{{end}}
-    			</ul>
-    		</div>
-    		{{if .IsOrganizationOwner}}
-    		<div class="panel-footer">
-    			<a class="btn btn-medium btn-blue btn-link btn-radius" href="{{AppSubUrl}}/org/{{$.Org.LowerName}}/teams/new">{{.i18n.Tr "org.create_new_team"}}</a>
-    		</div>
-    		{{end}}
-    	</div>
-    	{{end}}
-  	</div>
+
+  <div class="ui divider"></div>
+
+  <div class="ui container">
+    <div class="ui grid">
+      {{$isMember := .Org.IsOrgMember $.SignedUser.Id}}
+      <div class="ui eleven wide column">
+        {{if .IsOrganizationOwner}}
+        <div class="text right">
+          <a class="ui green button" href="{{AppSubUrl}}/repo/create?org={{.Org.Id}}"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "new_repo"}}</a>
+        </div>
+        <div class="ui divider"></div>
+        {{end}}
+        {{template "explore/repo_list" .}}
+      </div>
+
+      <div class="ui five wide column">
+        <h4 class="ui top attached header">
+          <strong>{{.i18n.Tr "org.people"}}</strong>
+          {{if $isMember}}
+          <div class="ui right">
+            <a class="text grey" href="{{.Org.HomeLink}}/members"><strong>{{.Org.NumMembers}}</strong><span class="octicon octicon-chevron-right"></span></a>
+          </div>
+          {{end}}
+        </h4>
+        <div class="ui attached segment members">
+          {{range .Members}}
+            {{if or $isMember (.IsPublicMember $.Org.Id)}}
+            <a href="{{.HomeLink}}" title="{{.Name}}"><img class="ui avatar" src="{{.AvatarLink}}"></a>
+            {{end}}
+          {{end}}
+        </div>
+        {{if .IsOrganizationOwner}}
+        <div class="ui bottom attached segment">
+          <a class="ui blue small button" href="{{.Org.HomeLink}}/invitations/new">{{.i18n.Tr "org.invite_someone"}}</a>
+        </div>
+        {{end}}
+
+        {{if $isMember}}
+        <div class="ui top attached header">
+          <strong>{{.i18n.Tr "org.teams"}}</strong>
+          <div class="ui right">
+            <a class="text grey" href="{{.Org.HomeLink}}/teams"><strong>{{.Org.NumTeams}}</strong><span class="octicon octicon-chevron-right"></span></a>
+          </div>
+        </div>
+        <div class="ui attached table segment teams">
+          {{range .Teams}}
+          <div class="item">
+            <a href="{{$.Org.HomeLink}}/teams/{{.LowerName}}"><strong class="team-name">{{.Name}}</strong></a>
+            <p class="text grey">{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}} · {{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}</p>
+          </div>
+          {{end}}
+        </div>
+        {{if .IsOrganizationOwner}}
+        <div class="ui bottom attached segment">
+          <a class="ui blue small button" href="{{.Org.HomeLink}}/teams/new">{{.i18n.Tr "org.create_new_team"}}</a>
+        </div>
+        {{end}}
+        {{end}}
+      </div>
+    </div>
   </div>
 </div>
-{{template "ng/base/footer" .}}
+{{template "base/footer" .}}

+ 21 - 16
templates/org/member/invite.tmpl

@@ -1,18 +1,23 @@
-{{template "ng/base/head" .}}
-{{template "ng/base/header" .}}
-{{template "org/base/header" .}}
-<div class="container">
-	<div class="invite-box" id="invite-box">
-    	{{template "ng/base/alert" .}}
-		<h3>{{.i18n.Tr "org.members.invite_desc" .Org.FullName}}</h3>
-		<form id="invite-member-form" action="{{.OrgLink}}/invitations/new" method="post">
-			{{.CsrfTokenHtml}}
-			<input class="ipt ipt-large ipt-radius" id="org-member-invite" name="uname" autocomplete="off" required>
-			<button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "org.members.invite_now"}}</button>
-			<div id="org-member-list-block">
-				<ul class="menu-down-show menu-vertical menu-radius switching-list user-list" id="org-member-invite-list"></ul>
-			</div>
-		</form>
+{{template "base/head" .}}
+<div class="organization invite">
+	{{template "org/header" .}}
+  <div class="ui container">
+		<div id="invite-box">
+    	{{template "base/alert" .}}
+			<h2>{{.i18n.Tr "org.members.invite_desc" .Org.DisplayName}}</h2>
+		  <form class="ui form" action="{{.Link}}" method="post">
+		    {{.CsrfTokenHtml}}
+		    <div class="inline field ui left">
+		    	<div id="search-user-box">
+		    	  <div class="ui input">
+		    	    <input class="prompt" name="uname" placeholder="{{.i18n.Tr "repo.settings.search_user_placeholder"}}" autocomplete="off" autofocus required>
+		    	  </div>
+		    	  <div class="ui segment results hide"></div>
+		    	</div>
+		    </div>
+        <button class="ui blue button">{{.i18n.Tr "org.members.invite_now"}}</button>
+      </form>
+		</div>
 	</div>
 </div>
-{{template "ng/base/footer" .}}
+{{template "base/footer" .}}

+ 54 - 43
templates/org/member/members.tmpl

@@ -1,49 +1,60 @@
-{{template "ng/base/head" .}}
-{{template "ng/base/header" .}}
-{{template "org/base/header" .}}
-<div class="container">
-	<div class="org-header-alert">
-		{{template "ng/base/alert" .}}
-	</div>
-	<div class="org-toolbar clear">
+{{template "base/head" .}}
+<div class="organization members">
+	{{template "org/header" .}}
+  <div class="ui container">
+  	{{template "base/alert" .}}
 		{{if .IsOrganizationOwner}}
-        <a class="btn btn-green btn-large btn-link btn-radius right" href="{{.OrgLink}}/invitations/new"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "org.invite_someone"}}</a>
+    <div class="text right">
+      <a class="ui blue button" href="{{.OrgLink}}/invitations/new"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "org.invite_someone"}}</a>
+    </div>
+    <div class="ui divider"></div>
 		{{end}}
-	</div>
-	<div id="org-member-list">
-		{{range .Members}}
-		<div class="org-member-item">
-			<img class="avatar-48 left" src="{{.AvatarLink}}?s=100">
-			<a class="text-black" href="{{AppSubUrl}}/{{.Name}}"><span class="member-name"><strong>{{.FullName}}</strong>({{.Name}})</span></a>
-			<ul class="grid-6-12 right">
-				<li class="grid-1-3">
-				{{ $isPublic := .IsPublicMember $.Org.Id}}
-				{{if $isPublic}}
-					{{$.i18n.Tr "org.members.public"}}
-					{{if eq $.SignedUser.Id .Id}}(<a href="{{$.OrgLink}}/members/action/private?uid={{.Id}}">{{$.i18n.Tr "org.members.public_helper"}}</a>){{end}}
-				{{else}}
-					{{$.i18n.Tr "org.members.private"}}
-					{{if eq $.SignedUser.Id .Id}}(<a href="{{$.OrgLink}}/members/action/public?uid={{.Id}}">{{$.i18n.Tr "org.members.private_helper"}}</a>){{end}}
-				{{end}}
-				</li>
-				<li class="grid-1-4">{{if .IsUserOrgOwner $.Org.Id}}<strong>{{$.i18n.Tr "org.members.owner"}}</strong>{{else}}{{$.i18n.Tr "org.members.member"}}{{end}}</li>
-				{{if eq $.SignedUser.Id .Id}}
-					<li class="grid-1-6 right">
-						<a class="btn btn-red btn-link btn-radius" href="{{$.OrgLink}}/members/action/leave?uid={{.Id}}">{{$.i18n.Tr "org.members.leave"}}</a>
-					</li>
-				{{else if $.IsOrganizationOwner}}
-					<li class="grid-1-6 right">
-						<a class="btn btn-red btn-link btn-radius" href="{{$.OrgLink}}/members/action/remove?uid={{.Id}}">{{$.i18n.Tr "org.members.remove"}}</a>
-					</li>
-					{{if $isPublic}}
-						<li class="grid-1-6 right">
-							<a class="btn btn-blue btn-link btn-radius" href="{{$.OrgLink}}/members/action/private?uid={{.Id}}">{{$.i18n.Tr "org.members.conceal"}}</a>
-						</li>
+		
+		<div class="list">
+			{{range .Members}}
+			<div class="item ui grid">
+				<div class="ui one wide column">
+					<img class="ui avatar" src="{{.AvatarLink}}?s=48">
+				</div>
+				<div class="ui three wide column">
+					<div class="meta"><a href="{{.HomeLink}}">{{.Name}}</a></div>
+					<div class="meta">{{.FullName}}</div>
+				</div>
+				<div class="ui five wide column center">
+					<div class="meta">
+						{{$.i18n.Tr "org.members.membership_visibility"}}
+					</div>
+					<div class="meta">
+						{{ $isPublic := .IsPublicMember $.Org.Id}}
+						{{if $isPublic}}
+							<strong>{{$.i18n.Tr "org.members.public"}}</strong>
+							{{if or (eq $.SignedUser.Id .Id) $.IsOrganizationOwner}}(<a href="{{$.OrgLink}}/members/action/private?uid={{.Id}}">{{$.i18n.Tr "org.members.public_helper"}}</a>){{end}}
+						{{else}}
+							<strong>{{$.i18n.Tr "org.members.private"}}</strong>
+							{{if or (eq $.SignedUser.Id .Id) $.IsOrganizationOwner}}(<a href="{{$.OrgLink}}/members/action/public?uid={{.Id}}">{{$.i18n.Tr "org.members.private_helper"}}</a>){{end}}
+						{{end}}
+					</div>
+				</div>
+				<div class="ui three wide column center">
+					<div class="meta">
+						{{$.i18n.Tr "org.members.member_role"}}
+					</div>
+					<div class="meta">
+						<strong>{{if .IsUserOrgOwner $.Org.Id}}<span class="octicon octicon-shield"></span> {{$.i18n.Tr "org.members.owner"}}{{else}}{{$.i18n.Tr "org.members.member"}}{{end}}</strong>
+					</div>
+				</div>
+				<div class="ui four wide column">
+					<div class="text right">
+					{{if eq $.SignedUser.Id .Id}}
+						<a class="ui red small button" href="{{$.OrgLink}}/members/action/leave?uid={{.Id}}">{{$.i18n.Tr "org.members.leave"}}</a>
+					{{else if $.IsOrganizationOwner}}
+						<a class="ui red small button" href="{{$.OrgLink}}/members/action/remove?uid={{.Id}}">{{$.i18n.Tr "org.members.remove"}}</a>
 					{{end}}
-				{{end}}
-			</ul>
+					</div>
+				</div>
+			</div>
+			{{end}}
 		</div>
-		{{end}}
 	</div>
 </div>
-{{template "ng/base/footer" .}}
+{{template "base/footer" .}}

+ 41 - 40
templates/org/team/members.tmpl

@@ -1,45 +1,46 @@
-{{template "ng/base/head" .}}
-{{template "ng/base/header" .}}
-{{template "org/base/header" .}}
-<div id="setting-wrapper" class="main-wrapper">
-    <div id="team-members-list" class="container clear">
-		{{template "ng/base/alert" .}}
-		{{template "org/team/sidebar" .}}
-		<div class="grid-2-3 left">
-			<div class="setting-content">
-				<div class="panel panel-radius">
-					<div class="panel-header">
-						{{.i18n.Tr "org.teams.members"}}
-					</div>
-                    <ul class="panel-body setting-list" id="team-members-list">
-                    	{{if .IsOrganizationOwner}}
-						<li class="search">
-			                <form class="form form-align" action="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/add" id="repo-collab-form">
-			                    {{.CsrfTokenHtml}}
-			                    <input type="hidden" name="uid" value="{{.SignedUser.Id}}">
-                                <input class="ipt ipt-large ipt-radius" id="org-team-members-add" name="uname" autocomplete="off" required />
-                                <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "org.teams.add_team_member"}}</button>
-								<div class="repo-user-list-block">
-									<ul class="menu-down-show menu-vertical menu-radius switching-list user-list" id="org-team-members-list"></ul>
-								</div>
-			                </form>
-						</li>
+{{template "base/head" .}}
+<div class="organization teams">
+	{{template "org/header" .}}
+  <div class="ui container">
+  	{{template "base/alert" .}}
+  	<div class="ui grid">
+			{{template "org/team/sidebar" .}}
+			<div class="ui ten wide column">
+				<div class="ui top attached header">
+					{{.i18n.Tr "org.teams.members"}}
+				</div>
+				<div class="ui attached table segment members">
+      		{{range .Team.Members}}
+					<div class="item">
+      			{{if $.IsOrganizationOwner}}
+						<a class="ui red small button right" href="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/remove?uid={{.Id}}">{{$.i18n.Tr "org.members.remove"}}</a>
 						{{end}}
-                		{{range .Team.Members}}
-                		<li class="collab">
-                			{{if $.IsOrganizationOwner}}
-							<a class="btn btn-small btn-red btn-radius right" href="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/remove?uid={{.Id}}">{{$.i18n.Tr "org.members.remove"}}</a>
-							{{end}}
-							<a class="member" href="{{AppSubUrl}}/{{.Name}}">
-							    <img alt="{{.Name}}" class="pull-left avatar" src="{{.AvatarLink}}">
-							    <strong>{{.FullName}}</strong> ({{.Name}})
-							</a>
-                		</li>
-                		{{end}}
-                    </ul>
+						<a href="{{.HomeLink}}">
+						  <img class="ui avatar image" src="{{.AvatarLink}}">
+					    {{.DisplayName}}
+						</a>
+      		</div>
+      		{{end}}
+				</div>
+      	{{if .IsOrganizationOwner}}
+				<div class="ui bottom attached segment">
+				  <form class="ui form" id="add-member-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/add" method="post">
+            {{.CsrfTokenHtml}}
+            <input type="hidden" name="uid" value="{{.SignedUser.Id}}">
+				    <div class="inline field ui left">
+				    	<div id="search-user-box">
+				    	  <div class="ui input">
+				    	    <input class="prompt" name="uname" placeholder="{{.i18n.Tr "repo.settings.search_user_placeholder"}}" autocomplete="off" required>
+				    	  </div>
+				    	  <div class="ui segment results hide"></div>
+				    	</div>
+				    </div>
+	          <button class="ui green button">{{.i18n.Tr "org.teams.add_team_member"}}</button>
+        	</form>
 				</div>
+				{{end}}
 			</div>
-		</div>
+  	</div>
 	</div>
 </div>
-{{template "ng/base/footer" .}}
+{{template "base/footer" .}}

+ 72 - 60
templates/org/team/new.tmpl

@@ -1,70 +1,82 @@
-{{template "ng/base/head" .}}
-{{template "ng/base/header" .}}
-{{template "org/base/header" .}}
-<div id="repo-wrapper">
-    <form id="team-create-form" class="form form-align panel panel-radius" action="{{if .PageIsOrgTeamsNew}}{{.OrgLink}}/teams/new{{else}}{{.OrgLink}}/teams/{{.Team.LowerName}}/edit{{end}}" data-delete-url="{{.OrgLink}}/teams/{{.Team.LowerName}}/delete" method="post">
+{{template "base/head" .}}
+<div class="organization new team">
+  {{template "org/header" .}}
+  <div class="ui middle very relaxed page grid">
+    <div class="column">
+      <form class="ui form" action="{{if .PageIsOrgTeamsNew}}{{.OrgLink}}/teams/new{{else}}{{.OrgLink}}/teams/{{.Team.LowerName}}/edit{{end}}" data-delete-url="{{.OrgLink}}/teams/{{.Team.LowerName}}/delete" method="post">
         {{.CsrfTokenHtml}}
-        <div class="panel-header">
-            <h2>
-                {{if .PageIsOrgTeamsNew}}{{.i18n.Tr "org.create_new_team"}}{{else}}{{.i18n.Tr "org.teams.settings"}}{{end}}
-            </h2>
-        </div>
-        <div class="panel-content">
-            {{template "ng/base/alert" .}}
+        <h3 class="ui top attached header">
+          {{if .PageIsOrgTeamsNew}}{{.i18n.Tr "org.create_new_team"}}{{else}}{{.i18n.Tr "org.teams.settings"}}{{end}}
+        </h3>
+        <div class="ui attached segment">
+          {{template "base/alert" .}}
+          <div class="required field {{if .Err_TeamName}}error{{end}}">
+            <label for="team_name">{{.i18n.Tr "org.team_name"}}</label>
+            {{if eq .Team.LowerName "owners"}}
+            <input type="hidden" name="team_name" value="{{.team_name}}">
+            {{end}}
+            <input id="team_name" name="team_name" value="{{.team_name}}" required {{if eq .Team.LowerName "owners"}}disabled{{end}} autofocus>
+            <span class="help">{{.i18n.Tr "org.team_name_helper"}}</span>
+          </div>
+          <div class="field {{if .Err_Description}}error{{end}}">
+            <label for="desc">{{.i18n.Tr "org.team_desc"}}</label>
+            <input id="desc" name="desc" value="{{.desc}}">
+            <span class="help">{{.i18n.Tr "org.team_desc_helper"}}</span>
+          </div>
+          {{if not (eq .Team.LowerName "owners")}}
+          <div class="grouped field">
+            <label>{{.i18n.Tr "org.team_permission_desc"}}</label>
+            <br>
             <div class="field">
-                <label class="req" for="team-name">{{.i18n.Tr "org.team_name"}}</label>
-                {{if eq .Team.LowerName "owners"}}
-                <input type="hidden" name="team_name" value="{{.team_name}}">
-                {{end}}
-                <input class="ipt ipt-large ipt-radius {{if .Err_TeamName}}ipt-error{{end}}" id="team-name" name="team_name" value="{{.team_name}}" required {{if eq .Team.LowerName "owners"}}disabled{{end}} />
-                <span class="form-label"></span>
-                <span class="help">{{.i18n.Tr "org.team_name_helper"}}</span>
+              <div class="ui radio checkbox">
+                <input type="radio" name="permission" value="read" {{if or .PageIsOrgTeamsNew (eq .Team.Authorize 1)}}checked{{end}}>
+                <label>{{.i18n.Tr "org.teams.read_access"}}</label>
+                <span class="help">{{.i18n.Tr "org.teams.read_access_helper"}}</span>
+              </div>
             </div>
             <div class="field">
-                <label for="desc">{{.i18n.Tr "org.team_desc"}}</label>
-                <input class="ipt ipt-large ipt-radius {{if .Err_Description}}ipt-error{{end}}" id="desc" name="desc" value="{{.desc}}" />
-                <span class="form-label"></span>
-                <span class="help">{{.i18n.Tr "org.team_desc_helper"}}</span>
+              <div class="ui radio checkbox">
+                <input type="radio" name="permission" value="write" {{if eq .Team.Authorize 2}}checked{{end}}>
+                <label>{{.i18n.Tr "org.teams.write_access"}}</label>
+                <span class="help">{{.i18n.Tr "org.teams.write_access_helper"}}</span>
+              </div>
             </div>
-            {{if not (eq .Team.LowerName "owners")}}
             <div class="field">
-                <h4 class="text-center">{{.i18n.Tr "org.team_permission_desc"}}</h4>
-                <label></label>
-                <input name="permission" type="radio" value="read" {{if or .PageIsOrgTeamsNew (eq .Team.Authorize 1)}}checked{{end}}> {{.i18n.Tr "org.teams.read_access"}}
-                <label></label>
-                <p class="text-grey note">{{.i18n.Tr "org.teams.read_access_helper"}}</p>
-                <label></label>
-                <input name="permission" type="radio" value="write" {{if eq .Team.Authorize 2}}checked{{end}}> {{.i18n.Tr "org.teams.write_access"}}
-                <label></label>
-                <p class="text-grey note">{{.i18n.Tr "org.teams.write_access_helper"}}</p>
-                <label></label>
-                <input name="permission" type="radio" value="admin" {{if eq .Team.Authorize 3}}checked{{end}}> {{.i18n.Tr "org.teams.admin_access"}}
-                <label></label>
-                <p class="text-grey note">{{.i18n.Tr "org.teams.admin_access_helper"}}</p>
+              <div class="ui radio checkbox">
+                <input type="radio" name="permission" value="admin" {{if eq .Team.Authorize 3}}checked{{end}}>
+                <label>{{.i18n.Tr "org.teams.admin_access"}}</label>
+                <span class="help">{{.i18n.Tr "org.teams.admin_access_helper"}}</span>
+              </div>
             </div>
-            <hr>
+          </div>
+          <div class="ui divider"></div>
+          {{end}}
+
+          <div class="field">
+            {{if .PageIsOrgTeamsNew}}
+              <button class="ui green button">{{.i18n.Tr "org.create_new_team"}}</button>
+              <a class="ui button" href="{{.OrgLink}}/teams">{{.i18n.Tr "cancel"}}</a>
+            {{else}}
+              <button class="ui green button">{{.i18n.Tr "org.teams.update_settings"}}</button>
+              {{if not (eq .Team.LowerName "owners")}}
+              <button class="ui red button delete-button" data-url="{{.OrgLink}}/teams/{{.team_name}}/delete">{{.i18n.Tr "org.teams.delete_team"}}</button>
+              {{end}}
             {{end}}
-            <div class="field">
-                <label></label>
-                {{if .PageIsOrgTeamsNew}}
-                    <button class="btn btn-large btn-blue btn-radius">{{.i18n.Tr "org.create_new_team"}}</button>
-                    <a class="btn btn-small btn-gray btn-radius" id="repo-create-cancel" href="{{.OrgLink}}/teams"><strong>{{.i18n.Tr "cancel"}}</strong></a>
-                {{else}}
-                    <button class="btn btn-large btn-green btn-radius">{{.i18n.Tr "org.teams.update_settings"}}</button>
-                    {{if not (eq .Team.LowerName "owners")}}
-                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                    <button class="btn btn-large btn-red btn-radius" id="org-team-delete" href="#delete-team-modal">{{.i18n.Tr "org.teams.delete_team"}}</button>
-                    <div class="white-popup-block mfp-hide" id="delete-team-modal">
-                        <h1 class="text-red">{{.i18n.Tr "org.teams.delete_team_title"}}</h1>
-                        <p>{{.i18n.Tr "org.teams.delete_team_desc"}}</p>
-                        <br>
-                        <button class="btn btn-red btn-large btn-radius" id="delete-team-submit">{{.i18n.Tr "settings.continue"}}</button>
-                        <button class="btn btn-large btn-radius popup-modal-dismiss">{{.i18n.Tr "settings.cancel"}}</button>
-                    </div>
-                    {{end}}
-                {{end}}
-            </div>
+          </div>
         </div>
-    </form>
+      </form>
+    </div>
+  </div>
+</div>
+
+<div class="ui small basic delete modal">
+  <div class="ui icon header">
+    <i class="trash icon"></i>
+    {{.i18n.Tr "org.teams.delete_team_title"}}
+  </div>
+  <div class="content">
+    <p>{{.i18n.Tr "org.teams.delete_team_desc"}}</p>
+  </div>
+  {{template "base/delete_modal_actions" .}}
 </div>
-{{template "ng/base/footer" .}}
+{{template "base/footer" .}}

+ 40 - 39
templates/org/team/repositories.tmpl

@@ -1,45 +1,46 @@
-{{template "ng/base/head" .}}
-{{template "ng/base/header" .}}
-{{template "org/base/header" .}}
-<div id="setting-wrapper" class="main-wrapper">
-    <div id="team-members-list" class="container clear">
-		{{template "ng/base/alert" .}}
-		{{template "org/team/sidebar" .}}
-		<div class="grid-2-3 left">
-			<div class="setting-content">
-				<div class="panel panel-radius">
-					<div class="panel-header">
-						{{.i18n.Tr "org.teams.repositories"}}
-					</div>
+{{template "base/head" .}}
+<div class="organization teams">
+	{{template "org/header" .}}
+  <div class="ui container">
+  	{{template "base/alert" .}}
+  	<div class="ui grid">
+			{{template "org/team/sidebar" .}}
+			<div class="ui ten wide column">
+				<div class="ui top attached header">
+					{{.i18n.Tr "org.teams.repositories"}}
+				</div>
+				<div class="ui attached table segment repositories">
 					{{$canAddRemove := and $.IsOrganizationOwner (not (eq $.Team.LowerName "owners"))}}
-                    <ul class="panel-body setting-list" id="team-repositories-list">
-                    	{{if $canAddRemove}}
-						<li class="search">
-			                <form class="form form-align" action="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/repo/add" id="repo-collab-form">
-			                    {{.CsrfTokenHtml}}
-                                <input class="ipt ipt-large ipt-radius" id="org-team-repositories-add" name="repo-name" autocomplete="off" data-uid="{{.Org.Id}}" required />
-                                <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "org.teams.add_team_repository"}}</button>
-								<div class="repo-user-list-block">
-									<ul class="menu-down-show menu-vertical menu-radius switching-list user-list" id="org-team-repositories-list"></ul>
-								</div>
-			                </form>
-						</li>
+        	{{range .Team.Repos}}
+          <div class="item">
+            {{if $canAddRemove}}
+						<a class="ui red small button right" href="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/repo/remove?repoid={{.ID}}">{{$.i18n.Tr "org.teams.remove_repo"}}</a>
 						{{end}}
-                		{{range .Team.Repos}}
-                		<li class="collab">
-                			{{if $canAddRemove}}
-							<a class="btn btn-small btn-red btn-radius right" href="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/repo/remove?repoid={{.ID}}">{{$.i18n.Tr "org.teams.remove_repo"}}</a>
-							{{end}}
-							<a class="member" href="{{AppSubUrl}}/{{$.Org.Name}}/{{.Name}}">
-                                <i class="octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
-							    <strong>{{$.Org.Name}}/{{.Name}}</strong>
-							</a>
-                		</li>
-                		{{end}}
-                    </ul>
-				</div>
+						<a class="member" href="{{AppSubUrl}}/{{$.Org.Name}}/{{.Name}}">
+              <i class="icon octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
+					    <strong>{{$.Org.Name}}/{{.Name}}</strong>
+						</a>
+          </div>
+      		{{end}}
+        </div>
+        {{if $canAddRemove}}
+        <div class="ui bottom attached segment">
+			    <form class="ui form" id="add-repo-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/repo/add" method="post">
+			    	{{.CsrfTokenHtml}}
+				    <div class="inline field ui left">
+				    	<div id="search-repo-box" data-uid="{{.Org.Id}}">
+				    	  <div class="ui input">
+				    	    <input class="prompt" name="repo_name" placeholder="{{.i18n.Tr "org.teams.search_repo_placeholder"}}" autocomplete="off" required>
+				    	  </div>
+				    	  <div class="ui segment results hide"></div>
+				    	</div>
+				    </div>
+	          <button class="ui green button">{{.i18n.Tr "org.teams.add_team_repository"}}</button>
+			    </form>
+        </div>
+				{{end}}
 			</div>
 		</div>
 	</div>
 </div>
-{{template "ng/base/footer" .}}
+{{template "base/footer" .}}

+ 37 - 30
templates/org/team/sidebar.tmpl

@@ -1,34 +1,41 @@
-<div class="grid-1-3 panel panel-radius left" id="org-team-card">
-    <div class="panel-header">
-		{{if .Team.IsMember $.SignedUser.Id}}
-        <a class="btn btn-small btn-red btn-header btn-radius right" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/leave?uid={{$.SignedUser.Id}}&page=team">{{$.i18n.Tr "org.teams.leave"}}</a>
-        {{else if .IsOrganizationOwner}}
-        <a class="btn btn-small btn-blue btn-header btn-radius right" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/join?uid={{$.SignedUser.Id}}&page=team">{{$.i18n.Tr "org.teams.join"}}</a>
-        {{end}}
-    	<strong>{{.Team.Name}}</strong>
+<div class="ui six wide column">
+  <h4 class="ui top attached header">
+    <strong>{{.Team.Name}}</strong>
+    <div class="ui right">
+      {{if .Team.IsMember $.SignedUser.Id}}
+      <a class="ui red tiny button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/leave?uid={{$.SignedUser.Id}}&page=team">{{$.i18n.Tr "org.teams.leave"}}</a>
+      {{else if .IsOrganizationOwner}}
+      <a class="ui blue tiny button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/join?uid={{$.SignedUser.Id}}&page=team">{{$.i18n.Tr "org.teams.join"}}</a>
+      {{end}}
     </div>
-    <div class="panel-body">
-    	<p class="desc">{{if .Team.Description}}{{.Team.Description}}{{else}}{{.i18n.Tr "org.teams.no_desc"}}{{end}}</p>
-    	<hr>
-    	<div class="team-stats">
-    		<a href="{{.OrgLink}}/teams/{{.Team.LowerName}}"><span class="octicon octicon-person"></span> <strong>{{.Team.NumMembers}}</strong> {{$.i18n.Tr "org.lower_members"}}</a> ·
-    		<a href="{{.OrgLink}}/teams/{{.Team.LowerName}}/repositories"><span class="octicon octicon-repo"></span> <strong>{{.Team.NumRepos}}</strong> {{$.i18n.Tr "org.lower_repositories"}}</a>
-    	</div>
-    	<p class="desc">
-    		{{if eq .Team.LowerName "owners"}}
-    		{{.i18n.Tr "org.teams.owners_permission_desc" | Str2html}}
-            {{else if (eq .Team.Authorize 1)}}
-            {{.i18n.Tr "org.teams.read_permission_desc" | Str2html}}
-            {{else if (eq .Team.Authorize 2)}}
-            {{.i18n.Tr "org.teams.write_permission_desc" | Str2html}}
-            {{else if (eq .Team.Authorize 3)}}
-            {{.i18n.Tr "org.teams.admin_permission_desc" | Str2html}}
-    		{{end}}
-      	</p>
+  </h4>
+  <div class="ui attached table segment detail">
+    <div class="item">
+      {{if .Team.Description}}
+      {{.Team.Description}}
+      {{else}}
+      <span class="text grey italic">{{.i18n.Tr "org.teams.no_desc"}}</span>
+      {{end}}
     </div>
-    {{if .IsOrganizationOwner}}
-    <div class="panel-footer">
-    	<a class="btn btn-medium btn-green btn-link btn-radius" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/edit"><span class="octicon octicon-gear"></span> {{$.i18n.Tr "org.teams.settings"}}</a>
+    <div class="item">
+      <a href="{{.OrgLink}}/teams/{{.Team.LowerName}}"><span class="octicon octicon-person"></span> <strong>{{.Team.NumMembers}}</strong> {{$.i18n.Tr "org.lower_members"}}</a> ·
+      <a href="{{.OrgLink}}/teams/{{.Team.LowerName}}/repositories"><span class="octicon octicon-repo"></span> <strong>{{.Team.NumRepos}}</strong> {{$.i18n.Tr "org.lower_repositories"}}</a>
     </div>
-    {{end}}
+    <div class="item">
+      {{if eq .Team.LowerName "owners"}}
+        {{.i18n.Tr "org.teams.owners_permission_desc" | Str2html}}
+      {{else if (eq .Team.Authorize 1)}}
+        {{.i18n.Tr "org.teams.read_permission_desc" | Str2html}}
+      {{else if (eq .Team.Authorize 2)}}
+        {{.i18n.Tr "org.teams.write_permission_desc" | Str2html}}
+      {{else if (eq .Team.Authorize 3)}}
+        {{.i18n.Tr "org.teams.admin_permission_desc" | Str2html}}
+      {{end}}
+    </div>
+  </div>
+  {{if .IsOrganizationOwner}}
+  <div class="ui bottom attached segment">
+    <a class="ui teal small button" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/edit"><span class="octicon octicon-gear"></span> {{$.i18n.Tr "org.teams.settings"}}</a>
+  </div>
+  {{end}}
 </div>

+ 29 - 30
templates/org/team/teams.tmpl

@@ -1,42 +1,41 @@
-{{template "ng/base/head" .}}
-{{template "ng/base/header" .}}
-{{template "org/base/header" .}}
-<div class="container">
-	<div class="org-header-alert">
-		{{template "ng/base/alert" .}}
-	</div>
-	<div class="org-toolbar clear">
+{{template "base/head" .}}
+<div class="organization teams">
+	{{template "org/header" .}}
+  <div class="ui container">
+  	{{template "base/alert" .}}
 		{{if .IsOrganizationOwner}}
-        <a class="btn btn-green btn-large btn-link btn-radius right" href="{{.OrgLink}}/teams/new"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "org.create_new_team"}}</a>
+    <div class="text right">
+      <a class="ui green button" href="{{.OrgLink}}/teams/new"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "org.create_new_team"}}</a>
+    </div>
+    <div class="ui divider"></div>
 		{{end}}
-	</div>
-	<div class="org-team-list">
-		{{range .Teams}}
-		<div class="org-team-list-item">
-			<div class="panel panel-radius">
-				<div class="panel-header">
-					{{if .IsMember $.SignedUser.Id}}
-                    <a class="btn btn-small btn-red btn-header btn-radius right" href="{{$.OrgLink}}/teams/{{.LowerName}}/action/leave?uid={{$.SignedUser.Id}}">{{$.i18n.Tr "org.teams.leave"}}</a>
-                    {{else if $.IsOrganizationOwner}}
-                    <a class="btn btn-small btn-blue btn-header btn-radius right" href="{{$.OrgLink}}/teams/{{.LowerName}}/action/join?uid={{$.SignedUser.Id}}">{{$.i18n.Tr "org.teams.join"}}</a>
-                    {{end}}
-                    <a class="text-black" href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong>{{.Name}}</strong></a>
+
+		<div class="ui two column grid">
+			{{range .Teams}}
+			<div class="column">
+				<div class="ui top attached header">
+	        <a class="text black" href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong>{{.Name}}</strong></a>
+	        <div class="ui right">
+						{{if .IsMember $.SignedUser.Id}}
+	        	<a class="ui red small button" href="{{$.OrgLink}}/teams/{{.LowerName}}/action/leave?uid={{$.SignedUser.Id}}">{{$.i18n.Tr "org.teams.leave"}}</a>
+	          {{else if $.IsOrganizationOwner}}
+	          <a class="ui blue small button" href="{{$.OrgLink}}/teams/{{.LowerName}}/action/join?uid={{$.SignedUser.Id}}">{{$.i18n.Tr "org.teams.join"}}</a>
+	          {{end}}
+	        </div>
 				</div>
-				{{if .NumMembers}}
-				<div class="panel-body member-avatar-group">
+				<div class="ui attached segment members">
 					{{range .Members}}
-					<a href="{{AppSubUrl}}/{{.Name}}" title="{{.Name}}">
-						<img src="{{.AvatarLink}}">
+					<a href="{{.HomeLink}}" title="{{.Name}}">
+						<img class="ui avatar image" src="{{.AvatarLink}}">
 					</a>
 					{{end}}
 				</div>
-				{{end}}
-				<div class="panel-footer">
-	    			<p class="team-meta">{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}} · {{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}</p>
+				<div class="ui bottom attached header">
+	    		<p class="team-meta">{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}} · {{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}</p>
 				</div>
 			</div>
+			{{end}}
 		</div>
-		{{end}}
 	</div>
 </div>
-{{template "ng/base/footer" .}}
+{{template "base/footer" .}}

+ 1 - 1
templates/repo/create.tmpl

@@ -71,7 +71,7 @@
           </div>
           <div class="inline field">
             <label>{{.i18n.Tr "repo.license"}}</label>
-            <div class="ui selection dropdown">
+            <div class="ui search selection dropdown">
               <input type="hidden" name="license" value="{{.license}}">
               <div class="default text">{{.i18n.Tr "repo.license_helper"}}</div>
               <div class="menu">

+ 4 - 4
templates/repo/migrate.tmpl

@@ -36,22 +36,22 @@
 
 			  	<div class="inline required field {{if .Err_Owner}}error{{end}}">
 	  	      <label>{{.i18n.Tr "repo.owner"}}</label>
-			      <div class="ui selection dropdown">
+			      <div class="ui selection owner dropdown">
 			        <input type="hidden" id="uid" name="uid" value="{{.ContextUser.Id}}" required>
 			        <span class="text">
 			        	<img class="ui mini image" src="{{.ContextUser.AvatarLink}}">
-            		{{.ContextUser.Name}}
+            		{{.ContextUser.ShortName 20}}
             	</span>
 			        <i class="dropdown icon"></i>
 			        <div class="menu">
 			        	<div class="item" data-value="{{.SignedUser.Id}}">
 				        	<img class="ui mini image" src="{{.SignedUser.AvatarLink}}">
-	            		{{.SignedUser.Name}}
+	            		{{.SignedUser.ShortName 20}}
 			        	</div>
 			        	{{range .Orgs}}
 			        	<div class="item" data-value="{{.Id}}">
 				        	<img class="ui mini image" src="{{.AvatarLink}}">
-	            		{{.Name}}
+	            		{{.ShortName 20}}
 			        	</div>
 			        	{{end}}
 			        </div>

+ 1 - 1
templates/repo/settings/collaboration.tmpl

@@ -29,7 +29,7 @@
 				    <div class="inline field ui left">
 				    	<div id="search-user-box">
 				    	  <div class="ui input">
-				    	    <input class="prompt" name="collaborator" placeholder="{{.i18n.Tr "repo.settings.search_user_placeholder"}}" autocomplete="off">
+				    	    <input class="prompt" name="collaborator" placeholder="{{.i18n.Tr "repo.settings.search_user_placeholder"}}" autocomplete="off" required>
 				    	  </div>
 				    	  <div class="ui segment results hide"></div>
 				    	</div>

+ 1 - 1
templates/user/dashboard/dashboard.tmpl

@@ -73,7 +73,7 @@
               <li>
                 <a href="{{AppSubUrl}}/{{.Name}}">
                   <i class="icon octicon octicon-organization"></i>
-                  <strong>{{.Name}}</strong>
+                  <strong>{{.ShortName 20}}</strong>
                   <span class="ui right text light grey">
                     <i class="octicon octicon-repo"></i>{{.NumRepos}}
                   </span>

+ 3 - 3
templates/user/dashboard/navbar.tmpl

@@ -2,7 +2,7 @@
   <div class="ui floating dropdown link jump">
     <span class="text">
     	<img class="ui avatar image" src="{{.ContextUser.AvatarLink}}">
-  		{{.ContextUser.Name}}
+  		{{.ContextUser.ShortName 20}}
     	<i class="dropdown icon"></i>
   	</span>
     <div class="context user overflow menu" tabindex="-1">
@@ -17,7 +17,7 @@
         {{range .Orgs}}
         <a class="{{if eq $.ContextUser.Id .Id}}active selected{{end}} item" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else}}dashboard{{end}}">
           <img class="ui avatar image" src="{{.AvatarLink}}">
-          {{.Name}}
+          {{.ShortName 20}}
         </a>
         {{end}}
       </div>
@@ -42,7 +42,7 @@
       <div class="right menu">
         <div class="item">
           <a class="ui blue basic button" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}">
-            {{.i18n.Tr "home.view_home" .ContextUser.Name}}
+            {{.i18n.Tr "home.view_home" (.ContextUser.ShortName 10)}}
           </a>
         </div>
       </div>

+ 1 - 21
templates/user/profile.tmpl

@@ -55,27 +55,7 @@
           </a>
         </div>
         {{if ne .TabName "activity"}}
-        <div class="ui repository list">
-          {{range .Repos}}
-            {{if or (not .IsPrivate) (.HasAccess $.SignedUser)}}
-            <div class="item">
-              <div class="ui header">
-                <a href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}</a>
-                {{if .IsPrivate}}
-                <span class="text gold"><i class="icon octicon octicon-lock"></i></span>
-                {{end}}
-
-                <div class="ui right metas">
-                  <span class="text grey"><i class="octicon octicon-star"></i> {{.NumStars}}</span>
-                  <span class="text grey"><i class="octicon octicon-git-branch"></i> {{.NumForks}}</span>
-                </div>
-              </div>
-              {{if .Description}}<p>{{.Description}}</p>{{end}}
-              <p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
-            </div>
-            {{end}}
-          {{end}}
-        </div>
+          {{template "explore/repo_list" .}}
         {{else}}
         <br>
         <div class="feeds">

Some files were not shown because too many files changed in this diff