mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Following up fixes for "Fix inconsistent user profile layout across tabs" (#25739)
Follow https://github.com/go-gitea/gitea/pull/25625#issuecomment-1621577816 1. Fix the incorrect "project view" layout 2. Fix the "follow/unfollow" link on "packages" and "projects" tab Before:  After:  --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
@@ -99,15 +99,13 @@
|
||||
{{if and .IsSigned (ne .SignedUserID .ContextUser.ID)}}
|
||||
<li class="follow">
|
||||
{{if $.IsFollowing}}
|
||||
<form method="post" action="{{.Link}}?action=unfollow&redirect_to={{$.Link}}">
|
||||
{{$.CsrfTokenHtml}}
|
||||
<button type="submit" class="ui basic red button">{{svg "octicon-person"}} {{.locale.Tr "user.unfollow"}}</button>
|
||||
</form>
|
||||
<button class="ui basic red button link-action" data-url="{{.ContextUser.HomeLink}}?action=unfollow">
|
||||
{{svg "octicon-person"}} {{.locale.Tr "user.unfollow"}}
|
||||
</button>
|
||||
{{else}}
|
||||
<form method="post" action="{{.Link}}?action=follow&redirect_to={{$.Link}}">
|
||||
{{$.CsrfTokenHtml}}
|
||||
<button type="submit" class="ui basic green button">{{svg "octicon-person"}} {{.locale.Tr "user.follow"}}</button>
|
||||
</form>
|
||||
<button class="ui basic green button link-action" data-url="{{.ContextUser.HomeLink}}?action=follow">
|
||||
{{svg "octicon-person"}} {{.locale.Tr "user.follow"}}
|
||||
</button>
|
||||
{{end}}
|
||||
</li>
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user