diff options
author | Vladimir Yakovlev <nagos@inbox.ru> | 2022-10-24 15:01:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 20:01:05 +0800 |
commit | 0218fa7cf1a7fe1b54835642165243f10b1324d9 (patch) | |
tree | 09ad050da521ebf5b0ae9b3641951f2ff693daa4 /templates | |
parent | 191a74d62254ca00be2ccdf7e3afe69c0f9d6c12 (diff) | |
download | gitea-0218fa7cf1a7fe1b54835642165243f10b1324d9.tar.gz gitea-0218fa7cf1a7fe1b54835642165243f10b1324d9.zip |
Added missing headers on user packages page (#21172)
User packages page had missing tabs.
![packages-2](https://user-images.githubusercontent.com/183965/190411160-c8138a8c-dbc4-4cf1-af2c-52497a10cee8.png)
![packages-1](https://user-images.githubusercontent.com/183965/190411155-af2cb398-c9a0-4fcc-adcd-1711aaa28345.png)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/overview/header.tmpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/user/overview/header.tmpl b/templates/user/overview/header.tmpl index f007973607..61b19c6032 100644 --- a/templates/user/overview/header.tmpl +++ b/templates/user/overview/header.tmpl @@ -56,6 +56,22 @@ </a> </div> {{end}} + {{else}} + <a class='{{if eq .TabName "activity"}}active {{end}}item' href="{{.ContextUser.HomeLink}}?tab=activity"> + {{svg "octicon-rss"}} {{.locale.Tr "user.activity"}} + </a> + {{if not .DisableStars}} + <a class='{{if eq .TabName "stars"}}active {{end}}item' href="{{.ContextUser.HomeLink}}?tab=stars"> + {{svg "octicon-star"}} {{.locale.Tr "user.starred"}} + {{if .Owner.NumStars}} + <div class="ui primary label">{{.Owner.NumStars}}</div> + {{end}} + </a> + {{else}} + <a class='{{if eq .TabName "watching"}}active {{end}}item' href="{{.ContextUser.HomeLink}}?tab=watching"> + {{svg "octicon-eye"}} {{.locale.Tr "user.watched"}} + </a> + {{end}} {{end}} </div> |