2023-08-12 12:30:28 +02:00
{{ with .Issue }}
{{ if eq $.Page.Project.CardType 1 }} {{/* Images and Text*/}}
2024-04-27 15:35:26 +02:00
{{ $attachments := index $.Page.issuesAttachmentMap .ID }}
{{ if $attachments }}
2023-08-12 12:30:28 +02:00
< div class = "card-attachment-images" >
2024-04-27 15:35:26 +02:00
{{ range $attachments }}
2023-08-12 12:30:28 +02:00
< img src = " {{ .DownloadURL }} " alt = " {{ .Name }} " />
{{ end }}
< / div >
2024-04-27 15:35:26 +02:00
{{ end }}
2023-08-12 12:30:28 +02:00
{{ end }}
2024-04-27 15:35:26 +02:00
< div class = "content tw-w-full" >
< div class = "tw-flex tw-items-start tw-gap-[5px]" >
2023-08-12 12:30:28 +02:00
< div class = "issue-card-icon" >
{{ template "shared/issueicon" . }}
< / div >
2024-06-03 02:09:51 +02:00
< a class = "issue-card-title muted issue-title tw-break-anywhere" href = " {{ .Link }} " > {{ .Title | RenderEmoji ctx | RenderCodeBlock }} </ a >
2023-08-12 12:30:28 +02:00
{{ if and $.isPinnedIssueCard $.Page.IsRepoAdmin }}
2024-03-22 20:51:29 +01:00
< a role = "button" class = "issue-card-unpin muted tw-flex tw-items-center" data-tooltip-content = {{ ctx .Locale.Tr "repo.issues.unpin_issue" }} data-issue-id=" {{ .ID }} " data-unpin-url = " {{ $.Page.Link }} /unpin/ {{ .Index }} " >
2023-08-12 12:30:28 +02:00
{{ svg "octicon-x" 16 }}
< / a >
{{ end }}
< / div >
2024-04-27 15:35:26 +02:00
< div class = "meta" >
2023-08-12 12:30:28 +02:00
< span class = "text light grey muted-links" >
{{ if not $.Page.Repository }}{{ .Repo.FullName }}{{ end }} #{{ .Index }}
{{ $timeStr := TimeSinceUnix .GetLastEventTimestamp ctx .Locale }}
{{ if .OriginalAuthor }}
2024-02-25 15:02:20 +01:00
{{ ctx .Locale.Tr .GetLastEventLabelFake $timeStr .OriginalAuthor }}
2023-08-12 12:30:28 +02:00
{{ else if gt .Poster.ID 0 }}
2024-02-25 15:02:20 +01:00
{{ ctx .Locale.Tr .GetLastEventLabel $timeStr .Poster.HomeLink .Poster.GetDisplayName }}
2023-08-12 12:30:28 +02:00
{{ else }}
2024-02-25 15:02:20 +01:00
{{ ctx .Locale.Tr .GetLastEventLabelFake $timeStr .Poster.GetDisplayName }}
2023-08-12 12:30:28 +02:00
{{ end }}
< / span >
< / div >
{{ if .MilestoneID }}
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 17:42:49 +01:00
< div class = "meta tw-my-1" >
2024-01-15 21:38:13 +01:00
< a class = "milestone" href = " {{ .Repo.Link }} /milestone/ {{ .MilestoneID }} " >
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 17:42:49 +01:00
{{ svg "octicon-milestone" 16 "tw-mr-1 tw-align-middle" }}
2024-03-22 14:45:10 +01:00
< span class = "tw-align-middle" > {{ .Milestone.Name }} </ span >
2023-08-12 12:30:28 +02:00
< / a >
< / div >
{{ end }}
{{ if $.Page.LinkedPRs }}
{{ range index $.Page.LinkedPRs .ID }}
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 17:42:49 +01:00
< div class = "meta tw-my-1" >
2024-01-15 21:38:13 +01:00
< a href = " {{ $.Issue.Repo.Link }} /pulls/ {{ .Index }} " >
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 17:42:49 +01:00
< span class = "tw-m-0 text {{ if .PullRequest.HasMerged }} purple {{ else if .IsClosed }} red {{ else }} green {{ end }} " > {{ svg "octicon-git-merge" 16 "tw-mr-1 tw-align-middle" }} </ span >
2024-03-22 14:45:10 +01:00
< span class = "tw-align-middle" > {{ .Title }} < span class = "text light grey" > #{{ .Index }} </ span ></ span >
2023-08-12 12:30:28 +02:00
< / a >
< / div >
{{ end }}
{{ end }}
2023-11-02 11:42:02 +01:00
{{ $tasks := .GetTasks }}
{{ if gt $tasks 0 }}
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 17:42:49 +01:00
< div class = "meta tw-my-1" >
{{ svg "octicon-checklist" 16 "tw-mr-1 tw-align-middle" }}
2024-03-22 14:45:10 +01:00
< span class = "tw-align-middle" > {{ .GetTasksDone }} / {{ $tasks }} </ span >
2023-11-02 11:42:02 +01:00
< / div >
{{ end }}
2023-08-12 12:30:28 +02:00
< / div >
{{ if or .Labels .Assignees }}
2024-05-02 13:19:44 +02:00
< div class = "issue-card-bottom" >
< div class = "labels-list" >
2024-04-27 15:35:26 +02:00
{{ range .Labels }}
< a target = "_blank" href = " {{ $.Issue.Repo.Link }} /issues?labels= {{ .ID }} " > {{ RenderLabel ctx ctx .Locale . }} </ a >
{{ end }}
< / div >
2024-05-02 13:19:44 +02:00
< div class = "issue-card-assignees" >
2023-08-12 12:30:28 +02:00
{{ range .Assignees }}
2024-04-27 15:35:26 +02:00
< a target = "_blank" href = " {{ .HomeLink }} " data-tooltip-content = " {{ ctx .Locale.Tr "repo.projects.column.assigned_to" }} {{ .Name }} " > {{ ctx .AvatarUtils.Avatar . 28 }} </ a >
2023-08-12 12:30:28 +02:00
{{ end }}
< / div >
< / div >
{{ end }}
{{ end }}