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:
@@ -20,16 +20,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="right menu">
|
||||
<form method="post" action="{{.Link}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}&redirect_to={{$.Link}}">
|
||||
{{$.CsrfTokenHtml}}
|
||||
<button type="submit" class="ui basic button gt-mr-0">
|
||||
{{if $.IsFollowing}}
|
||||
{{.locale.Tr "user.unfollow"}}
|
||||
{{else}}
|
||||
{{.locale.Tr "user.follow"}}
|
||||
{{end}}
|
||||
</button>
|
||||
</form>
|
||||
<button class="link-action ui basic button gt-mr-0" data-url="{{.Org.HomeLink}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}">
|
||||
{{if $.IsFollowing}}
|
||||
{{.locale.Tr "user.unfollow"}}
|
||||
{{else}}
|
||||
{{.locale.Tr "user.follow"}}
|
||||
{{end}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{{template "base/head" .}}
|
||||
<div role="main" aria-label="{{.Title}}" class="page-content repository packages">
|
||||
<div role="main" aria-label="{{.Title}}" class="page-content repository projects view-project">
|
||||
{{template "shared/user/org_profile_avatar" .}}
|
||||
<div class="ui container">
|
||||
{{template "user/overview/header" .}}
|
||||
|
Reference in New Issue
Block a user