mirror of https://github.com/go-gitea/gitea
Fix followers and following tabs in profile (#10202)
parent
e273817154
commit
fe00886bef
@ -1,6 +0,0 @@ |
|||||||
{{template "base/head" .}} |
|
||||||
<div class="user followers"> |
|
||||||
{{template "user/meta/header" .}} |
|
||||||
{{template "repo/user_cards" .}} |
|
||||||
</div> |
|
||||||
{{template "base/footer" .}} |
|
@ -1,24 +0,0 @@ |
|||||||
{{with .Owner}} |
|
||||||
<div class="ui container"> |
|
||||||
<img class="ui avatar image" src="{{.RelAvatarLink}}"> |
|
||||||
<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> |
|
Loading…
Reference in new issue