vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Simplify release file management
fdd0b3e8373da4c684c73d88f997c3917966ac50 · Keenan Nemetz · 17d ago · parent c5187449
Simplify release file management Drop rename and move from the CLI and browser, outline the files table instead of wrapping it in a card, and label the release-page action Manage files.
server/web/templates/release_attach.html +5−5
| @@ -4,8 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | 5 | <div class="page-head"> | |
| 6 | 6 | <div class="page-head-main"> | |
| 7 | <h1>Attach files to {{.Tag}}</h1> | ||
| 8 | <p class="page-sub">{{if .Artifacts}}{{len .Artifacts}} file(s) attached · {{end}}A file keeps its name, or the directory you name below becomes its prefix.</p> | ||
| 7 | <h1>Manage files for {{.Tag}}</h1> | ||
| 8 | <p class="page-sub">{{if .Artifacts}}{{len .Artifacts}} file(s) attached · {{end}}Attach new files, or remove one already attached.</p> | ||
| 9 | 9 | </div> | |
| 10 | 10 | <div class="page-head-actions"> | |
| 11 | 11 | <a class="button secondary" href="/{{.Name}}/releases/{{esc .Tag}}">Back to release</a> | |
| @@ -43,8 +43,8 @@ | |||
| 43 | 43 | {{end}} | |
| 44 | 44 | ||
| 45 | 45 | {{if .Artifacts}} | |
| 46 | <div class="card"> | ||
| 47 | <h2>Attached files</h2> | ||
| 46 | <h2>Attached files</h2> | ||
| 47 | <div class="release-files"> | ||
| 48 | 48 | <table> | |
| 49 | 49 | <tr><th>File</th><th>Size</th><th>SHA-256</th><th></th></tr> | |
| 50 | 50 | {{range .Artifacts}} | |
| @@ -52,7 +52,7 @@ | |||
| 52 | 52 | <td><a href="/{{$.Name}}/releases/{{esc $.Tag}}/artifacts/{{.Name}}">{{.Name}}</a></td> | |
| 53 | 53 | <td class="muted">{{bytes .Size}}</td> | |
| 54 | 54 | <td class="muted"><code>{{short .OID}}</code></td> | |
| 55 | <td><a href="/{{$.Name}}/releases/{{esc $.Tag}}/files/edit?path={{urlquery .Name}}">edit</a></td> | ||
| 55 | <td><form method="post" action="/{{$.Name}}/releases/{{esc $.Tag}}/files/delete" class="inline" data-confirm="Remove {{.Name}} from {{$.Tag}}?"><input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="path" value="{{.Name}}"><button class="link" type="submit">remove</button></form></td> | ||
| 56 | 56 | </tr> | |
| 57 | 57 | {{end}} | |
| 58 | 58 | </table> | |