vole
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software:2222/vole.git
A free and open-source forge that lives in your Git repo.
Give every account a profile page and a directory of accounts
a6b42433c087ab0c936e34a1d05cf488db7a92d6 · Keenan Nemetz · 8d ago · parent 727df386
Give every account a profile page and a directory of accounts Clicking a name now opens /u/<name>: the issues and changes somebody opened, the reviews they gave, the comments they left, and the repositories that work is in. The numbers and the feed are grouped reads of the same event rows the activity feed pages through, so a profile cannot disagree with the feed, and every read is limited to the repositories the reader may open. A private repository's work is not a number an outsider gets to learn, so two readers can see different totals and the page says what its numbers cover. /u lists the roster. Account names are public on this instance; their activity is not. Both pages ask crawlers to leave them out of an index. @name in an issue, a comment, a change request, or a release note links to the account it addresses, using the mention scanner CI already evaluates: what reads as an address on the page is what a workflow sees. A name that is not an account stays text, and code samples are skipped. Git author names are not linked and commit counts are not shown. A commit author is a name somebody typed, not the credential that proves an account, and the index only keeps the top eight authors of each default branch anyway.
server/web/templates/profile.html +91
| @@ -0,0 +1,91 @@ | |||
| 1 | {{define "profile"}} | ||
| 2 | {{template "header" .}} | ||
| 3 | <div class="page-head profile-head"> | ||
| 4 | <div class="page-head-main"> | ||
| 5 | <p class="profile-back"><a href="/u">← All people</a></p> | ||
| 6 | <div class="profile-who"> | ||
| 7 | <span class="avatar avatar-lg c{{tone .Name}}" aria-hidden="true">{{initial .Name}}</span> | ||
| 8 | <div> | ||
| 9 | <h1>{{.Name}}</h1> | ||
| 10 | <p class="page-sub">Issues, changes, and reviews from {{.Name}}.{{if not .Active}} This account is no longer active; its history is kept.{{end}}</p> | ||
| 11 | <p class="muted profile-joined">Joined {{.Joined.Format "January 2006"}}{{if and .ShowRole (ne .Role "none")}} · {{.Role}}{{end}}</p> | ||
| 12 | </div> | ||
| 13 | </div> | ||
| 14 | </div> | ||
| 15 | <div class="page-head-actions"> | ||
| 16 | <button class="secondary" type="button" data-copy="@{{.Name}}" title="Copy a mention of {{.Name}}" aria-label="Copy a mention of {{.Name}}">{{icon "copy"}}Mention</button> | ||
| 17 | </div> | ||
| 18 | </div> | ||
| 19 | |||
| 20 | {{if .Repos}} | ||
| 21 | <div class="stat-grid"> | ||
| 22 | <a class="stat" href="/u/{{.Name}}?type=issues"> | ||
| 23 | <span class="stat-num">{{.Stats.Issues}}</span> | ||
| 24 | <span class="stat-label">Issues opened</span> | ||
| 25 | </a> | ||
| 26 | <a class="stat" href="/u/{{.Name}}?type=changes"> | ||
| 27 | <span class="stat-num">{{.Stats.Changes}}</span> | ||
| 28 | <span class="stat-label">Changes opened</span> | ||
| 29 | </a> | ||
| 30 | <a class="stat" href="/u/{{.Name}}?type=reviews"> | ||
| 31 | <span class="stat-num">{{.Stats.Reviews}}</span> | ||
| 32 | <span class="stat-label">Changes reviewed</span> | ||
| 33 | </a> | ||
| 34 | <a class="stat" href="/u/{{.Name}}?type=comments"> | ||
| 35 | <span class="stat-num">{{.Stats.Comments}}</span> | ||
| 36 | <span class="stat-label">Comments</span> | ||
| 37 | </a> | ||
| 38 | </div> | ||
| 39 | <p class="muted profile-scope">Counted across the repositories you can read.</p> | ||
| 40 | {{end}} | ||
| 41 | |||
| 42 | {{if .Repos}} | ||
| 43 | <section class="profile-repos"> | ||
| 44 | <div class="section-head"><h2>Repositories</h2></div> | ||
| 45 | <div class="repo-grid"> | ||
| 46 | {{range .Repos}} | ||
| 47 | <article class="repo-card profile-repo"> | ||
| 48 | <h3><a href="/r/{{.Name}}">{{.Name}}</a></h3> | ||
| 49 | <p class="profile-repo-meta"> | ||
| 50 | {{if .Issues}}<span>{{.Issues}} {{if eq .Issues 1}}issue{{else}}issues{{end}}</span>{{end}} | ||
| 51 | {{if .Changes}}<span>{{.Changes}} {{if eq .Changes 1}}change{{else}}changes{{end}}</span>{{end}} | ||
| 52 | {{if .Reviews}}<span>{{.Reviews}} {{if eq .Reviews 1}}review{{else}}reviews{{end}}</span>{{end}} | ||
| 53 | {{if .Comments}}<span>{{.Comments}} {{if eq .Comments 1}}comment{{else}}comments{{end}}</span>{{end}} | ||
| 54 | </p> | ||
| 55 | </article> | ||
| 56 | {{end}} | ||
| 57 | </div> | ||
| 58 | </section> | ||
| 59 | {{end}} | ||
| 60 | |||
| 61 | <section class="profile-activity"> | ||
| 62 | <div class="section-head"><h2>Activity</h2></div> | ||
| 63 | <div class="chips"> | ||
| 64 | <a class="chip{{if eq .Type ""}} active{{end}}" href="/u/{{.Name}}">{{icon "activity"}}All</a> | ||
| 65 | <a class="chip{{if eq .Type "issues"}} active{{end}}" href="/u/{{.Name}}?type=issues">{{icon "circle-dot"}}Issues</a> | ||
| 66 | <a class="chip{{if eq .Type "changes"}} active{{end}}" href="/u/{{.Name}}?type=changes">{{icon "git-pull-request"}}Changes</a> | ||
| 67 | <a class="chip{{if eq .Type "reviews"}} active{{end}}" href="/u/{{.Name}}?type=reviews">{{icon "check"}}Reviews</a> | ||
| 68 | <a class="chip{{if eq .Type "comments"}} active{{end}}" href="/u/{{.Name}}?type=comments">{{icon "message-square"}}Comments</a> | ||
| 69 | </div> | ||
| 70 | |||
| 71 | {{if .Events}} | ||
| 72 | {{template "activity_events" .}} | ||
| 73 | {{template "pager" .Pager}} | ||
| 74 | {{else if .Repos}} | ||
| 75 | <div class="empty-state"> | ||
| 76 | <p>Nothing of this kind yet.</p> | ||
| 77 | <p class="muted">Choose another filter, or open a repository above.</p> | ||
| 78 | </div> | ||
| 79 | {{else}} | ||
| 80 | <div class="empty-state"> | ||
| 81 | <p>Nothing to show yet.</p> | ||
| 82 | {{if .Active}} | ||
| 83 | <p class="muted">When {{.Name}} opens an issue or comments on one, it appears here.</p> | ||
| 84 | {{else}} | ||
| 85 | <p class="muted">Their work was in repositories you cannot read, or they never wrote here.</p> | ||
| 86 | {{end}} | ||
| 87 | </div> | ||
| 88 | {{end}} | ||
| 89 | </section> | ||
| 90 | {{template "footer" .}} | ||
| 91 | {{end}} | ||