diff options
author | L0veSunshine <xuan199651@gmail.com> | 2020-04-08 20:13:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 15:13:04 +0300 |
commit | 08208cdfb87bc3f0b534eda9d9ef265dcfbc18c3 (patch) | |
tree | 1a5dd7d1dde5c1636666dd478b4e05994882cd4c /templates | |
parent | b40107c4164748873f89a9553ed24e8403999339 (diff) | |
download | gitea-08208cdfb87bc3f0b534eda9d9ef265dcfbc18c3.tar.gz gitea-08208cdfb87bc3f0b534eda9d9ef265dcfbc18c3.zip |
Fix forked repo has no icon and language stat. (#10791)
* Update header.tmpl
* Update _repository.less
* Update pull.go
* Update indexer.go
* Update pull.go
* Update pull.go
* Update indexer.go
* fix forked repo doesn't have language stat
* fix forked repo doesn't have language stat
* fix forked repo doesn't have language stat
* fix forked repo doesn't have language stat
* fix forked repo doesn't have language stat
* fix forked repo doesn't have language stat
* fix forked repo doesn't have language stat
* fix forked repo doesn't have language stat
* fix forked repo doesn't have language stat
* fix forked repo doesn't have language stat
* fix forked repo doesn't have language stat
Thanks the advice from lunny and 6543.
* fix forked repo doesn't have language stat
Modified as suggested by 6543.
* fix forked repo doesn't have language stat
simplify the function.
* fix forked repo doesn't have language stat
update the indexer after the loop
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/header.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index f4edc74396..4daaa201d0 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -17,7 +17,7 @@ {{else if .IsMirror}} {{svg "octicon-repo-clone" 32}} {{else if .IsFork}} - {{svg "octicon-repo-fork" 32}} + {{svg "octicon-repo-forked" 32}} {{else}} {{svg "octicon-repo" 32}} {{end}} @@ -38,7 +38,7 @@ {{else if .IsMirror}} {{svg "octicon-repo-clone" 32}} {{else if .IsFork}} - {{svg "octicon-repo-fork" 32}} + {{svg "octicon-repo-forked" 32}} {{else}} {{svg "octicon-repo" 32}} {{end}} @@ -76,7 +76,7 @@ {{if and (not .IsEmpty) ($.Permission.CanRead $.UnitTypeCode)}} <div class="ui labeled button {{if and ($.IsSigned) (not $.CanSignedUserFork)}}disabled-repo-button{{end}}" tabindex="0"> <a class="ui compact basic button {{if or (not $.IsSigned) (not $.CanSignedUserFork)}}poping up{{end}}" {{if $.CanSignedUserFork}}href="{{AppSubUrl}}/repo/fork/{{.ID}}"{{else if $.IsSigned}} data-content="{{$.i18n.Tr "repo.fork_from_self"}}" {{ else }} data-content="{{$.i18n.Tr "repo.fork_guest_user" }}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{AppSubUrl}}/repo/fork/{{.ID}}" {{end}} data-position="top center" data-variation="tiny"> - {{svg "octicon-repo-forked" 16}}{{$.i18n.Tr "repo.fork"}} + {{svg "octicon-repo-forked" 15}}{{$.i18n.Tr "repo.fork"}} </a> <a class="ui basic label" href="{{.Link}}/forks"> {{.NumForks}} |