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