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.
Build a landing page and simplify the forge chrome
074ae1605e177e99533af02d8c69ccd1a6a947bb · Keenan Nemetz · 14d ago · parent 62576fa8
Build a landing page and simplify the forge chrome The instance root is now a landing page rather than the full activity feed: forge identity, project cards with top language, last commit, issue/change counts and latest release, a short activity rail, and a first-run empty state. The full feed moves to /activity with type filters and pagination. Feeds now cover issues, changes, comments, and releases only; commits and CI runs already have their own pages. Configuration gains instance_name and instance_tagline. Navigation: the crowded global bar becomes Runners, Activity, search, and an account menu holding Admin, Status, and Log out. Repository pages show the name and description above the tabs at the home-page header scale, while tab-page titles stay small. Top-level pages keep the larger header. Drop the workflow run chip, assigned-issues strip, repository size stat, and footer Status link.
server/web/templates/layout.html +25−9
| @@ -16,19 +16,32 @@ | |||
| 16 | 16 | <header class="topbar"> | |
| 17 | 17 | <a class="brand" href="/" aria-label="Vole home"><span class="mark" aria-hidden="true">v</span>vole</a> | |
| 18 | 18 | <nav class="topnav" aria-label="Global"> | |
| 19 | <a href="/">{{icon "book-open"}}Repositories</a> | ||
| 20 | <a href="/runners">{{icon "server"}}Runners</a> | ||
| 21 | {{if .InstanceAdmin}}<a href="/admin">{{icon "sliders-horizontal"}}Admin</a>{{end}} | ||
| 19 | <a class="{{if eq .Section "runners"}}active{{end}}" href="/runners"{{if eq .Section "runners"}} aria-current="page"{{end}}>{{icon "server"}}Runners</a> | ||
| 20 | <a class="{{if eq .Section "activity"}}active{{end}}" href="/activity"{{if eq .Section "activity"}} aria-current="page"{{end}}>{{icon "activity"}}Activity</a> | ||
| 22 | 21 | </nav> | |
| 23 | 22 | <form class="topsearch" method="get" action="/" role="search"> | |
| 24 | 23 | <input type="search" name="q" value="{{.Query}}" placeholder="Search repositories" aria-label="Search repositories"> | |
| 25 | 24 | </form> | |
| 26 | 25 | <div class="topright"> | |
| 27 | 26 | {{if .LoggedIn}} | |
| 28 | <a class="account" href="/account">{{icon "user"}}{{.User}}</a> | ||
| 29 | {{if .DevLogin}}<span class="label" title="Development login">dev</span>{{end}} | ||
| 30 | <form class="inline" method="post" action="/logout"><input type="hidden" name="csrf" value="{{.CSRF}}"><button class="link" type="submit">Log out</button></form> | ||
| 31 | {{else}}{{if .DevLogin}}<a href="/dev/login">Dev login</a> · {{end}}<a href="/login">Log in</a>{{end}} | ||
| 27 | <details class="account-menu"> | ||
| 28 | <summary> | ||
| 29 | {{icon "user"}}<span class="account-name">{{.User}}</span> | ||
| 30 | {{if .DevLogin}}<span class="label" title="Development login">dev</span>{{end}} | ||
| 31 | <span class="account-caret">{{icon "chevron-right"}}</span> | ||
| 32 | </summary> | ||
| 33 | <div class="account-pop"> | ||
| 34 | <a href="/account">{{icon "user"}}Account</a> | ||
| 35 | {{if .InstanceAdmin}}<a href="/admin">{{icon "sliders-horizontal"}}Admin</a>{{end}} | ||
| 36 | <a href="/status">{{icon "info"}}Status</a> | ||
| 37 | <div class="account-sep"></div> | ||
| 38 | <form method="post" action="/logout"><input type="hidden" name="csrf" value="{{.CSRF}}"><button type="submit">{{icon "log-out"}}Log out</button></form> | ||
| 39 | </div> | ||
| 40 | </details> | ||
| 41 | {{else}} | ||
| 42 | {{if .DevLogin}}<a href="/dev/login">{{icon "user"}}Dev login</a>{{end}} | ||
| 43 | <a href="/login">{{icon "user"}}Log in</a> | ||
| 44 | {{end}} | ||
| 32 | 45 | </div> | |
| 33 | 46 | </header> | |
| 34 | 47 | <a class="skip-link" href="#main">Skip to content</a> | |
| @@ -38,15 +51,18 @@ | |||
| 38 | 51 | ||
| 39 | 52 | {{define "footer"}} | |
| 40 | 53 | </main> | |
| 41 | <footer class="pagefoot"><a href="/status">Status</a></footer> | ||
| 42 | 54 | </body> | |
| 43 | 55 | </html> | |
| 44 | 56 | {{end}} | |
| 45 | 57 | ||
| 46 | 58 | {{define "repohead"}} | |
| 47 | 59 | <div class="repohead"> | |
| 60 | <div class="repo-title"> | ||
| 61 | <div class="repo-name"><span class="repo-vis" title="{{if .Private}}Private repository{{else}}Public repository{{end}}">{{if .Private}}{{icon "lock"}}{{else}}{{icon "globe"}}{{end}}</span>{{.Name}}</div> | ||
| 62 | {{if .Description}}<p class="repo-desc">{{.Description}}</p>{{end}} | ||
| 63 | </div> | ||
| 48 | 64 | <nav class="tabs" aria-label="Repository"> | |
| 49 | <a class="repotab{{if eq .Tab "overview"}} active{{end}}" href="/r/{{.Name}}"{{if eq .Tab "overview"}} aria-current="page"{{end}} title="{{if .Private}}Private repository{{else}}Public repository{{end}}" aria-label="{{.Name}} ({{if .Private}}private{{else}}public{{end}} repository)">{{if .Private}}{{icon "lock"}}{{else}}{{icon "globe"}}{{end}}{{.Name}}</a> | ||
| 65 | <a class="repotab{{if eq .Tab "overview"}} active{{end}}" href="/r/{{.Name}}"{{if eq .Tab "overview"}} aria-current="page"{{end}}>{{icon "layout-dashboard"}}Overview</a> | ||
| 50 | 66 | <a href="/r/{{.Name}}/activity"{{if eq .Tab "activity"}} class="active" aria-current="page"{{end}}>{{icon "activity"}}Activity</a> | |
| 51 | 67 | <a href="/r/{{.Name}}/code"{{if eq .Tab "code"}} class="active" aria-current="page"{{end}}>{{icon "code"}}Code</a> | |
| 52 | 68 | <a href="/r/{{.Name}}/issues"{{if eq .Tab "issues"}} class="active" aria-current="page"{{end}}>{{icon "circle-dot"}}Issues</a> | |