Commit 6b2c5a3105

6b2c5a310576352b84724632fa49445aac9b7f20

parent: 1a3100bc34

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-19 01:27 UTC

web: repositories after the activity graph on the profile

Ref #225
e2e/profile_test.go +2 −2
@@ -214,8 +214,8 @@ func TestOwnerProfiles(t *testing.T) {
214214 if strings.Index(body, "<em>small tools</em>") > strings.Index(body, `class="activity"`) {
215215 t.Error("about renders below the activity graph")
216216 }
217 if strings.Index(body, `<ul class="repolist"`) > strings.Index(body, "<em>small tools</em>") {
218 t.Error("repositories render below the about section")
217 if strings.Index(body, `<ul class="repolist"`) < strings.Index(body, `class="activity"`) {
218 t.Error("repositories render above the activity graph")
219219 }
220220
221221 // Clearing works the same way as the other fields.
internal/web/templates/owner.html +5 −5
@@ -9,11 +9,6 @@
99{{if .Members}}<p class="meta">members {{range .Members}}<a class="memberchip" href="/{{.Name}}">{{.Name}} <span class="role">{{.Role}}</span></a> {{end}}</p>{{end}}
1010{{if and (eq .Kind "org") .Repos}}<p class="meta"><a href="/{{.Owner}}/-/labels">labels</a> · <a href="/{{.Owner}}/-/milestones">milestones</a></p>{{end}}
1111</section>
12<h2>repositories <span class="count">{{len .Repos}}</span></h2>
13<ul class="repolist">
14{{range .Repos}}{{template "reporow" .}}
15{{else}}<li class="empty">no visible repositories</li>{{end}}
16</ul>
1712{{if .AboutHTML}}<section class="readme"><div class="rendered">{{.AboutHTML}}</div></section>{{end}}
1813<section class="activity">
1914<h2>activity <span class="count">{{.ActivityTotal}} in the last year</span></h2>
@@ -24,6 +19,11 @@
2419</div>
2520<p class="actlegend"><span>Less</span><span class="actday l0"></span><span class="actday l1"></span><span class="actday l2"></span><span class="actday l3"></span><span class="actday l4"></span><span>More</span></p>
2621</section>
22<h2>repositories <span class="count">{{len .Repos}}</span></h2>
23<ul class="repolist">
24{{range .Repos}}{{template "reporow" .}}
25{{else}}<li class="empty">no visible repositories</li>{{end}}
26</ul>
2727{{if or .Snippets .Self}}<p class="meta"><a href="/{{.Owner}}/-/snippets">snippets{{if .Snippets}} <span class="count">{{.Snippets}}</span>{{end}}</a></p>{{end}}
2828
2929{{if .Self}}