Browse Source

change show contributors nums

tags/v1.21.12.1
zhoupzh 4 years ago
parent
commit
b452434a78
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      templates/repo/home.tmpl

+ 7
- 1
templates/repo/home.tmpl View File

@@ -4,7 +4,7 @@
font-size: 1.0em;
margin-bottom: 1.0rem;
}
#contributorInfo > a:nth-child(n+25){
#contributorInfo > a:nth-child(n+26){
display:none;
}
#contributorInfo > a{
@@ -329,7 +329,13 @@

<div>
<h4 class="ui header">
{{$lenCon := len .ContributorInfo}}
{{if lt $lenCon 25 }}
<strong>贡献者 ({{len .ContributorInfo}})</strong>
{{else}}
<strong>贡献者 ({{len .ContributorInfo}}+)</strong>
{{end}}
<div class="ui right">
<a class="membersmore text grey" href="{{.RepoLink}}/contributors">全部 {{svg "octicon-chevron-right" 16}}</a>
</div>


Loading…
Cancel
Save