2017-09-06 17:32:51 +05:30
|
|
|
{{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
|
2021-12-18 02:59:09 +05:30
|
|
|
<input id="ref_selector" name="ref" type="hidden" value="{{.Reference}}">
|
2020-09-08 21:59:51 +05:30
|
|
|
<input id="editing_mode" name="edit_mode" type="hidden" value="{{(or .IsIssueWriter .HasIssuesOrPullsWritePermission)}}">
|
2023-06-14 23:47:58 +05:30
|
|
|
<form method="post" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/ref" id="update_issueref_form">
|
2020-09-08 21:59:51 +05:30
|
|
|
{{$.CsrfTokenHtml}}
|
|
|
|
</form>
|
2024-03-15 09:13:10 +05:30
|
|
|
{{/* TODO: share this branch selector dropdown with the same in repo page */}}
|
2024-03-23 21:57:31 +05:30
|
|
|
<div class="ui {{if not .HasIssuesOrPullsWritePermission}}disabled{{end}} floating filter select-branch dropdown" data-no-results="{{ctx.Locale.Tr "repo.pulls.no_results"}}">
|
2017-08-24 18:00:27 +05:30
|
|
|
<div class="ui basic small button">
|
2023-09-25 14:26:50 +05:30
|
|
|
<span class="text branch-name">{{if .Reference}}{{$.RefEndName}}{{else}}{{ctx.Locale.Tr "repo.issues.no_ref"}}{{end}}</span>
|
2021-11-28 09:43:13 +05:30
|
|
|
{{if .HasIssuesOrPullsWritePermission}}{{svg "octicon-triangle-down" 14 "dropdown icon"}}{{end}}
|
2017-08-24 18:00:27 +05:30
|
|
|
</div>
|
|
|
|
<div class="menu">
|
|
|
|
<div class="ui icon search input">
|
2023-06-14 22:10:15 +05:30
|
|
|
<i class="icon">{{svg "octicon-filter" 16}}</i>
|
2023-09-25 14:26:50 +05:30
|
|
|
<input name="search" placeholder="{{ctx.Locale.Tr "repo.filter_branch_and_tag"}}...">
|
2017-08-24 18:00:27 +05:30
|
|
|
</div>
|
|
|
|
<div class="header">
|
|
|
|
<div class="ui grid">
|
|
|
|
<div class="two column row">
|
2024-03-15 09:13:10 +05:30
|
|
|
<a class="reference column muted" href="#" data-target="#branch-list">
|
2017-08-24 18:00:27 +05:30
|
|
|
<span class="text black">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{svg "octicon-git-branch" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.branches"}}
|
2017-08-24 18:00:27 +05:30
|
|
|
</span>
|
|
|
|
</a>
|
2024-03-15 09:13:10 +05:30
|
|
|
<a class="reference column muted" href="#" data-target="#tag-list">
|
2017-08-24 18:00:27 +05:30
|
|
|
<span class="text">
|
2023-09-25 14:26:50 +05:30
|
|
|
{{svg "octicon-tag" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.tags"}}
|
2017-08-24 18:00:27 +05:30
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-03-15 09:13:10 +05:30
|
|
|
<div class="branch-tag-divider"></div>
|
2021-01-01 00:02:11 +05:30
|
|
|
<div id="branch-list" class="scrolling menu reference-list-menu {{if not .Issue}}new-issue{{end}}">
|
2021-12-18 02:59:09 +05:30
|
|
|
{{if .Reference}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<div class="item text small" data-id="" data-id-selector="#ref_selector"><strong><a href="#">{{ctx.Locale.Tr "repo.clear_ref"}}</a></strong></div>
|
2021-04-11 09:16:37 +05:30
|
|
|
{{end}}
|
2020-09-08 21:59:51 +05:30
|
|
|
{{range .Branches}}
|
|
|
|
<div class="item" data-id="refs/heads/{{.}}" data-name="{{.}}" data-id-selector="#ref_selector">{{.}}</div>
|
2024-03-15 09:13:10 +05:30
|
|
|
{{else}}
|
2024-03-23 21:57:31 +05:30
|
|
|
<div class="item">{{ctx.Locale.Tr "repo.pulls.no_results"}}</div>
|
2020-09-08 21:59:51 +05:30
|
|
|
{{end}}
|
2017-08-24 18:00:27 +05:30
|
|
|
</div>
|
2023-02-19 09:36:14 +05:30
|
|
|
<div id="tag-list" class="scrolling menu reference-list-menu {{if not .Issue}}new-issue{{end}} gt-hidden">
|
2021-12-18 02:59:09 +05:30
|
|
|
{{if .Reference}}
|
2023-09-25 14:26:50 +05:30
|
|
|
<div class="item text small" data-id="" data-id-selector="#ref_selector"><strong><a href="#">{{ctx.Locale.Tr "repo.clear_ref"}}</a></strong></div>
|
2021-04-11 09:16:37 +05:30
|
|
|
{{end}}
|
2020-09-08 21:59:51 +05:30
|
|
|
{{range .Tags}}
|
|
|
|
<div class="item" data-id="refs/tags/{{.}}" data-name="tags/{{.}}" data-id-selector="#ref_selector">{{.}}</div>
|
2024-03-15 09:13:10 +05:30
|
|
|
{{else}}
|
2024-03-23 21:57:31 +05:30
|
|
|
<div class="item">{{ctx.Locale.Tr "repo.pulls.no_results"}}</div>
|
2020-09-08 21:59:51 +05:30
|
|
|
{{end}}
|
2017-08-24 18:00:27 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-06-29 17:54:22 +05:30
|
|
|
<div class="divider"></div>
|
2020-02-11 22:32:41 +05:30
|
|
|
{{end}}
|