mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-03-26 05:55:55 +03:00
Fix wrong header of org project view page (#29626)
Follow #29248 The project view page still using `user/overview/header.tmpl` Before:  After:  (cherry picked from commit c6cc392b55b71ae1787e86e75b7121c3769adcbe)
This commit is contained in:
parent
963df82907
commit
ee4443c998
1 changed files with 15 additions and 13 deletions
|
@ -29,19 +29,21 @@
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<a class="{{if eq .TabName "activity"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=activity">
|
{{if .ContextUser.IsIndividual}}
|
||||||
{{svg "octicon-rss"}} {{ctx.Locale.Tr "user.activity"}}
|
<a class="{{if eq .TabName "activity"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=activity">
|
||||||
</a>
|
{{svg "octicon-rss"}} {{ctx.Locale.Tr "user.activity"}}
|
||||||
{{if not .DisableStars}}
|
|
||||||
<a class="{{if eq .TabName "stars"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=stars">
|
|
||||||
{{svg "octicon-star"}} {{ctx.Locale.Tr "user.starred"}}
|
|
||||||
{{if .ContextUser.NumStars}}
|
|
||||||
<div class="ui small label">{{.ContextUser.NumStars}}</div>
|
|
||||||
{{end}}
|
|
||||||
</a>
|
|
||||||
{{else}}
|
|
||||||
<a class="{{if eq .TabName "watching"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=watching">
|
|
||||||
{{svg "octicon-eye"}} {{ctx.Locale.Tr "user.watched"}}
|
|
||||||
</a>
|
</a>
|
||||||
|
{{if not .DisableStars}}
|
||||||
|
<a class="{{if eq .TabName "stars"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=stars">
|
||||||
|
{{svg "octicon-star"}} {{ctx.Locale.Tr "user.starred"}}
|
||||||
|
{{if .ContextUser.NumStars}}
|
||||||
|
<div class="ui small label">{{.ContextUser.NumStars}}</div>
|
||||||
|
{{end}}
|
||||||
|
</a>
|
||||||
|
{{else}}
|
||||||
|
<a class="{{if eq .TabName "watching"}}active {{end}}item" href="{{.ContextUser.HomeLink}}?tab=watching">
|
||||||
|
{{svg "octicon-eye"}} {{ctx.Locale.Tr "user.watched"}}
|
||||||
|
</a>
|
||||||
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue