Skip to content

Commit ac00c31

Browse files
committed
Add Orange Lable
1 parent 35b7c99 commit ac00c31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: templates/repo/branch/list.tmpl

+5-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@
7575
</td>
7676
<td class="two wide right aligned">
7777
{{if not .LatestPullRequest}}
78-
{{if and (not .IsDeleted) $.AllowsPulls (gt .CommitsAhead 0)}}
78+
{{if .IsIncluded}}
79+
<a class="ui poping up orange small label" data-content="{{$.i18n.Tr "repo.branch.included_desc"}}" data-variation="tiny inverted" data-position="top right">
80+
<i class="octicon octicon-git-pull-request"></i> {{$.i18n.Tr "repo.branch.included"}}
81+
</a>
82+
{{else if and (not .IsDeleted) $.AllowsPulls (gt .CommitsAhead 0)}}
7983
<a href="{{$.RepoLink}}/compare/{{$.DefaultBranch | EscapePound}}...{{if ne $.Repository.Owner.Name $.Owner.Name}}{{$.Owner.Name}}:{{end}}{{.Name | EscapePound}}">
8084
<button id="new-pull-request" class="ui compact basic button">{{$.i18n.Tr "repo.pulls.compare_changes"}}</button>
8185
</a>

0 commit comments

Comments
 (0)