Skip to content

Commit

Permalink
Added missing headers on user packages page (#21172)
Browse files Browse the repository at this point in the history
  • Loading branch information
3 people committed Oct 24, 2022
1 parent 191a74d commit 0218fa7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions templates/user/overview/header.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 0218fa7

Please sign in to comment.