Skip to content

Commit 0218fa7

Browse files
nagoslunnylafriks
authored
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 <[email protected]> Co-authored-by: Lauris BH <[email protected]>
1 parent 191a74d commit 0218fa7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

templates/user/overview/header.tmpl

+16
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@
5656
</a>
5757
</div>
5858
{{end}}
59+
{{else}}
60+
<a class='{{if eq .TabName "activity"}}active {{end}}item' href="{{.ContextUser.HomeLink}}?tab=activity">
61+
{{svg "octicon-rss"}} {{.locale.Tr "user.activity"}}
62+
</a>
63+
{{if not .DisableStars}}
64+
<a class='{{if eq .TabName "stars"}}active {{end}}item' href="{{.ContextUser.HomeLink}}?tab=stars">
65+
{{svg "octicon-star"}} {{.locale.Tr "user.starred"}}
66+
{{if .Owner.NumStars}}
67+
<div class="ui primary label">{{.Owner.NumStars}}</div>
68+
{{end}}
69+
</a>
70+
{{else}}
71+
<a class='{{if eq .TabName "watching"}}active {{end}}item' href="{{.ContextUser.HomeLink}}?tab=watching">
72+
{{svg "octicon-eye"}} {{.locale.Tr "user.watched"}}
73+
</a>
74+
{{end}}
5975
{{end}}
6076

6177
</div>

0 commit comments

Comments
 (0)