devapp: place stars next to release-blocking issues

It was previously like this:
https://web.archive.org/web/20140622000427/http://research.swtch.com/dashboard/Go1.4#all

Change-Id: I617da68cace784e072b2daa7bc952c170410e78a
Reviewed-on: https://go-review.googlesource.com/79475
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Andrew Bonventre 2017-11-22 14:21:54 -05:00
Родитель b2ad2e2e6d
Коммит a944326033
2 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -84,6 +84,13 @@ type item struct {
CLs []*gerritCL
}
func (i *item) ReleaseBlocker() bool {
if i.Issue == nil {
return false
}
return i.Issue.HasLabel("release-blocker")
}
type itemsBySummary []item
func (x itemsBySummary) Len() int { return len(x) }

Просмотреть файл

@ -34,6 +34,10 @@ a:visited {
.Item {
display: flex;
}
.Item-blocker:before {
content: '★';
position: absolute;
}
.Item-num {
margin-left: 4ch;
min-width: 12ch;
@ -60,7 +64,7 @@ a:visited {
{{range .Items}}
{{$i := .Issue}}
{{if $i}}
<div class="Item">
<div class="Item{{if .ReleaseBlocker}} Item-blocker{{end}}">
<a class="Item-num" href="https://golang.org/issue/{{.Issue.Number}}" target="_blank">#{{.Issue.Number}}</a>
<span class="Item-title">{{.Issue.Title}}</span>
</div>