···1{{ define "repo/fragments/compareAllowPull" }}
2- <div class="flex items-baseline justify-normal gap-4">
00003 <p>
4 This comparison can be turned into a pull request to be reviewed and
5 discussed.
···1{{ define "repo/fragments/compareAllowPull" }}
2+ <div
3+ class="flex items-baseline justify-normal gap-4"
4+ id="allow-pull"
5+ hx-oob-swap="true"
6+ >
7 <p>
8 This comparison can be turned into a pull request to be reviewed and
9 discussed.
+10-1
appview/pages/templates/repo/index.html
···66 {{ end }}
67 </optgroup>
68 </select>
069 {{ $isOwner := and .LoggedInUser .RepoInfo.Roles.IsOwner }}
70 {{ $isCollaborator := and .LoggedInUser .RepoInfo.Roles.IsCollaborator }}
71 {{ if and (or $isOwner $isCollaborator) .ForkInfo .ForkInfo.IsFork }}
···99 <span>sync</span>
100 </button>
101 {{ end }}
102- </div>
00000000103{{ end }}
104105{{ define "fileTree" }}
···66 {{ end }}
67 </optgroup>
68 </select>
69+ <div class="flex items-center gap-2">
70 {{ $isOwner := and .LoggedInUser .RepoInfo.Roles.IsOwner }}
71 {{ $isCollaborator := and .LoggedInUser .RepoInfo.Roles.IsCollaborator }}
72 {{ if and (or $isOwner $isCollaborator) .ForkInfo .ForkInfo.IsFork }}
···100 <span>sync</span>
101 </button>
102 {{ end }}
103+ <a
104+ href="/{{ .RepoInfo.FullName }}/compare"
105+ class="btn flex items-center gap-2 no-underline hover:no-underline"
106+ title="Compare branches or tags"
107+ >
108+ {{ i "git-compare" "w-4 h-4" }}
109+ </a>
110+ </div>
111+</div>
112{{ end }}
113114{{ define "fileTree" }}