2017-09-06 12:02:51 +00:00
|
|
|
{{if and (not .Issue.IsPull) (not .PageIsComparePull)}}
|
2021-12-17 21:29:09 +00:00
|
|
|
<input id="ref_selector" name="ref" type="hidden" value="{{.Reference}}">
|
2020-09-08 16:29:51 +00:00
|
|
|
<input id="editing_mode" name="edit_mode" type="hidden" value="{{(or .IsIssueWriter .HasIssuesOrPullsWritePermission)}}">
|
2023-06-14 18:17:58 +00:00
|
|
|
<form method="post" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/ref" id="update_issueref_form">
|
2020-09-08 16:29:51 +00:00
|
|
|
{{$.CsrfTokenHtml}}
|
|
|
|
</form>
|
2024-03-15 03:43:10 +00:00
|
|
|
{{/* TODO: share this branch selector dropdown with the same in repo page */}}
|
2024-03-23 16:27:31 +00:00
|
|
|
<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 12:30:27 +00:00
|
|
|
<div class="ui basic small button">
|
2023-09-25 08:56:50 +00:00
|
|
|
<span class="text branch-name">{{if .Reference}}{{$.RefEndName}}{{else}}{{ctx.Locale.Tr "repo.issues.no_ref"}}{{end}}</span>
|
2021-11-28 04:13:13 +00:00
|
|
|
{{if .HasIssuesOrPullsWritePermission}}{{svg "octicon-triangle-down" 14 "dropdown icon"}}{{end}}
|
2017-08-24 12:30:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="menu">
|
|
|
|
<div class="ui icon search input">
|
2023-06-14 16:40:15 +00:00
|
|
|
<i class="icon">{{svg "octicon-filter" 16}}</i>
|
2023-09-25 08:56:50 +00:00
|
|
|
<input name="search" placeholder="{{ctx.Locale.Tr "repo.filter_branch_and_tag"}}...">
|
2017-08-24 12:30:27 +00:00
|
|
|
</div>
|
|
|
|
<div class="header">
|
|
|
|
<div class="ui grid">
|
|
|
|
<div class="two column row">
|
2024-03-15 03:43:10 +00:00
|
|
|
<a class="reference column muted" href="#" data-target="#branch-list">
|
2017-08-24 12:30:27 +00:00
|
|
|
<span class="text black">
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 16:42:49 +00:00
|
|
|
{{svg "octicon-git-branch" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.branches"}}
|
2017-08-24 12:30:27 +00:00
|
|
|
</span>
|
|
|
|
</a>
|
2024-03-15 03:43:10 +00:00
|
|
|
<a class="reference column muted" href="#" data-target="#tag-list">
|
2017-08-24 12:30:27 +00:00
|
|
|
<span class="text">
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 16:42:49 +00:00
|
|
|
{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.tags"}}
|
2017-08-24 12:30:27 +00:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-03-15 03:43:10 +00:00
|
|
|
<div class="branch-tag-divider"></div>
|
2020-12-31 18:32:11 +00:00
|
|
|
<div id="branch-list" class="scrolling menu reference-list-menu {{if not .Issue}}new-issue{{end}}">
|
2021-12-17 21:29:09 +00:00
|
|
|
{{if .Reference}}
|
2023-09-25 08:56:50 +00:00
|
|
|
<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 03:46:37 +00:00
|
|
|
{{end}}
|
2020-09-08 16:29:51 +00:00
|
|
|
{{range .Branches}}
|
|
|
|
<div class="item" data-id="refs/heads/{{.}}" data-name="{{.}}" data-id-selector="#ref_selector">{{.}}</div>
|
2024-03-15 03:43:10 +00:00
|
|
|
{{else}}
|
2024-03-23 16:27:31 +00:00
|
|
|
<div class="item">{{ctx.Locale.Tr "repo.pulls.no_results"}}</div>
|
2020-09-08 16:29:51 +00:00
|
|
|
{{end}}
|
2017-08-24 12:30:27 +00:00
|
|
|
</div>
|
2023-02-19 04:06:14 +00:00
|
|
|
<div id="tag-list" class="scrolling menu reference-list-menu {{if not .Issue}}new-issue{{end}} gt-hidden">
|
2021-12-17 21:29:09 +00:00
|
|
|
{{if .Reference}}
|
2023-09-25 08:56:50 +00:00
|
|
|
<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 03:46:37 +00:00
|
|
|
{{end}}
|
2020-09-08 16:29:51 +00:00
|
|
|
{{range .Tags}}
|
|
|
|
<div class="item" data-id="refs/tags/{{.}}" data-name="tags/{{.}}" data-id-selector="#ref_selector">{{.}}</div>
|
2024-03-15 03:43:10 +00:00
|
|
|
{{else}}
|
2024-03-23 16:27:31 +00:00
|
|
|
<div class="item">{{ctx.Locale.Tr "repo.pulls.no_results"}}</div>
|
2020-09-08 16:29:51 +00:00
|
|
|
{{end}}
|
2017-08-24 12:30:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-06-29 12:24:22 +00:00
|
|
|
<div class="divider"></div>
|
2020-02-11 17:02:41 +00:00
|
|
|
{{end}}
|