File tree 1 file changed +15
-13
lines changed 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 29
29
</a>
30
30
{{end}}
31
31
32
- <a class="{{if eq .TabName "activity"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=activity">
33
- {{svg "octicon-rss"}} {{ctx.Locale.Tr "user.activity"}}
34
- </a>
35
- {{if not .DisableStars}}
36
- <a class="{{if eq .TabName "stars"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=stars">
37
- {{svg "octicon-star"}} {{ctx.Locale.Tr "user.starred"}}
38
- {{if .ContextUser.NumStars}}
39
- <div class="ui small label">{{.ContextUser.NumStars}}</div>
40
- {{end}}
41
- </a>
42
- {{else}}
43
- <a class="{{if eq .TabName "watching"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=watching">
44
- {{svg "octicon-eye"}} {{ctx.Locale.Tr "user.watched"}}
32
+ {{if .ContextUser.IsIndividual}}
33
+ <a class="{{if eq .TabName "activity"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=activity">
34
+ {{svg "octicon-rss"}} {{ctx.Locale.Tr "user.activity"}}
45
35
</a>
36
+ {{if not .DisableStars}}
37
+ <a class="{{if eq .TabName "stars"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=stars">
38
+ {{svg "octicon-star"}} {{ctx.Locale.Tr "user.starred"}}
39
+ {{if .ContextUser.NumStars}}
40
+ <div class="ui small label">{{.ContextUser.NumStars}}</div>
41
+ {{end}}
42
+ </a>
43
+ {{else}}
44
+ <a class="{{if eq .TabName "watching"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=watching">
45
+ {{svg "octicon-eye"}} {{ctx.Locale.Tr "user.watched"}}
46
+ </a>
47
+ {{end}}
46
48
{{end}}
47
49
</div>
You can’t perform that action at this time.
0 commit comments