Commit c9f886a5d1
Verified · cmc
Layout: unified · split
e2e/dashboard_test.go +1 −1
| @@ -93,7 +93,7 @@ func TestDashboard(t *testing.T) { | |||
| 93 | t.Fatalf("dashboard: %d", status) | 93 | t.Fatalf("dashboard: %d", status) |
| 94 | } | 94 | } |
| 95 | for _, want := range []string{ | 95 | for _, want := range []string{ |
| 96 | ">Pinned</h2>", ">app<", // pinned group in the aside | 96 | `aria-labelledby="rail-pinned"`, `</span>app</a>`, // rail lists the pinned repo |
| 97 | "Waiting on your review", "Assigned to you", "Recent activity", | 97 | "Waiting on your review", "Assigned to you", "Recent activity", |
| 98 | "from bob", "alice/app!1", "todo one", "alice/app#1", | 98 | "from bob", "alice/app!1", "todo one", "alice/app#1", |
| 99 | `href="/alice/app/mrs/1"`, `href="/alice/app/issues/1"`, | 99 | `href="/alice/app/mrs/1"`, `href="/alice/app/issues/1"`, |
internal/web/templates/dashboard.html −5
| @@ -31,11 +31,6 @@ | |||
| 31 | </div> | 31 | </div> |
| 32 | 32 | ||
| 33 | <aside class="aside"> | 33 | <aside class="aside"> |
| 34 | <div class="grp"> | ||
| 35 | <h2>Pinned</h2> | ||
| 36 | {{range .Pinned}}<p class="row"><a href="/{{.OwnerName}}/{{.Name}}"><span class="owner">{{.OwnerName}}/</span>{{.Name}}</a>{{if eq .Visibility "private"}} <span class="chip">Private</span>{{end}}</p> | ||
| 37 | {{else}}<p class="none">Pin a repository to keep it here</p>{{end}} | ||
| 38 | </div> | ||
| 39 | <div class="grp"> | 34 | <div class="grp"> |
| 40 | <h2>Recent activity</h2> | 35 | <h2>Recent activity</h2> |
| 41 | {{range .Feed}}<p class="row feedline"><a href="/{{.Actor}}">{{.Actor}}</a> {{.Verb}} <a href="{{.URL}}">{{.Ref}}</a><br><span class="none">{{.Repo}} · {{when .When}}</span></p> | 36 | {{range .Feed}}<p class="row feedline"><a href="/{{.Actor}}">{{.Actor}}</a> {{.Verb}} <a href="{{.URL}}">{{.Ref}}</a><br><span class="none">{{.Repo}} · {{when .When}}</span></p> |