diff options
author | a1012112796 <1012112796@qq.com> | 2024-08-27 10:54:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 10:54:12 +0800 |
commit | 39d2fdefaf0dd42aa5e3ee8d3ea0a84b40c005f5 (patch) | |
tree | f2053041bd48c03688f330468b93c74b873f83bf /templates/org/menu.tmpl | |
parent | 521d91944ed10add89f435efd2e3df17d8af2d51 (diff) | |
download | gitea-39d2fdefaf0dd42aa5e3ee8d3ea0a84b40c005f5.tar.gz gitea-39d2fdefaf0dd42aa5e3ee8d3ea0a84b40c005f5.zip |
Split org Propfile README to a new tab `overview` (#31373)
like user profile, add a new overviw tab to show profile READEME when it
is exist.
replace #31349 (another solution option)
example view:


---------
Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'templates/org/menu.tmpl')
-rw-r--r-- | templates/org/menu.tmpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/org/menu.tmpl b/templates/org/menu.tmpl index 698a9559c5..29238f8d6b 100644 --- a/templates/org/menu.tmpl +++ b/templates/org/menu.tmpl @@ -1,7 +1,12 @@ <div class="ui container"> <overflow-menu class="ui secondary pointing tabular borderless menu tw-mb-4"> <div class="overflow-menu-items"> - <a class="{{if .PageIsViewRepositories}}active {{end}}item" href="{{$.Org.HomeLink}}"> + {{if .HasProfileReadme}} + <a class="{{if .PageIsViewOverview}}active {{end}}item" href="{{$.Org.HomeLink}}"> + {{svg "octicon-info"}} {{ctx.Locale.Tr "user.overview"}} + </a> + {{end}} + <a class="{{if .PageIsViewRepositories}}active {{end}}item" href="{{$.Org.HomeLink}}{{if .HasProfileReadme}}/-/repositories{{end}}"> {{svg "octicon-repo"}} {{ctx.Locale.Tr "user.repositories"}} {{if .RepoCount}} <div class="ui small label">{{.RepoCount}}</div> |