vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Add the instance-wide activity feed to the home page
b355db72f14756ee4d7e2f503eb254ea552aa72e · Keenan Nemetz · 15d ago · parent 67a308ba
Add the instance-wide activity feed to the home page The home page now merges every visible repository's derived feed, caps the merged result at 50 events, and names the repository on each row. The repository list moves to a compact sidebar with its own search, and the existing search-results view is unchanged. Events still come from git, the metadata branch, tags, and the queue; private repositories are excluded by the same read filter as the list.
server/web/templates/activity.html +18−14
| @@ -43,20 +43,7 @@ | |||
| 43 | 43 | </form> | |
| 44 | 44 | ||
| 45 | 45 | {{if .Events}} | |
| 46 | <div class="activity-list"> | ||
| 47 | {{range .Events}} | ||
| 48 | <article class="activity-event"> | ||
| 49 | <span class="activity-icon {{.Kind}}" aria-hidden="true">{{icon .Icon}}</span> | ||
| 50 | <div class="activity-body"> | ||
| 51 | <a class="activity-title" href="{{.URL}}">{{.Title}}</a> | ||
| 52 | <div class="activity-meta"> | ||
| 53 | {{.Detail}}{{if .Actor}} · {{.Actor}}{{end}} · {{since .Time.Unix}} | ||
| 54 | {{if .Badge}} · <span class="status {{.BadgeClass}}">{{.Badge}}</span>{{end}} | ||
| 55 | </div> | ||
| 56 | </div> | ||
| 57 | </article> | ||
| 58 | {{end}} | ||
| 59 | </div> | ||
| 46 | {{template "activity_events" .}} | ||
| 60 | 47 | {{else}} | |
| 61 | 48 | <div class="empty-state"> | |
| 62 | 49 | {{if or .Actor .Assignee}} | |
| @@ -70,3 +57,20 @@ | |||
| 70 | 57 | {{end}} | |
| 71 | 58 | </div> | |
| 72 | 59 | {{end}} | |
| 60 | |||
| 61 | {{define "activity_events"}} | ||
| 62 | <div class="activity-list"> | ||
| 63 | {{range .Events}} | ||
| 64 | <article class="activity-event"> | ||
| 65 | <span class="activity-icon {{.Kind}}" aria-hidden="true">{{icon .Icon}}</span> | ||
| 66 | <div class="activity-body"> | ||
| 67 | <a class="activity-title" href="{{.URL}}">{{.Title}}</a> | ||
| 68 | <div class="activity-meta"> | ||
| 69 | {{if .Repo}}<a href="/r/{{.Repo}}">{{.Repo}}</a> · {{end}}{{.Detail}}{{if .Actor}} · {{.Actor}}{{end}} · {{since .Time.Unix}} | ||
| 70 | {{if .Badge}} · <span class="status {{.BadgeClass}}">{{.Badge}}</span>{{end}} | ||
| 71 | </div> | ||
| 72 | </div> | ||
| 73 | </article> | ||
| 74 | {{end}} | ||
| 75 | </div> | ||
| 76 | {{end}} | ||