diff options
author | Kyle D <kdumontnu@gmail.com> | 2021-04-15 10:53:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 18:53:57 +0200 |
commit | f44543a1bb776fa8bdfd3b605d67197d1466eb20 (patch) | |
tree | b9a014285b40c3eb45dd90bcafa7ccc17c1031d8 /templates/base/head_navbar.tmpl | |
parent | af2adb4e35ea71ca5c7fbb1e51b9d25fe49af2e4 (diff) | |
download | gitea-f44543a1bb776fa8bdfd3b605d67197d1466eb20.tar.gz gitea-f44543a1bb776fa8bdfd3b605d67197d1466eb20.zip |
Disable Stars config option (#14653)
* Add config option to disable stars
* Replace "stars" with watched in user profile
* Add documentation
Diffstat (limited to 'templates/base/head_navbar.tmpl')
-rw-r--r-- | templates/base/head_navbar.tmpl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index ec5c17b6b4..7e476fa4a4 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -157,10 +157,12 @@ {{svg "octicon-person"}} {{.i18n.Tr "your_profile"}}<!-- Your profile --> </a> - <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars"> - {{svg "octicon-star"}} - {{.i18n.Tr "your_starred"}} - </a> + {{if not .DisableStars}} + <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars"> + {{svg "octicon-star"}} + {{.i18n.Tr "your_starred"}} + </a> + {{end}} <a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings"> {{svg "octicon-tools"}} {{.i18n.Tr "your_settings"}}<!-- Your settings --> |