diff options
author | Lauris BH <lauris@nix.lv> | 2020-02-09 22:18:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 22:18:01 +0200 |
commit | fe00886befebca6e532dfc49813c3273c4bfff68 (patch) | |
tree | f7549d49a131409e502e59bf4e522706f48b8f96 /templates/user/meta | |
parent | e273817154e98b7b675e43e97cd17f48a603cf9e (diff) | |
download | gitea-fe00886befebca6e532dfc49813c3273c4bfff68.tar.gz gitea-fe00886befebca6e532dfc49813c3273c4bfff68.zip |
Fix followers and following tabs in profile (#10202)
Diffstat (limited to 'templates/user/meta')
-rw-r--r-- | templates/user/meta/followers.tmpl | 6 | ||||
-rw-r--r-- | templates/user/meta/header.tmpl | 24 |
2 files changed, 0 insertions, 30 deletions
diff --git a/templates/user/meta/followers.tmpl b/templates/user/meta/followers.tmpl deleted file mode 100644 index 40d7e95013..0000000000 --- a/templates/user/meta/followers.tmpl +++ /dev/null @@ -1,6 +0,0 @@ -{{template "base/head" .}} -<div class="user followers"> - {{template "user/meta/header" .}} - {{template "repo/user_cards" .}} -</div> -{{template "base/footer" .}} diff --git a/templates/user/meta/header.tmpl b/templates/user/meta/header.tmpl deleted file mode 100644 index 36072e8aa1..0000000000 --- a/templates/user/meta/header.tmpl +++ /dev/null @@ -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> |