2023-10-01 13:04:39 +00:00
< div class = "ui secondary filter menu" >
{{ if not .Repository.IsArchived }}
<!-- Action Button -->
{{ if .IsShowClosed }}
< button class = "ui primary basic button issue-action" data-action = "open" data-url = " {{ $.RepoLink }} /issues/status" > {{ ctx .Locale.Tr "repo.issues.action_open" }} </ button >
{{ else }}
< button class = "ui red basic button issue-action" data-action = "close" data-url = " {{ $.RepoLink }} /issues/status" > {{ ctx .Locale.Tr "repo.issues.action_close" }} </ button >
{{ end }}
{{ if $.IsRepoAdmin }}
< button class = "ui red button issue-action"
data-action="delete" data-url="{{ $.RepoLink }} /issues/delete"
data-action-delete-confirm="{{ ctx .Locale.Tr "confirm_delete_selected" }} "
>{{ ctx .Locale.Tr "repo.issues.delete" }} </ button >
{{ end }}
<!-- Labels -->
< div class = "ui {{ if not .Labels }} disabled {{ end }} dropdown jump item" >
< span class = "text" >
{{ ctx .Locale.Tr "repo.issues.action_label" }}
< / span >
{{ svg "octicon-triangle-down" 14 "dropdown icon" }}
< div class = "menu" >
< div class = "item issue-action" data-action = "clear" data-url = " {{ $.RepoLink }} /issues/labels" >
{{ ctx .Locale.Tr "repo.issues.new.clear_labels" }}
< / div >
{{ $previousExclusiveScope := "_no_scope" }}
{{ range .Labels }}
{{ $exclusiveScope := .ExclusiveScope }}
{{ if and ( ne $previousExclusiveScope "_no_scope" ) ( ne $previousExclusiveScope $exclusiveScope ) }}
< div class = "divider" > < / div >
{{ end }}
{{ $previousExclusiveScope = $exclusiveScope }}
2024-03-24 20:27:48 +00:00
< div class = "item issue-action tw-flex tw-justify-between" data-action = "toggle" data-element-id = " {{ .ID }} " data-url = " {{ $.RepoLink }} /issues/labels" >
2023-10-01 13:04:39 +00:00
{{ if SliceUtils .Contains $.SelLabelIDs .ID }}{{ if $exclusiveScope }}{{ svg "octicon-dot-fill" }}{{ else }}{{ svg "octicon-check" }}{{ end }}{{ end }} {{ RenderLabel $.Context . }}
2023-10-17 14:10:45 +00:00
{{ template "repo/issue/labels/label_archived" . }}
2023-10-01 13:04:39 +00:00
< / div >
{{ end }}
< / div >
< / div >
<!-- Milestone -->
< div class = "ui {{ if not ( or .OpenMilestones .ClosedMilestones ) }} disabled {{ end }} dropdown jump item" >
< span class = "text" >
{{ ctx .Locale.Tr "repo.issues.action_milestone" }}
< / span >
{{ svg "octicon-triangle-down" 14 "dropdown icon" }}
< div class = "menu" >
< div class = "item issue-action" data-element-id = "0" data-url = " {{ $.Link }} /milestone" >
{{ ctx .Locale.Tr "repo.issues.action_milestone_no_select" }}
< / div >
{{ if .OpenMilestones }}
< div class = "divider" > < / div >
< div class = "header" > {{ ctx .Locale.Tr "repo.issues.filter_milestone_open" }} </ div >
{{ range .OpenMilestones }}
< div class = "item issue-action" data-element-id = " {{ .ID }} " data-url = " {{ $.RepoLink }} /issues/milestone" >
{{ .Name }}
< / div >
{{ end }}
{{ end }}
{{ if .ClosedMilestones }}
< div class = "divider" > < / div >
< div class = "header" > {{ ctx .Locale.Tr "repo.issues.filter_milestone_open" }} </ div >
{{ range .ClosedMilestones }}
< div class = "item issue-action" data-element-id = " {{ .ID }} " data-url = " {{ $.RepoLink }} /issues/milestone" >
{{ .Name }}
< / div >
{{ end }}
{{ end }}
< / div >
< / div >
<!-- Projects -->
< div class = "ui {{ if not ( or .OpenProjects .ClosedProjects ) }} disabled {{ end }} dropdown jump item" >
< span class = "text" >
{{ ctx .Locale.Tr "repo.project_board" }}
< / span >
{{ svg "octicon-triangle-down" 14 "dropdown icon" }}
< div class = "menu" >
< div class = "item issue-action" data-element-id = "0" data-url = " {{ $.Link }} /projects" >
{{ ctx .Locale.Tr "repo.issues.new.clear_projects" }}
< / div >
{{ if .OpenProjects }}
< div class = "divider" > < / div >
< div class = "header" >
{{ ctx .Locale.Tr "repo.issues.new.open_projects" }}
< / div >
{{ range .OpenProjects }}
< div class = "item issue-action" data-element-id = " {{ .ID }} " data-url = " {{ $.RepoLink }} /issues/projects" >
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 .IconName 18 "tw-mr-2" }}{{ .Title }}
2023-10-01 13:04:39 +00:00
< / div >
{{ end }}
{{ end }}
{{ if .ClosedProjects }}
< div class = "divider" > < / div >
< div class = "header" >
{{ ctx .Locale.Tr "repo.issues.new.closed_projects" }}
< / div >
{{ range .ClosedProjects }}
< div class = "item issue-action" data-element-id = " {{ .ID }} " data-url = " {{ $.RepoLink }} /issues/projects" >
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 .IconName 18 "tw-mr-2" }}{{ .Title }}
2023-10-01 13:04:39 +00:00
< / div >
{{ end }}
{{ end }}
< / div >
< / div >
<!-- Assignees -->
< div class = "ui {{ if not .Assignees }} disabled {{ end }} dropdown jump item" >
< span class = "text" >
{{ ctx .Locale.Tr "repo.issues.action_assignee" }}
< / span >
{{ svg "octicon-triangle-down" 14 "dropdown icon" }}
< div class = "menu" >
< div class = "item issue-action" data-action = "clear" data-url = " {{ $.Link }} /assignee" >
{{ ctx .Locale.Tr "repo.issues.new.clear_assignees" }}
< / div >
< div class = "item issue-action" data-element-id = "0" data-url = " {{ $.Link }} /assignee" >
{{ ctx .Locale.Tr "repo.issues.action_assignee_no_select" }}
< / div >
{{ range .Assignees }}
< div class = "item issue-action" data-element-id = " {{ .ID }} " data-url = " {{ $.RepoLink }} /issues/assignee" >
{{ ctx .AvatarUtils.Avatar . 20 }} {{ .GetDisplayName }}
< / div >
{{ end }}
< / div >
< / div >
{{ end }}
< / div >