Skip to content

Commit 7abe958

Browse files
HesterGGiteaBot
andauthored
Fix color for transfer related buttons when having no permission to act (#24510)
Before: <img width="1410" alt="Screen Shot 2023-05-04 at 09 28 23" src="https://user-images.githubusercontent.com/17645053/236100146-2b64d274-2d79-4b4c-827c-3906a2a9dbb7.png"> <img width="1413" alt="Screen Shot 2023-05-04 at 09 28 30" src="https://user-images.githubusercontent.com/17645053/236100157-15c12e83-a4f5-4b4e-b26b-73a8ce8bc0db.png"> After: With no permission: <img width="1409" alt="Screen Shot 2023-05-04 at 12 17 12" src="https://user-images.githubusercontent.com/17645053/236144666-c2bb6ca2-59e1-45ae-93cd-d43545500d06.png"> <img width="1402" alt="Screen Shot 2023-05-04 at 12 17 17" src="https://user-images.githubusercontent.com/17645053/236144677-c51a65cf-8aef-4566-b265-14b2ebb46d0b.png"> With permission: <img width="1412" alt="Screen Shot 2023-05-04 at 12 16 45" src="https://user-images.githubusercontent.com/17645053/236144565-9c5aa9a6-1424-49e3-a2b2-a129fecb856c.png"> <img width="1420" alt="Screen Shot 2023-05-04 at 12 16 51" src="https://user-images.githubusercontent.com/17645053/236144573-a4064136-80d9-4c41-8f98-f51b4352bdf7.png"> --------- Co-authored-by: Giteabot <[email protected]>
1 parent 03fab6a commit 7abe958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/header.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252
<form method="post" action="{{$.RepoLink}}/action/accept_transfer?redirect_to={{$.RepoLink}}">
5353
{{$.CsrfTokenHtml}}
5454
<div data-tooltip-content="{{if $.CanUserAcceptTransfer}}{{$.locale.Tr "repo.transfer.accept_desc" $.RepoTransfer.Recipient.DisplayName}}{{else}}{{$.locale.Tr "repo.transfer.no_permission_to_accept"}}{{end}}">
55-
<button type="submit" class="ui button {{if $.CanUserAcceptTransfer}}green {{end}} ok inverted small"{{if not $.CanUserAcceptTransfer}} disabled{{end}}>
55+
<button type="submit" class="ui basic button {{if $.CanUserAcceptTransfer}}green {{end}} ok small"{{if not $.CanUserAcceptTransfer}} disabled{{end}}>
5656
{{$.locale.Tr "repo.transfer.accept"}}
5757
</button>
5858
</div>
5959
</form>
6060
<form method="post" action="{{$.RepoLink}}/action/reject_transfer?redirect_to={{$.RepoLink}}">
6161
{{$.CsrfTokenHtml}}
6262
<div data-tooltip-content="{{if $.CanUserAcceptTransfer}}{{$.locale.Tr "repo.transfer.reject_desc" $.RepoTransfer.Recipient.DisplayName}}{{else}}{{$.locale.Tr "repo.transfer.no_permission_to_reject"}}{{end}}">
63-
<button type="submit" class="ui button {{if $.CanUserAcceptTransfer}}red {{end}}ok inverted small"{{if not $.CanUserAcceptTransfer}} disabled{{end}}>
63+
<button type="submit" class="ui basic button {{if $.CanUserAcceptTransfer}}red {{end}}ok small"{{if not $.CanUserAcceptTransfer}} disabled{{end}}>
6464
{{$.locale.Tr "repo.transfer.reject"}}
6565
</button>
6666
</div>

0 commit comments

Comments
 (0)