summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authoristiak101 <30789544+istiak101@users.noreply.github.com>2022-05-25 17:45:45 +0600
committerGitHub <noreply@github.com>2022-05-25 19:45:45 +0800
commit35d0358c2a5cd71219fc407b08d29159e6084cd0 (patch)
tree1117eaa989843f4f3359f81c802f30d964779e98 /templates
parent0cbec3cd373941405a3e2d49d4ad9784972c00e3 (diff)
downloadgitea-35d0358c2a5cd71219fc407b08d29159e6084cd0.tar.gz
gitea-35d0358c2a5cd71219fc407b08d29159e6084cd0.zip
Github style following followers (#19482)
Removed tabbed following and followers from user page and added Github style following followers.
Diffstat (limited to 'templates')
-rw-r--r--templates/user/profile.tmpl13
1 files changed, 1 insertions, 12 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index 6f5efae02e..dd83ff0620 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -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"}}