Skip to content

Commit 35d0358

Browse files
author
istiak101
authored
Github style following followers (#19482)
Removed tabbed following and followers from user page and added Github style following followers.
1 parent 0cbec3c commit 35d0358

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

templates/user/profile.tmpl

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
{{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}}
1818
<span class="username text center">{{.Owner.Name}}</span>
1919
<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>
20+
<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>
2021
</div>
2122
<div class="extra content word-break">
2223
<ul>
@@ -108,18 +109,6 @@
108109
{{svg "octicon-eye"}} {{.i18n.Tr "user.watched"}}
109110
</a>
110111
{{end}}
111-
<a class='{{if eq .TabName "following"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=following">
112-
{{svg "octicon-person"}} {{.i18n.Tr "user.following"}}
113-
{{if .Owner.NumFollowing}}
114-
<div class="ui primary label">{{.Owner.NumFollowing}}</div>
115-
{{end}}
116-
</a>
117-
<a class='{{if eq .TabName "followers"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=followers">
118-
{{svg "octicon-person"}} {{.i18n.Tr "user.followers"}}
119-
{{if .Owner.NumFollowers}}
120-
<div class="ui primary label">{{.Owner.NumFollowers}}</div>
121-
{{end}}
122-
</a>
123112
</div>
124113

125114
{{if eq .TabName "activity"}}

0 commit comments

Comments
 (0)