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