diff --git a/cmd/web.go b/cmd/web.go index da392a1e9..3fc39628b 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -514,11 +514,11 @@ func runWeb(ctx *cli.Context) { m.Get("/edit/:tagname", repo.EditRelease) m.Post("/edit/:tagname", bindIgnErr(auth.EditReleaseForm{}), repo.EditReleasePost) m.Post("/delete", repo.DeleteRelease) - }, reqRepoAdmin, middleware.RepoRef()) + }, reqRepoAdmin) m.Combo("/compare/*").Get(repo.CompareAndPullRequest). Post(bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost) - }, reqSignIn, middleware.RepoAssignment()) + }, reqSignIn, middleware.RepoAssignment(), middleware.RepoRef()) m.Group("/:username/:reponame", func() { m.Group("", func() { diff --git a/public/css/gogs.css b/public/css/gogs.css index 1c5a29b25..ae1b88804 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -5,9 +5,7 @@ font-style: normal; } .octicon, -.mega-octicon, -.icon.octicon, -.icon.mega-octicon { +.mega-octicon { font: normal normal normal 16px/1 octicons; display: inline-block; text-decoration: none; @@ -1052,6 +1050,7 @@ footer .container .links > *:first-child { .octicon.icon, .mega-octicon.icon { font-family: octicons; + font-size: 16px; opacity: 1 !important; } .sr-only { diff --git a/public/less/_base.less b/public/less/_base.less index 77ed75451..fd12c80b2 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -313,9 +313,11 @@ footer { .generate-img(@n, (@i + 1)); } +// ensure Semantic UI .icon font family and 14px size does not apply to .icon.octicon .octicon.icon, .mega-octicon.icon { font-family: octicons; + font-size: 16px; opacity: 1 !important; } diff --git a/public/less/_octicons.less b/public/less/_octicons.less index a159dec85..dfd437e6b 100755 --- a/public/less/_octicons.less +++ b/public/less/_octicons.less @@ -14,9 +14,7 @@ // .octicon is optimized for 16px. // .mega-octicon is optimized for 32px but can be used larger. -.octicon, .mega-octicon, -// ensure Semantic UI .icon of 14px does not apply to .icon.octicon: -.icon.octicon, .icon.mega-octicon { +.octicon, .mega-octicon { font: normal normal normal 16px/1 octicons; display: inline-block; text-decoration: none; diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index 03a07935c..07762606f 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -1,7 +1,6 @@ {{template "base/head" .}}
{{if .Repository.DescriptionHtml}}{{.Repository.DescriptionHtml}}{{else}}{{.i18n.Tr "repo.no_desc"}}{{end}} diff --git a/templates/repo/issue/labels.tmpl b/templates/repo/issue/labels.tmpl index f955973c6..dd84ce416 100644 --- a/templates/repo/issue/labels.tmpl +++ b/templates/repo/issue/labels.tmpl @@ -1,7 +1,6 @@ {{template "base/head" .}}