|
73 | 73 | {{ range $board := .Boards }} |
74 | 74 |
|
75 | 75 | <div class="ui segment board-column" data-id="{{.ID}}" data-sorting="{{.Sorting}}" data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}"> |
76 | | - <div class="board-column-header"> |
77 | | - <div class="ui large label board-label">{{.Title}}</div> |
| 76 | + <div class="board-column-header df ac sb"> |
| 77 | + <div class="ui large label board-label py-2">{{.Title}}</div> |
78 | 78 | {{if and $.CanWriteProjects (not $.Repository.IsArchived) $.PageIsProjects (ne .ID 0)}} |
79 | | - <div class="ui dropdown jump item poping up right" data-variation="tiny inverted"> |
80 | | - <span class="ui text"> |
81 | | - <span class="fitted not-mobile" tabindex="-1">{{svg "octicon-kebab-horizontal" 24}}</span> |
82 | | - </span> |
| 79 | + <div class="ui dropdown jump item poping up" data-variation="tiny inverted"> |
| 80 | + <div class="not-mobile px-3" tabindex="-1"> |
| 81 | + {{svg "octicon-kebab-horizontal"}} |
| 82 | + </div> |
83 | 83 | <div class="menu user-menu" tabindex="-1"> |
84 | 84 | <a class="item show-modal button" data-modal="#edit-project-board-modal-{{.ID}}"> |
85 | 85 | {{svg "octicon-pencil"}} |
|
156 | 156 |
|
157 | 157 | <!-- start issue card --> |
158 | 158 | <div class="card board-card" data-issue="{{.ID}}"> |
159 | | - <div class="content"> |
| 159 | + <div class="content p-0"> |
160 | 160 | <div class="header"> |
161 | | - <span> |
| 161 | + <span class="dif ac vm {{if .IsClosed}}red{{else}}green{{end}}"> |
162 | 162 | {{if .IsPull}} |
163 | 163 | {{if .PullRequest.HasMerged}} |
164 | 164 | {{svg "octicon-git-merge" 16 "text purple"}} |
|
177 | 177 | {{end}} |
178 | 178 | {{end}} |
179 | 179 | </span> |
180 | | - <a class="project-board-title" href="{{$.RepoLink}}/issues/{{.Index}}">#{{.Index}} {{.Title}}</a> |
| 180 | + <a class="project-board-title vm" href="{{$.RepoLink}}/issues/{{.Index}}"> |
| 181 | + {{.Title}} |
| 182 | + </a> |
| 183 | + </div> |
| 184 | + <div class="meta my-2"> |
| 185 | + <span class="text light grey"> |
| 186 | + #{{.Index}} |
| 187 | + {{ $timeStr := TimeSinceUnix .GetLastEventTimestamp $.Lang }} |
| 188 | + {{if .OriginalAuthor }} |
| 189 | + {{$.i18n.Tr .GetLastEventLabelFake $timeStr .OriginalAuthor | Safe}} |
| 190 | + {{else if gt .Poster.ID 0}} |
| 191 | + {{$.i18n.Tr .GetLastEventLabel $timeStr .Poster.HomeLink (.Poster.GetDisplayName | Escape) | Safe}} |
| 192 | + {{else}} |
| 193 | + {{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName | Escape) | Safe}} |
| 194 | + {{end}} |
| 195 | + </span> |
181 | 196 | </div> |
182 | 197 | {{- if .MilestoneID }} |
183 | | - <div class="meta"> |
| 198 | + <div class="meta my-2"> |
184 | 199 | <a class="milestone" href="{{$.RepoLink}}/milestone/{{ .MilestoneID}}"> |
185 | | - {{svg "octicon-milestone"}} {{ .Milestone.Name }} |
| 200 | + {{svg "octicon-milestone" 16 "mr-2 vm"}} |
| 201 | + <span class="vm">{{ .Milestone.Name }}</span> |
186 | 202 | </a> |
187 | 203 | </div> |
188 | 204 | {{- end }} |
189 | 205 | {{- range index $.LinkedPRs .ID }} |
190 | | - <div class="meta"> |
| 206 | + <div class="meta my-2"> |
191 | 207 | <a href="{{$.RepoLink}}/pulls/{{ .Index }}"> |
192 | | - <span class="{{if .PullRequest.HasMerged}}purple{{else if .IsClosed}}red{{else}}green{{end}}">{{svg "octicon-git-merge"}}</span> |
193 | | - {{ .Title}} (#{{ .Index }}) |
| 208 | + <span class="m-0 {{if .PullRequest.HasMerged}}purple{{else if .IsClosed}}red{{else}}green{{end}}">{{svg "octicon-git-merge" 16 "mr-2 vm"}}</span> |
| 209 | + <span class="vm">{{ .Title}} <span class="text light grey">#{{.Index}}</span></span> |
194 | 210 | </a> |
195 | 211 | </div> |
196 | 212 | {{- end }} |
197 | 213 | </div> |
198 | | - <div class="extra content"> |
199 | | - {{ range .Labels }} |
200 | | - <a class="ui label" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}; margin-bottom: 3px;" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a> |
201 | | - {{ end }} |
202 | | - </div> |
| 214 | + {{if .Labels}} |
| 215 | + <div class="extra content labels-list p-0 pt-2"> |
| 216 | + {{ range .Labels }} |
| 217 | + <a class="ui label" href="{{$.RepoLink}}/issues?labels={{.ID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description | RenderEmojiPlain}}">{{.Name | RenderEmoji}}</a> |
| 218 | + {{ end }} |
| 219 | + </div> |
| 220 | + {{end}} |
203 | 221 | </div> |
204 | 222 | <!-- stop issue card --> |
205 | 223 |
|
|
0 commit comments