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.
Move Clone and Site into the repository header
816cc543d34ab52df01c62cfd8878ae70327a21f · Keenan Nemetz · 11d ago · parent a196e404
Move Clone and Site into the repository header The repository header now carries the controls that act on the repository as a whole. Clone appears once beside the name on every tab, with a copy button for the HTTPS URL and one for the SSH command. Site joins it only when a site would answer: pages are enabled, the repository is public, and its pages branch exists. The per-tab Clone popovers and the Overview/Code Site buttons are gone, so a tab's page header holds only that tab's own actions. Copy feedback now restores innerHTML, keeping the icon on an icon-only button and surviving a repeated click.
server/web/templates/code.html +1−12
| @@ -1,6 +1,6 @@ | |||
| 1 | 1 | {{define "code"}} | |
| 2 | 2 | {{template "header" .}} | |
| 3 | {{template "repohead" (nav .Name "code" .CanAdmin)}} | ||
| 3 | {{template "repohead" (nav .Name "code" .CanAdmin .CloneURL .SSHURL .Site)}} | ||
| 4 | 4 | ||
| 5 | 5 | <div class="page-head"> | |
| 6 | 6 | <div class="page-head-main"> | |
| @@ -18,19 +18,8 @@ | |||
| 18 | 18 | {{range .Branches}}<option value="{{.}}"{{if eq . $.Ref}} selected{{end}}>{{.}}</option>{{end}} | |
| 19 | 19 | </select> | |
| 20 | 20 | </form> | |
| 21 | <details class="clone"> | ||
| 22 | <summary>{{icon "copy"}}Clone</summary> | ||
| 23 | <div class="clone-pop"> | ||
| 24 | <p class="muted">Read only, no credentials:</p> | ||
| 25 | <code>{{.CloneURL}}</code> | ||
| 26 | <p class="muted">Write over SSH with a registered key:</p> | ||
| 27 | <code>git clone {{.SSHURL}}</code> | ||
| 28 | <p><button class="secondary" type="button" data-copy="{{.CloneURL}}">{{icon "copy"}}Copy HTTPS URL</button></p> | ||
| 29 | </div> | ||
| 30 | </details> | ||
| 31 | 21 | <a class="button secondary" href="/r/{{.Name}}/compare">{{icon "git-branch"}}Compare</a> | |
| 32 | 22 | <a class="button secondary" href="/r/{{.Name}}/commits/{{esc .Ref}}">{{icon "history"}}History</a> | |
| 33 | {{if .Site}}<a class="button secondary" href="{{.Site}}">{{icon "external-link"}}Site</a>{{end}} | ||
| 34 | 23 | </div> | |
| 35 | 24 | </div> | |
| 36 | 25 | ||