mirror of
https://github.com/go-gitea/gitea
synced 2025-08-08 18:48:21 +00:00
#1692 APIs: Users Followers
- User profile un/follow - List user's followers/following
This commit is contained in:
6
templates/user/meta/followers.tmpl
Normal file
6
templates/user/meta/followers.tmpl
Normal file
@@ -0,0 +1,6 @@
|
||||
{{template "base/head" .}}
|
||||
<div class="user followers">
|
||||
{{template "user/meta/header" .}}
|
||||
{{template "repo/user_cards" .}}
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
25
templates/user/meta/header.tmpl
Normal file
25
templates/user/meta/header.tmpl
Normal file
@@ -0,0 +1,25 @@
|
||||
{{with .Owner}}
|
||||
<div class="ui container">
|
||||
<img class="ui avatar image" src="{{.AvatarLink}}">
|
||||
<span class="header name">
|
||||
<a href="{{.HomeLink}}">{{.Name}}</a>
|
||||
{{with .FullName}}({{.}}){{end}}
|
||||
</span>
|
||||
|
||||
<div class="ui right">
|
||||
|
||||
{{if or $.PageIsFollowers $.PageIsFollowing}}
|
||||
{{if and $.IsSigned (ne $.SignedUserName .Name)}}
|
||||
<div class="follow">
|
||||
{{if $.SignedUser.IsFollowing .Id}}
|
||||
<a class="ui small basic red button" href="{{.HomeLink}}/action/unfollow?redirect_to={{$.Link}}"><i class="octicon octicon-person"></i> {{$.i18n.Tr "user.unfollow"}}</a>
|
||||
{{else}}
|
||||
<a class="ui small basic green button" href="{{.HomeLink}}/action/follow?redirect_to={{$.Link}}"><i class="octicon octicon-person"></i> {{$.i18n.Tr "user.follow"}}</a>
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
<div class="ui divider"></div>
|
0
templates/user/meta/stars.tmpl
Normal file
0
templates/user/meta/stars.tmpl
Normal file
Reference in New Issue
Block a user