зеркало из https://github.com/golang/build.git
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:
Родитель
b2ad2e2e6d
Коммит
a944326033
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче