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/user/dashboard | |
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/user/dashboard')
-rw-r--r-- | templates/user/dashboard/repolist.tmpl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/user/dashboard/repolist.tmpl b/templates/user/dashboard/repolist.tmpl index 9dfda9d84e..8ac07e1df6 100644 --- a/templates/user/dashboard/repolist.tmpl +++ b/templates/user/dashboard/repolist.tmpl @@ -130,10 +130,12 @@ {{svg "octicon-archive" 16 "ml-2"}} </span> </div> - <div class="text light grey df ac"> - ${repo.stars_count} - {{svg "octicon-star" 16 "ml-2"}} - </div> + {{if not .DisableStars}} + <div class="text light grey df ac"> + ${repo.stars_count} + {{svg "octicon-star" 16 "ml-2"}} + </div> + {{end}} </a> </li> </ul> |