remove pr button

This commit is contained in:
lutinglt
2025-11-27 18:23:46 +08:00
parent 47519afe4a
commit 91ef8da69c
2 changed files with 1 additions and 19 deletions

View File

@@ -5,9 +5,6 @@ export const repoButtonRow = css`
// 仓库按钮行 // 仓库按钮行
&.repo-button-row { &.repo-button-row {
margin: 0 0 16px 0; margin: 0 0 16px 0;
.ui.button.compact.basic:not(.dropdown):not(.jump) {
padding: 0px 10px;
}
.repo-button-row-left .repository-summary { .repo-button-row-left .repository-summary {
> .item { > .item {
display: inline-flex; display: inline-flex;

View File

@@ -24,19 +24,6 @@
"ShowViewAllRefsEntry" true "ShowViewAllRefsEntry" true
}} }}
{{if and .CanCompareOrPull .RefFullName.IsBranch (not .Repository.IsArchived)}}
{{$cmpBranch := ""}}
{{if ne .Repository.ID .BaseRepo.ID}}
{{$cmpBranch = printf "%s/%s:" (.Repository.OwnerName|PathEscape) (.Repository.Name|PathEscape)}}
{{end}}
{{$cmpBranch = print $cmpBranch (.BranchName|PathEscapeSegments)}}
{{$compareLink := printf "%s/compare/%s...%s" .BaseRepo.Link (.BaseRepo.DefaultBranch|PathEscapeSegments) $cmpBranch}}
<a id="new-pull-request" role="button" class="ui compact basic button" href="{{QueryBuild $compareLink "expand" 1}}"
data-tooltip-content="{{if .PullRequestCtx.Allowed}}{{ctx.Locale.Tr "repo.pulls.compare_changes"}}{{else}}{{ctx.Locale.Tr "action.compare_branch"}}{{end}}">
{{svg "octicon-git-pull-request"}}
</a>
{{end}}
{{if and $isTreePathRoot (.Permission.CanRead ctx.Consts.RepoUnitTypeCode) (not .IsEmptyRepo)}} {{if and $isTreePathRoot (.Permission.CanRead ctx.Consts.RepoUnitTypeCode) (not .IsEmptyRepo)}}
<div class="repository-summary"> <div class="repository-summary">
<a class="item muted" href="{{.RepoLink}}/branches"> <a class="item muted" href="{{.RepoLink}}/branches">
@@ -70,9 +57,7 @@
<div class="repo-button-row-right"> <div class="repo-button-row-right">
<!-- Show go to file if on home page --> <!-- Show go to file if on home page -->
{{if $isTreePathRoot}} {{if $isTreePathRoot}}
<a href="{{.Repository.Link}}/find/{{.RefTypeNameSubURL}}" class="ui compact basic button" data-tooltip-content="{{ctx.Locale.Tr "repo.find_file.go_to_file"}}"> <a href="{{.Repository.Link}}/find/{{.RefTypeNameSubURL}}" class="ui compact basic button">{{ctx.Locale.Tr "repo.find_file.go_to_file"}}</a>
{{svg "octicon-search" 16}}
</a>
{{end}} {{end}}
{{if and .RefFullName.IsBranch (not .IsViewFile)}} {{if and .RefFullName.IsBranch (not .IsViewFile)}}