diff options
author | 853 <sonic853@qq.com> | 2023-10-26 10:50:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 02:50:43 +0000 |
commit | 4f4ddcf3c593b474846d40e47b4351d3deb39202 (patch) | |
tree | 363808a0fae0504a892489de6b009ab99c3bb941 /templates/org/team/teams.tmpl | |
parent | 05aa91e6da54e0e8abd18d8dd2b5a29249c636ed (diff) | |
download | gitea-4f4ddcf3c593b474846d40e47b4351d3deb39202.tar.gz gitea-4f4ddcf3c593b474846d40e47b4351d3deb39202.zip |
Add link to members and repositories at teams page (#27744)
![image](https://github.com/go-gitea/gitea/assets/8389962/123e4ca7-dd10-44e7-9702-4b8e9e0882a7)
The members and repositories text now can be click.
like Org home page:
https://github.com/go-gitea/gitea/blob/cab7b7f59c008eea8b3b484a8818eaaf48daa805/templates/org/home.tmpl#L81-L82
Diffstat (limited to 'templates/org/team/teams.tmpl')
-rw-r--r-- | templates/org/team/teams.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/org/team/teams.tmpl b/templates/org/team/teams.tmpl index 9723294fd6..830fc8a33e 100644 --- a/templates/org/team/teams.tmpl +++ b/templates/org/team/teams.tmpl @@ -37,7 +37,7 @@ {{end}} </div> <div class="ui bottom attached header"> - <p class="team-meta">{{.NumMembers}} {{ctx.Locale.Tr "org.lower_members"}} · {{.NumRepos}} {{ctx.Locale.Tr "org.lower_repositories"}}</p> + <p class="team-meta"><a class="muted" href="{{$.OrgLink}}/teams/{{.LowerName | PathEscape}}">{{.NumMembers}} {{ctx.Locale.Tr "org.lower_members"}}</a> · <a class="muted" href="{{$.OrgLink}}/teams/{{.LowerName | PathEscape}}/repositories">{{.NumRepos}} {{ctx.Locale.Tr "org.lower_repositories"}}</a></p> </div> </div> {{end}} |