Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

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.

Restore the home header and put the introduction in the list column

164ad9f58199497f55bd6ae5a6ab8bca27618d9d · Keenan Nemetz · 1d ago · parent ff9870f1

Restore the home header and put the introduction in the list column

Bring back the identity strip with the New repository button in it; the section heading goes back to just the list title and clear-search link. Move the introduction inside the repository column above the grid, so it is as wide as the work and the activity rail stays beside it. With no repositories there is no column, so the introduction stays full width above the empty state.

server/web/templates/home.html +15−5

@@ -1,17 +1,27 @@
1 1 {{define "index"}}
2 2 {{template "header" .}}
3 <section class="hero">
4 <div class="hero-main">
5 <h1>{{.InstanceName}}</h1>
6 </div>
7 <div class="hero-actions">
8 {{if and .InstanceAdmin .Cards}}<a class="button" href="/repos/new">{{icon "plus"}}New repository</a>{{end}}
9 {{if not .LoggedIn}}
10 <a class="button secondary" href="/login">{{icon "user"}}Sign in</a>
11 {{if .OpenRegistration}}<a class="button secondary" href="/register">{{icon "user"}}Create an account</a>{{end}}
12 {{end}}
13 </div>
14 </section>
3 15
4 {{if not .Query}}{{template "home_readme" .}}{{end}}
16 {{if and (not .Cards) (not .Query)}}{{template "home_readme" .}}{{end}}
5 17
6 18 {{if .Cards}}
7 19 <div class="home-grid">
8 20 <section class="home-main">
21 {{if not .Query}}{{template "home_readme" .}}{{end}}
9 22 <div class="section-head">
10 23 <h2>{{if .Query}}Results{{else}}Repositories{{end}}</h2>
11 <div class="section-actions">
12 {{if .Query}}<a class="more" href="/">clear search</a>{{end}}
13 {{if .InstanceAdmin}}<a class="button secondary" href="/repos/new">{{icon "plus"}}New repository</a>{{end}}
14 </div>
24 {{if .Query}}<a class="more" href="/">clear search</a>{{end}}
15 25 </div>
16 26 <div class="repo-grid">
17 27 {{range .Cards}}{{template "repo_card" .}}{{end}}