Sign in

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

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/releases.html +12−12

@@ -91,7 +91,7 @@ records a tagger and a message, which is what makes a tag a release.</p>
91 91 </div>
92 92 {{if or .CanEdit .CanAttach}}<div class="page-head-actions">
93 93 {{if .CanEdit}}<a class="button secondary" href="/{{.Name}}/releases/edit?tag={{urlquery .Tag.Name}}">{{icon "sliders-horizontal"}}Edit release</a>{{end}}
94 {{if .CanAttach}}<a class="button secondary" href="/{{.Name}}/releases/{{esc .Tag.Name}}/attach">{{icon "tag"}}Attach files</a>{{end}}
94 {{if .CanAttach}}<a class="button secondary" href="/{{.Name}}/releases/{{esc .Tag.Name}}/attach">{{icon "tag"}}Manage files</a>{{end}}
95 95 </div>{{end}}
96 96 </div>
97 97
@@ -103,9 +103,9 @@ records a tagger and a message, which is what makes a tag a release.</p>
103 103 </div>
104 104 {{end}}
105 105
106 <div class="card">
107 <h2>Files</h2>
108 {{if .Artifacts}}
106 <h2>Files</h2>
107 {{if .Artifacts}}
108 <div class="release-files">
109 109 <table>
110 110 <tr><th>File</th><th>Size</th><th>SHA-256</th><th></th></tr>
111 111 {{range .Artifacts}}
@@ -113,18 +113,18 @@ records a tagger and a message, which is what makes a tag a release.</p>
113 113 <td><a href="/{{$.Name}}/releases/{{esc $.Tag.Name}}/artifacts/{{.Name}}">{{.Name}}</a></td>
114 114 <td class="muted">{{bytes .Size}}</td>
115 115 <td class="muted"><code>{{short .OID}}</code></td>
116 <td><a href="/{{$.Name}}/releases/{{esc $.Tag.Name}}/artifacts/{{.Name}}">download</a>{{if $.CanAttach}} · <a href="/{{$.Name}}/releases/{{esc $.Tag.Name}}/files/edit?path={{urlquery .Name}}">edit</a>{{end}}</td>
116 <td><a href="/{{$.Name}}/releases/{{esc $.Tag.Name}}/artifacts/{{.Name}}">download</a>{{if $.CanAttach}} · <form method="post" action="/{{$.Name}}/releases/{{esc $.Tag.Name}}/files/delete" class="inline" data-confirm="Remove {{.Name}} from {{$.Tag.Name}}?"><input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="path" value="{{.Name}}"><button class="link" type="submit">remove</button></form>{{end}}</td>
117 117 </tr>
118 118 {{end}}
119 119 </table>
120 {{else}}
121 <p class="muted">No files attached yet.{{if .CanAttach}} <a href="/{{.Name}}/releases/{{esc .Tag.Name}}/attach">Attach files</a>.{{end}}</p>
122 {{end}}
123 {{if .ChannelLocked}}
124 <p class="muted">A channel targets this release, so its notes and files are fixed.
125 Point the channel at another release to edit this one.</p>
126 {{end}}
127 120 </div>
121 {{else}}
122 <p class="muted">No files attached yet.{{if .CanAttach}} <a href="/{{.Name}}/releases/{{esc .Tag.Name}}/attach">Manage files</a>.{{end}}</p>
123 {{end}}
124 {{if .ChannelLocked}}
125 <p class="muted">A channel targets this release, so its notes and files are fixed.
126 Point the channel at another release to edit this one.</p>
127 {{end}}
128 128
129 129 <div class="card">
130 130 <h2>Source</h2>