mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 14:55:40 +03:00
Github style following followers (#19482)
Removed tabbed following and followers from user page and added Github style following followers.
This commit is contained in:
parent
0cbec3cd37
commit
35d0358c2a
1 changed files with 1 additions and 12 deletions
|
@ -17,6 +17,7 @@
|
|||
{{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}}
|
||||
<span class="username text center">{{.Owner.Name}}</span>
|
||||
<a href="{{.Owner.HomeLink}}.rss"><i class="ui grey icon tooltip ml-3" data-content="{{.i18n.Tr "rss_feed"}}" data-position="bottom center">{{svg "octicon-rss" 18}}</i></a>
|
||||
<a class="muted" href="{{.Owner.HomeLink}}?tab=followers">{{svg "octicon-person" 18 "mr-2"}}{{.Owner.NumFollowers}} {{.i18n.Tr "user.followers"}}</a> · <a class="muted" href="{{.Owner.HomeLink}}?tab=following">{{.Owner.NumFollowing}} {{.i18n.Tr "user.following"}}</a>
|
||||
</div>
|
||||
<div class="extra content word-break">
|
||||
<ul>
|
||||
|
@ -108,18 +109,6 @@
|
|||
{{svg "octicon-eye"}} {{.i18n.Tr "user.watched"}}
|
||||
</a>
|
||||
{{end}}
|
||||
<a class='{{if eq .TabName "following"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=following">
|
||||
{{svg "octicon-person"}} {{.i18n.Tr "user.following"}}
|
||||
{{if .Owner.NumFollowing}}
|
||||
<div class="ui primary label">{{.Owner.NumFollowing}}</div>
|
||||
{{end}}
|
||||
</a>
|
||||
<a class='{{if eq .TabName "followers"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=followers">
|
||||
{{svg "octicon-person"}} {{.i18n.Tr "user.followers"}}
|
||||
{{if .Owner.NumFollowers}}
|
||||
<div class="ui primary label">{{.Owner.NumFollowers}}</div>
|
||||
{{end}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{if eq .TabName "activity"}}
|
||||
|
|
Loading…
Reference in a new issue