BlueGit

timfa bluegit

Files

bluegit / internal / server / templates / collab.html

collab.html

collab.html 39.0 KiB Download Raw
1{{define "mrs"}}
2{{template "layout-start" .}}
3<header class="pagehead"><h1>{{t "mr.title"}}</h1></header>
4<ul class="clean">
5 {{range .MRs}}<li><a href="/{{$.Repo.FullPath}}/-/merge-requests/{{.Number}}">!{{.Number}} {{.Title}}</a> <span class="pill">{{.Status}}</span> <span class="muted">{{.SourceBranch}} → {{.TargetBranch}}</span></li>{{else}}<li class="muted">{{t "mr.none"}}</li>{{end}}
6</ul>
7{{if .CanWrite}}
8<form class="panel" method="post" action="/{{.Repo.FullPath}}/-/merge-requests">
9 <h2>{{t "mr.new"}}</h2>
10 <input type="hidden" name="csrf" value="{{.CSRF}}">
11 <label>{{t "mr.titleField"}} <input name="title" required></label>
12 <label>{{t "mr.description"}} <textarea name="description"></textarea></label>
13 <label>{{t "mr.source"}} <select name="source">{{range .Branches}}<option>{{.Name}}</option>{{end}}</select></label>
14 <label>{{t "mr.target"}} <select name="target">{{range .Branches}}<option>{{.Name}}</option>{{end}}</select></label>
15 <button type="submit">{{t "action.open"}}</button>
16</form>
17{{end}}
18{{template "layout-end" .}}
19{{end}}
20
21{{define "mr"}}
22{{template "layout-start" .}}
23<header class="pagehead"><h1>!{{.MR.Number}} {{.MR.Title}}</h1></header>
24<p><span class="pill">{{.MR.Status}}</span> {{.MR.SourceBranch}} → {{.MR.TargetBranch}} · {{.MR.Author}}</p>
25{{if .MR.Description}}<pre>{{.MR.Description}}</pre>{{end}}
26<h2>{{t "mr.pipeline"}}</h2>
27{{if .MRPipe}}
28{{$pipe := .MRPipe}}
29<div class="mrpipe">
30 <a class="pipeid" href="/{{.Repo.FullPath}}/-/pipelines/{{$pipe.ID}}">#{{$pipe.ID}}</a>
31 <span class="status {{$pipe.Status}}"><span class="mark"></span>{{$pipe.Label}}</span>
32 <div class="stages">
33 {{range $pipe.Stages}}
34 <span class="stage">
35 <button type="button" class="stage-dot {{.Status}}" data-tip="{{.Tip}}" aria-label="{{.Tip}}"><span class="mark"></span></button>
36 <div class="stage-pop" hidden>
37 <strong>{{t "pipe.stage"}}: {{.Name}}</strong>
38 <ul>
39 {{range .Jobs}}<li><a href="/{{$.Repo.FullPath}}/-/pipelines/{{$pipe.ID}}/jobs/{{.ID}}"><span class="stage-dot sm {{.Status}}"><span class="mark"></span></span>{{.Name}}</a></li>{{end}}
40 </ul>
41 </div>
42 </span>
43 {{end}}
44 </div>
45</div>
46{{else}}<p class="muted">{{t "mr.noPipeline"}}</p>{{end}}
47<h2>{{t "mr.commits"}}</h2>
48<pre>{{if .Diff}}{{.Diff}}{{else}}{{t "mr.noDiff"}}{{end}}</pre>
49{{range .MergeBlocks}}<p class="flash bad">{{.}}</p>{{end}}
50{{if .CanMerge}}
51<form method="post" action="/{{.Repo.FullPath}}/-/merge-requests/{{.MR.Number}}/merge">
52 <input type="hidden" name="csrf" value="{{.CSRF}}"><button type="submit"{{if .MergeBlocks}} disabled{{end}}>{{t "action.merge"}}</button>
53</form>
54{{end}}
55{{if .CanClose}}
56<form method="post" action="/{{.Repo.FullPath}}/-/merge-requests/{{.MR.Number}}/close">
57 <input type="hidden" name="csrf" value="{{.CSRF}}"><button class="ghost" type="submit">{{t "action.close"}}</button>
58</form>
59{{end}}
60{{if .CanReopen}}
61<form method="post" action="/{{.Repo.FullPath}}/-/merge-requests/{{.MR.Number}}/reopen">
62 <input type="hidden" name="csrf" value="{{.CSRF}}"><button type="submit">{{t "action.reopen"}}</button>
63</form>
64{{end}}
65<h2>{{t "rev.title"}}</h2>
66<ul class="clean">
67 {{range .Reviews}}<li><strong>{{.Username}}</strong> <span class="pill">{{.Label}}</span>
68 {{if and $.CanDismiss (or (eq .Status "changes") (eq .Status "rejected"))}}
69 <form method="post" action="/{{$.Repo.FullPath}}/-/merge-requests/{{$.MR.Number}}/reviews/dismiss">
70 <input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="user_id" value="{{.UserID}}">
71 <button class="ghost" type="submit">{{t "rev.dismiss"}}</button>
72 </form>
73 {{end}}
74 </li>{{else}}<li class="muted">{{t "rev.none"}}</li>{{end}}
75</ul>
76{{if .CanReview}}
77<form class="row" method="post" action="/{{.Repo.FullPath}}/-/merge-requests/{{.MR.Number}}/reviews">
78 <input type="hidden" name="csrf" value="{{.CSRF}}">
79 {{if .CanApprove}}<button type="submit" name="status" value="approved">{{t "rev.approved"}}</button>{{end}}
80 <button type="submit" name="status" value="changes">{{t "rev.changes"}}</button>
81 <button class="ghost" type="submit" name="status" value="rejected">{{t "rev.rejected"}}</button>
82</form>
83{{end}}
84<h2>{{t "mr.changes"}}</h2>
85{{if .CanApply}}
86<div class="applybar" hidden data-apply-bar>
87 <button type="button" data-apply-open>{{t "sug.applyWord"}} (<span data-apply-count>0</span>)</button>
88</div>
89<dialog class="sugmodal" data-apply-dialog>
90 <form method="post" action="/{{.Repo.FullPath}}/-/merge-requests/{{.MR.Number}}/suggestions">
91 <input type="hidden" name="csrf" value="{{.CSRF}}">
92 <div data-apply-ids></div>
93 <h2>{{t "sug.applyWord"}}</h2>
94 <label>{{t "sug.title"}} <input name="title" required></label>
95 <label>{{t "sug.description"}} <textarea name="description"></textarea></label>
96 <p class="muted">{{t "sug.optional"}}</p>
97 <div class="row">
98 <button type="submit">{{t "sug.submit"}}</button>
99 <button type="button" class="ghost" data-apply-cancel>{{t "action.cancel"}}</button>
100 </div>
101 </form>
102</dialog>
103{{end}}
104<div class="diff"{{if .CanComment}} data-can-comment="1"{{end}}>
105{{range .DiffFiles}}
106<section class="difffile" data-path="{{.Path}}">
107 <header>{{.Path}}</header>
108 {{range .Lines}}
109 <div class="diffline kind-{{.Kind}}"{{if .New}} data-line="{{.New}}"{{end}}>
110 <span class="gutter{{if not .New}} off{{end}}"></span>
111 <span class="ln">{{if .New}}{{.New}}{{else if .Old}}{{.Old}}{{end}}</span>
112 <code>{{.Text}}</code>
113 </div>
114 {{range .Notes}}
115 <article class="linenote" id="note-{{.ID}}">
116 <strong>{{.Author}}</strong> <span class="muted">{{.When}}</span>
117 <div class="muted">{{.Path}}:{{.Start}}-{{.End}}</div>
118 <pre class="note">{{.Body}}</pre>
119 {{if and $.CanApply .HasSuggestion}}<label class="sugcheck"><input type="checkbox" data-suggestion="{{.ID}}"> {{t "sug.include"}}</label>{{end}}
120 </article>
121 {{end}}
122 {{end}}
123</section>
124{{else}}<p class="muted">{{t "mr.noDiff"}}</p>{{end}}
125{{if .CanComment}}
126<form class="lineform" method="post" action="/{{.Repo.FullPath}}/-/merge-requests/{{.MR.Number}}/notes" hidden data-line-form>
127 <input type="hidden" name="csrf" value="{{.CSRF}}">
128 <input type="hidden" name="path" value="">
129 <input type="hidden" name="line_start" value="">
130 <input type="hidden" name="line_end" value="">
131 <label>{{t "mr.comment"}} <textarea name="body" required></textarea></label>
132 <p class="muted">{{t "sug.hint"}}</p>
133 <div class="row">
134 <button type="submit">{{t "action.post"}}</button>
135 <button type="button" class="ghost" data-line-cancel>{{t "action.cancel"}}</button>
136 </div>
137</form>
138<button type="button" class="bubble" hidden data-bubble aria-label="{{t "sug.bubble"}}"><span class="bubble-icon"></span></button>
139{{end}}
140</div>
141<h2>{{t "mr.comments"}}</h2>
142<ul class="clean">
143 {{range .Notes}}<li><strong>{{.Author}}</strong> <span class="muted">{{.When}}</span>{{if .Path}} <span class="muted">{{.Path}}:{{.Start}}-{{.End}}</span>{{end}}<pre class="note">{{.Body}}</pre></li>{{else}}<li class="muted">{{t "mr.noComments"}}</li>{{end}}
144</ul>
145{{if .CanComment}}
146<form method="post" action="/{{.Repo.FullPath}}/-/merge-requests/{{.MR.Number}}/notes">
147 <input type="hidden" name="csrf" value="{{.CSRF}}">
148 <label>{{t "mr.comment"}} <textarea name="body" required></textarea></label>
149 <button type="submit">{{t "action.post"}}</button>
150</form>
151{{end}}
152<script src="/assets/suggest.js"></script>
153<script src="/assets/pipeline.js"></script>
154{{template "layout-end" .}}
155{{end}}
156
157{{define "pipenav"}}
158<p class="sub">
159 <a href="/{{.Repo.FullPath}}/-/pipelines"{{if eq .Page "pipelines"}} class="on"{{end}}>{{t "pipe.title"}}</a>
160 <a href="/{{.Repo.FullPath}}/-/ci/editor"{{if eq .Page "editor"}} class="on"{{end}}>{{t "edit.title"}}</a>
161</p>
162{{end}}
163
164{{define "pipelines"}}
165{{template "layout-start" .}}
166<header class="pagehead"><h1>{{t "pipe.title"}}</h1></header>
167{{template "pipenav" .}}
168<div class="pipebar">
169 <form method="get" action="/{{.Repo.FullPath}}/-/pipelines" class="pipe-filter">
170 <input name="q" value="{{.Query}}" placeholder="{{t "pipe.filter"}}" aria-label="{{t "pipe.filter"}}">
171 <button type="submit" class="iconbtn" aria-label="{{t "pipe.filter"}}">⌕</button>
172 </form>
173 <details class="showid">
174 <summary>{{t "pipe.showID"}}</summary>
175 <form method="get" action="/{{.Repo.FullPath}}/-/pipelines">
176 <input name="show" inputmode="numeric" aria-label="{{t "pipe.showID"}}">
177 <button type="submit" class="ghost">{{t "pipe.showID"}}</button>
178 </form>
179 </details>
180</div>
181{{if .CanWrite}}
182<form method="post" action="/{{.Repo.FullPath}}/-/pipelines" class="row">
183 <input type="hidden" name="csrf" value="{{.CSRF}}">
184 <input name="ref" placeholder="{{t "pipe.ref"}}">
185 <button type="submit">{{t "action.start"}}</button>
186</form>
187{{end}}
188<div class="hscroll">
189<table class="pipes">
190 <thead><tr><th>{{t "pipe.col.status"}}</th><th>{{t "pipe.col.pipeline"}}</th><th>{{t "pipe.col.by"}}</th><th>{{t "pipe.col.stages"}}</th></tr></thead>
191 <tbody>
192 {{range .PipeRows}}
193 {{$pipe := .}}
194 <tr>
195 <td>
196 <span class="status {{.Status}}"><span class="mark"></span>{{.Label}}</span>
197 <div class="when"><svg class="ico" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="5.5" fill="none" stroke="currentColor" stroke-width="1.4"/><path d="M8 4.8V8.2L10.2 9.4" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg> {{.Duration}}</div>
198 <div class="when"><svg class="ico" viewBox="0 0 16 16" aria-hidden="true"><rect x="2.5" y="3.5" width="11" height="10" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/><path d="M2.5 6.5h11M5.5 2.5v2M10.5 2.5v2" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/></svg> {{.When}}</div>
199 </td>
200 <td>
201 <a class="pipeid" href="/{{$.Repo.FullPath}}/-/pipelines/{{.ID}}">#{{.ID}}</a>
202 {{if .Title}}<div><a class="ellip" href="/{{$.Repo.FullPath}}/-/commit/{{.SHA}}">{{.Title}}</a></div>{{end}}
203 <div class="chips">
204 {{if .Ref}}<a class="chip" href="/{{$.Repo.FullPath}}/-/commits?rev={{.Ref}}"><svg class="ico" viewBox="0 0 16 16" aria-hidden="true">{{if eq .RefKind "tag"}}<path d="M2.2 2.2h5.2l6.2 6.2-5.2 5.2-6.2-6.2V2.2z" fill="none" stroke="currentColor" stroke-width="1.3"/><circle cx="5.2" cy="5.2" r="1" fill="currentColor"/>{{else}}<circle cx="4" cy="3.2" r="1.5" fill="currentColor"/><circle cx="4" cy="12.8" r="1.5" fill="currentColor"/><circle cx="12" cy="6.4" r="1.5" fill="currentColor"/><path d="M4 4.7v6.6M4 6.4c2.4 0 4.2.2 6 .2 1.2 0 2 1 2 1.8" fill="none" stroke="currentColor" stroke-width="1.3"/>{{end}}</svg>{{.Ref}}</a>{{end}}
205 {{if .Short}}<a class="chip" href="/{{$.Repo.FullPath}}/-/commit/{{.SHA}}"><svg class="ico" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="2.1" fill="currentColor"/><path d="M8 1.8v3.4M8 10.8v3.4" stroke="currentColor" stroke-width="1.4"/></svg>{{.Short}}</a>{{end}}
206 {{if .Actor}}{{if .Avatar}}<img class="avatar sm" src="{{.Avatar}}" alt="">{{else}}<span class="avatar sm">{{.Initial}}</span>{{end}}{{end}}
207 </div>
208 </td>
209 <td>{{if .Actor}}{{if .Avatar}}<img class="avatar" src="{{.Avatar}}" alt="{{.Actor}}">{{else}}<span class="avatar">{{.Initial}}</span>{{end}}{{end}}</td>
210 <td>
211 <div class="stages">
212 {{range .Stages}}
213 <span class="stage">
214 <button type="button" class="stage-dot {{.Status}}" data-tip="{{.Tip}}" aria-label="{{.Tip}}"><span class="mark"></span></button>
215 <div class="stage-pop" hidden>
216 <strong>{{t "pipe.stage"}}: {{.Name}}</strong>
217 <ul>
218 {{range .Jobs}}<li><a href="/{{$.Repo.FullPath}}/-/pipelines/{{$pipe.ID}}/jobs/{{.ID}}"><span class="stage-dot sm {{.Status}}"><span class="mark"></span></span>{{.Name}}</a></li>{{end}}
219 </ul>
220 </div>
221 </span>
222 {{end}}
223 </div>
224 </td>
225 </tr>
226 {{else}}<tr><td colspan="4" class="muted">{{t "pipe.none"}}</td></tr>{{end}}
227 </tbody>
228</table>
229</div>
230<script src="/assets/repo.js"></script>
231<script src="/assets/pipeline.js"></script>
232{{template "layout-end" .}}
233{{end}}
234
235{{define "pipeline"}}
236{{template "layout-start" .}}
237<header class="pagehead"><h1>{{t "pipe.one"}} #{{.Pipe.ID}}</h1></header>
238{{template "pipenav" .}}
239<p><span class="pill">{{.Pipe.Status}}</span> {{.Pipe.Ref}} <a href="/{{.Repo.FullPath}}/-/commit/{{.Pipe.CommitSHA}}"><code>{{.Pipe.CommitSHA}}</code></a></p>
240<p class="muted">{{t "pipe.runningOn" .RunnerName}}</p>
241<ul class="clean">
242{{range .Jobs}}<li><a href="/{{$.Repo.FullPath}}/-/pipelines/{{$.Pipe.ID}}/jobs/{{.ID}}">{{.Name}}</a> <span class="pill">{{.Status}}</span> <span class="muted">{{.Stage}}</span></li>{{end}}
243</ul>
244{{template "layout-end" .}}
245{{end}}
246
247{{define "job"}}
248{{template "layout-start" .}}
249<header class="pagehead"><h1>{{with .JobPage}}{{.Name}}{{end}}</h1></header>
250{{template "pipenav" $}}
251{{with .JobPage}}
252{{$page := .}}
253<p class="jobhead"><span class="status {{.Status}}"><span class="mark"></span>{{.Label}}</span> <span class="muted">{{t "pipe.started"}} {{.When}} {{t "pipe.by"}}</span> {{if .Avatar}}<img class="avatar sm" src="{{.Avatar}}" alt="">{{else if .Actor}}<span class="avatar sm">{{.Initial}}</span>{{end}} <strong>{{.Actor}}</strong></p>
254<div class="joblayout">
255 <section class="console-wrap" data-console data-log-url="/{{$.Repo.FullPath}}/-/pipelines/{{.Pipe.ID}}/jobs/{{.Job.ID}}/log" data-offset="{{.LogBytes}}" data-running="{{if .Running}}1{{end}}">
256 <div class="conbar">
257 <form class="pipe-filter" data-log-search>
258 <input type="search" placeholder="{{t "pipe.search"}}" aria-label="{{t "pipe.search"}}">
259 <button type="submit" class="iconbtn" aria-label="{{t "pipe.search"}}">⌕</button>
260 </form>
261 <div class="contools">
262 <button type="button" class="ghost" data-log-prev aria-label="{{t "pipe.prev"}}">↑</button>
263 <button type="button" class="ghost" data-log-next aria-label="{{t "pipe.next"}}">↓</button>
264 <a class="ghost" href="/{{$.Repo.FullPath}}/-/pipelines/{{.Pipe.ID}}/jobs/{{.Job.ID}}/log?raw=1">{{t "pipe.raw"}}</a>
265 <button type="button" class="ghost" data-log-wrap>{{t "pipe.wrap"}}</button>
266 <button type="button" class="ghost" data-log-top>{{t "pipe.top"}}</button>
267 <button type="button" class="ghost" data-log-bottom>{{t "pipe.bottom"}}</button>
268 <button type="button" class="ghost" data-log-full>{{t "pipe.full"}}</button>
269 </div>
270 </div>
271 <div class="console" data-log>
272 <p class="lognote">{{t "pipe.runningOn" $.RunnerName}}</p>
273 <p class="lognote">{{t "pipe.utc"}}</p>
274 {{range .Blocks}}{{if .Section}}
275 <section class="logsec{{if .Open}} open{{end}}">
276 <button type="button" class="section-toggle"><span class="chev"></span><span class="sectitle">{{.Title}}</span>{{if .Duration}}<span class="pill">{{.Duration}}</span>{{end}}</button>
277 <ol>
278 {{range .Lines}}<li data-line="{{.N}}"><span class="ln">{{.N}}</span><span class="ts">{{.Time}}</span><code>{{range .Spans}}{{if .Class}}<span class="{{.Class}}">{{.Text}}</span>{{else}}{{.Text}}{{end}}{{end}}</code></li>{{end}}
279 </ol>
280 </section>
281 {{else}}{{range .Lines}}<div class="logline" data-line="{{.N}}"><span class="ln">{{.N}}</span><span class="ts">{{.Time}}</span><code>{{range .Spans}}{{if .Class}}<span class="{{.Class}}">{{.Text}}</span>{{else}}{{.Text}}{{end}}{{end}}</code></div>{{end}}{{end}}{{end}}
282 {{if not .Blocks}}<p class="muted">{{t "pipe.emptyLog"}}</p>{{end}}
283 </div>
284 </section>
285 <aside class="jobside">
286 <dl>
287 <dt>{{t "pipe.duration"}}</dt><dd>{{if .Duration}}{{.Duration}}{{else}}—{{end}}</dd>
288 <dt>{{t "pipe.finished"}}</dt><dd>{{if .Finished}}{{.Finished}}{{else}}—{{end}}</dd>
289 <dt>{{t "pipe.queued"}}</dt><dd>{{if .Queued}}{{.Queued}}{{else}}—{{end}}</dd>
290 <dt>{{t "pipe.timeout"}}</dt><dd>{{.Timeout}}</dd>
291 {{if .Environment}}<dt>{{t "pipe.environment"}}</dt><dd>{{.Environment}}{{if .EnvironmentLink}} <a href="{{.EnvironmentLink}}">{{.EnvironmentURL}}</a>{{else if .EnvironmentURL}} {{.EnvironmentURL}}{{end}}</dd>{{end}}
292 <dt>{{t "pipe.runner"}}</dt><dd>{{$.RunnerName}}</dd>
293 <dt>{{t "pipe.source"}}</dt><dd>{{.Source}}</dd>
294 <dt>{{t "pipe.commit"}}</dt><dd><code>{{.Short}}</code> <button type="button" class="iconbtn" data-copy="{{.Pipe.CommitSHA}}" aria-label="{{t "action.copy"}}">{{t "action.copy"}}</button>{{if .Title}}<div>{{.Title}}</div>{{end}}</dd>
295 <dt>{{t "pipe.one"}}</dt><dd><a href="/{{$.Repo.FullPath}}/-/pipelines/{{.Pipe.ID}}">#{{.Pipe.ID}}</a> <span class="status {{.PipeStatus}}"><span class="mark"></span>{{.PipeLabel}}</span> <span class="muted">{{t "pipe.for"}} {{.Ref}}</span></dd>
296 </dl>
297 <label>{{t "pipe.stage"}}
298 <select data-stage-select>
299 {{range .Stages}}<option value="{{.}}"{{if eq . $page.Stage}} selected{{end}}>{{.}}</option>{{end}}
300 </select>
301 </label>
302 <h2>{{t "pipe.related"}}</h2>
303 <ul class="related">
304 {{range .Related}}<li data-stage="{{.Stage}}"{{if ne .Stage $page.Stage}} hidden{{end}}>{{if .Current}}<span class="arrow">→</span>{{else}}<span class="arrow"></span>{{end}}<a href="/{{$.Repo.FullPath}}/-/pipelines/{{$page.Pipe.ID}}/jobs/{{.ID}}"><span class="stage-dot sm {{.Status}}"><span class="mark"></span></span>{{.Name}}</a></li>{{end}}
305 </ul>
306 {{if .CanPlay}}
307 <form method="post" action="/{{$.Repo.FullPath}}/-/pipelines/{{.Pipe.ID}}/jobs/{{.Job.ID}}/play">
308 <input type="hidden" name="csrf" value="{{$.CSRF}}">
309 <button type="submit">{{t "pipe.play"}}</button>
310 </form>
311 {{end}}
312 </aside>
313</div>
314{{end}}
315<script src="/assets/repo.js"></script>
316<script src="/assets/pipeline.js"></script>
317{{template "layout-end" .}}
318{{end}}
319
320{{define "editor"}}
321{{template "layout-start" .}}
322<header class="pagehead"><h1>{{t "edit.title"}}</h1></header>
323{{template "pipenav" .}}
324<form method="post" action="/{{.Repo.FullPath}}/-/ci/editor" data-lint-url="/{{.Repo.FullPath}}/-/ci/lint">
325 <input type="hidden" name="csrf" value="{{.CSRF}}">
326 <input type="hidden" name="base" value="{{.Editor.Ref}}">
327 <section class="panel">
328 <div class="editorhead">
329 <h2>{{t "edit.title"}}</h2>
330 <p data-lint-status class="status {{.Editor.Class}}">{{.Editor.Status}}</p>
331 </div>
332 {{if .Editor.Missing}}<p class="muted">{{t "edit.missing"}}</p>{{end}}
333 <div class="ciedit">
334 <div class="ci-gutter" data-gutter>{{range .Editor.Rows}}<span{{if .Bad}} class="bad"{{end}}>{{.N}}</span>{{end}}</div>
335 <div class="ci-stage">
336 <div class="ci-back" data-back>{{range .Editor.Rows}}<div class="codeline{{if .Bad}} bad{{end}}">{{.HTML}}</div>{{end}}</div>
337 <textarea name="body" spellcheck="false"{{if not .CanWrite}} readonly{{end}}>{{.Editor.Body}}</textarea>
338 </div>
339 </div>
340 <ul class="ci-issues" data-issues>
341 {{range .Editor.Issues}}<li class="{{if .Warning}}warn{{else}}bad{{end}}" data-line="{{.Line}}">{{.Line}}: {{.Text}}</li>{{end}}
342 </ul>
343 </section>
344 {{if .CanWrite}}
345 <label>{{t "edit.message"}} <input name="message" required{{if .Editor.Missing}} value="{{t "edit.configureMsg"}}"{{end}}></label>
346 {{if .Editor.NeedsMR}}<p class="muted">{{t "edit.protectedHint"}}</p>{{end}}
347 <label>{{t "edit.branch"}}
348 <input name="branch" value="{{if .Editor.NeedsMR}}{{.Editor.Suggest}}{{else}}{{.Editor.Ref}}{{end}}" list="ci-branches" required>
349 </label>
350 {{if .Editor.NeedsMR}}<label class="row"><input type="checkbox" name="open_mr" value="1" checked> {{t "edit.openMR"}}</label>{{end}}
351 <datalist id="ci-branches">{{range .Branches}}<option value="{{.Name}}"></option>{{end}}</datalist>
352 <button type="submit">{{t "edit.save"}}</button>
353 {{end}}
354</form>
355<script src="/assets/editor.js"></script>
356{{template "layout-end" .}}
357{{end}}
358
359{{define "releases"}}
360{{template "layout-start" .}}
361<header class="pagehead"><h1>{{t "title.releases"}}</h1></header>
362{{range .Releases}}
363<article class="panel" id="{{.Tag}}">
364 <h2>{{.Name}} <span class="pill">{{.Tag}}</span></h2>
365 <p class="muted">{{short .CommitSHA}}</p>
366 {{if .Body}}<pre>{{.Body}}</pre>{{end}}
367 <ul>
368 {{$tag := .Tag}}{{$path := $.Repo.FullPath}}
369 {{range .Assets}}<li><a href="/{{$path}}/-/releases/{{$tag}}/assets/{{.Name}}">{{.Name}}</a> <span class="muted">{{.Size}} {{t "rel.bytes"}}</span></li>{{end}}
370 </ul>
371</article>
372{{else}}<p class="muted">{{t "rel.none"}}</p>{{end}}
373{{template "layout-end" .}}
374{{end}}
375
376{{define "approvalform"}}
377{{if .Approval}}
378{{if .Approval.Warn}}<p class="flash bad">{{.Approval.WarnText}}</p>{{end}}
379{{if .Approval.Locked}}
380<div class="panel">
381 <p>{{t "appr.locked"}} <a href="/groups/{{.Approval.GroupPath}}?tab=settings#approvals">{{.Approval.GroupPath}}</a></p>
382 <p>{{t "appr.required"}}: {{if .Approval.MaintainerRequired}}{{t "appr.on"}}{{else}}{{t "appr.off"}}{{end}}</p>
383 <p>{{t "appr.count"}}: {{.Approval.RequiredCount}}</p>
384 <p>{{t "appr.developers"}}: {{if .Approval.DevelopersApprove}}{{t "appr.on"}}{{else}}{{t "appr.off"}}{{end}}</p>
385</div>
386{{else}}
387<form class="panel" method="post" action="{{if .Repo}}/{{.Repo.FullPath}}/-/approvals{{else}}/groups/{{.Group.Path}}/approvals{{end}}">
388 <input type="hidden" name="csrf" value="{{.CSRF}}">
389 <label class="row"><input type="checkbox" name="maintainer_required" value="1"{{if .Approval.MaintainerRequired}} checked{{end}}> {{t "appr.required"}}</label>
390 <label>{{t "appr.count"}} <input name="required_count" type="number" min="1" max="100" value="{{.Approval.RequiredCount}}" required></label>
391 <label class="row"><input type="checkbox" name="developers_approve" value="1"{{if .Approval.DevelopersApprove}} checked{{end}}> {{t "appr.developers"}}</label>
392 <button type="submit">{{t "action.save"}}</button>
393</form>
394{{end}}
395{{end}}
396{{end}}
397
398{{define "roleselect"}}
399<select name="role">
400 <option value="readonly" {{if eq . "readonly"}}selected{{end}}>{{t "role.readonly"}}</option>
401 <option value="developer" {{if eq . "developer"}}selected{{end}}>{{t "role.developer"}}</option>
402 <option value="maintainer" {{if eq . "maintainer"}}selected{{end}}>{{t "role.maintainer"}}</option>
403</select>
404{{end}}
405
406{{define "settings"}}
407{{template "layout-start" .}}
408<header class="pagehead"><h1>{{t "title.settings"}}</h1></header>
409{{if not .CanAdmin}}<p>{{t "set.onlyAdmin" (roleName .Role)}}</p>{{end}}
410{{if .CanAdmin}}
411<p class="sub">
412 <a href="?tab=general"{{if or (eq .Tab "general") (eq .Tab "")}} class="on"{{end}}>{{t "set.general"}}</a>
413 <a href="?tab=members"{{if eq .Tab "members"}} class="on"{{end}}>{{t "set.members"}}</a>
414 <a href="?tab=branches"{{if eq .Tab "branches"}} class="on"{{end}}>{{t "set.branches"}}</a>
415 <a href="?tab=tags"{{if eq .Tab "tags"}} class="on"{{end}}>{{t "set.tags"}}</a>
416 <a href="?tab=secrets"{{if eq .Tab "secrets"}} class="on"{{end}}>{{t "set.secrets"}}</a>
417 <a href="?tab=webhooks"{{if eq .Tab "webhooks"}} class="on"{{end}}>{{t "set.webhooks"}}</a>
418 <a href="?tab=approvals"{{if eq .Tab "approvals"}} class="on"{{end}}>{{t "appr.tab"}}</a>
419</p>
420{{if eq .Tab "members"}}
421<form class="panel" method="post" action="/{{.Repo.FullPath}}/-/members">
422 <input type="hidden" name="csrf" value="{{.CSRF}}">
423 <div class="row">
424 <input name="username" placeholder="{{t "set.username"}}" required>
425 {{template "roleselect" "developer"}}
426 <button type="submit">{{t "action.save"}}</button>
427 </div>
428</form>
429<ul class="clean">
430 {{range .Members}}<li>{{.Username}} · {{roleName .Role}} {{if .Pending}}<span class="pill">{{t "set.pending"}}</span>{{end}}
431 {{if not .Pending}}<form method="post" action="/{{$.Repo.FullPath}}/-/members/remove"><input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="username" value="{{.Username}}"><button class="ghost" type="submit">{{t "action.remove"}}</button></form>{{end}}
432 </li>{{end}}
433</ul>
434{{else if eq .Tab "branches"}}
435<form class="panel" method="post" action="/{{.Repo.FullPath}}/-/protected">
436 <input type="hidden" name="csrf" value="{{.CSRF}}">
437 <div class="row"><input name="pattern" placeholder="{{t "set.pattern"}}" required><button type="submit">{{t "action.protect"}}</button></div>
438</form>
439<ul class="clean">{{range .Patterns}}<li><code>{{.}}</code>
440 <form method="post" action="/{{$.Repo.FullPath}}/-/protected/remove"><input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="pattern" value="{{.}}"><button class="ghost" type="submit">{{t "action.remove"}}</button></form>
441</li>{{end}}</ul>
442<p class="muted">{{t "set.protectHint"}}</p>
443{{else if eq .Tab "tags"}}
444<form class="panel" method="post" action="/{{.Repo.FullPath}}/-/protected-tags">
445 <input type="hidden" name="csrf" value="{{.CSRF}}">
446 <div class="row"><input name="pattern" placeholder="{{t "set.tagPattern"}}" required><button type="submit">{{t "action.protect"}}</button></div>
447</form>
448<ul class="clean">{{range .TagPatterns}}<li><code>{{.}}</code>
449 <form method="post" action="/{{$.Repo.FullPath}}/-/protected-tags/remove"><input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="pattern" value="{{.}}"><button class="ghost" type="submit">{{t "action.remove"}}</button></form>
450</li>{{end}}</ul>
451<p class="muted">{{t "set.tagHint"}}</p>
452{{else if eq .Tab "secrets"}}
453<form class="panel" method="post" action="/{{.Repo.FullPath}}/-/secrets">
454 <input type="hidden" name="csrf" value="{{.CSRF}}">
455 <label>{{t "set.secretName"}} <input name="name" placeholder="DEPLOY_SSH_KEY" required></label>
456 <label>{{t "set.secretValue"}} <textarea name="value" required></textarea></label>
457 <label class="row"><input type="checkbox" name="protected" value="1"> {{t "set.protectedOnly"}}</label>
458 <button type="submit">{{t "action.save"}}</button>
459</form>
460<ul class="clean">{{range .Secrets}}<li><code>{{.Name}}</code> {{if .Protected}}<span class="pill">{{t "vis.protected"}}</span>{{end}}
461 <form method="post" action="/{{$.Repo.FullPath}}/-/secrets/delete"><input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="name" value="{{.Name}}"><button class="ghost" type="submit">{{t "action.remove"}}</button></form>
462</li>{{end}}</ul>
463<p class="muted">{{t "set.valuesHidden"}}</p>
464{{else if eq .Tab "webhooks"}}
465{{template "webhookform" .}}
466{{else if eq .Tab "approvals"}}
467{{template "approvalform" .}}
468{{else}}
469<form class="panel" method="post" action="/{{.Repo.FullPath}}/-/settings">
470 <input type="hidden" name="csrf" value="{{.CSRF}}">
471 <label>{{t "new.description"}} <input name="description" value="{{.Repo.Description}}"></label>
472 <label>{{t "new.visibility"}} <select name="visibility"><option value="private" {{if eq .Repo.Visibility "private"}}selected{{end}}>{{t "vis.private"}}</option><option value="public" {{if eq .Repo.Visibility "public"}}selected{{end}}>{{t "vis.public"}}</option></select></label>
473 <button type="submit">{{t "action.save"}}</button>
474</form>
475<form class="panel" method="post" action="/{{.Repo.FullPath}}/-/logo" enctype="multipart/form-data">
476 <input type="hidden" name="csrf" value="{{.CSRF}}">
477 <label>{{t "logo.file"}} <input type="file" name="logo" accept="image/png,image/jpeg,image/gif,image/svg+xml,.svg" required></label>
478 <p class="muted">{{t "logo.hint"}}</p>
479 <button type="submit">{{t "action.save"}}</button>
480</form>
481<form class="panel" method="post" action="/{{.Repo.FullPath}}/-/delete">
482 <h2>{{t "set.delete"}}</h2>
483 <input type="hidden" name="csrf" value="{{.CSRF}}">
484 <label>{{t "set.typeName" .Repo.Name}} <input name="confirm"></label>
485 <button type="submit">{{t "set.deleteRepo"}}</button>
486</form>
487{{end}}
488{{end}}
489{{template "layout-end" .}}
490{{end}}
491
492{{define "webhookform"}}
493<form class="panel wh" method="post" action="{{if .Repo}}/{{.Repo.FullPath}}/-/webhooks{{else}}/groups/{{.Group.Path}}/webhooks{{end}}" data-preset="custom">
494 <input type="hidden" name="csrf" value="{{.CSRF}}">
495 <label>{{t "set.whName"}} <input name="name" required></label>
496 <label>{{t "set.preset"}}
497 <select name="preset" data-preset-select>
498 <option value="custom" selected>{{t "set.preset.custom"}}</option>
499 <option value="generic">{{t "set.preset.generic"}}</option>
500 <option value="discord">{{t "set.preset.discord"}}</option>
501 <option value="slack">{{t "set.preset.slack"}}</option>
502 <option value="teams">{{t "set.preset.teams"}}</option>
503 <option value="mattermost">{{t "set.preset.mattermost"}}</option>
504 <option value="rocketchat">{{t "set.preset.rocketchat"}}</option>
505 <option value="telegram">{{t "set.preset.telegram"}}</option>
506 <option value="matrix">{{t "set.preset.matrix"}}</option>
507 <option value="googlechat">{{t "set.preset.googlechat"}}</option>
508 <option value="ntfy">{{t "set.preset.ntfy"}}</option>
509 <option value="gotify">{{t "set.preset.gotify"}}</option>
510 <option value="grok">{{t "set.preset.grok"}}</option>
511 </select>
512 </label>
513 <label class="wh-field for-discord for-slack for-teams for-mattermost for-rocketchat for-googlechat">{{t "wh.webhookURL"}} <input name="url" placeholder="https://example.test/hook" required disabled></label>
514 <label class="wh-field for-generic for-grok for-custom">{{t "wh.url"}} <input name="url" placeholder="https://example.test/hook" required></label>
515 <label class="wh-field for-discord">{{t "wh.username"}} <input name="username" disabled></label>
516 <label class="wh-field for-discord">{{t "wh.avatar"}} <input name="avatar" placeholder="https://example.test/avatar.png" disabled></label>
517 <label class="wh-field for-mattermost">{{t "wh.username"}} <input name="username" disabled></label>
518 <label class="wh-field for-mattermost">{{t "wh.icon"}} <input name="icon" placeholder="https://example.test/icon.png" disabled></label>
519 <label class="wh-field for-rocketchat">{{t "wh.alias"}} <input name="alias" disabled></label>
520 <label class="wh-field for-telegram for-matrix for-gotify for-grok">{{t "wh.token"}} <input name="token" placeholder="BOT_TOKEN" required disabled> <span class="muted">{{t "wh.tokenHint"}}</span></label>
521 <label class="wh-field for-ntfy">{{t "wh.token"}} <input name="token" placeholder="BOT_TOKEN" disabled> <span class="muted">{{t "wh.tokenHint"}}</span></label>
522 <label class="wh-field for-telegram">{{t "wh.chat"}} <input name="chat" required disabled></label>
523 <label class="wh-field for-ntfy">{{t "wh.server"}} <input name="server" placeholder="https://ntfy.sh" disabled></label>
524 <label class="wh-field for-gotify">{{t "wh.server"}} <input name="server" placeholder="https://gotify.example" required disabled></label>
525 <label class="wh-field for-ntfy">{{t "wh.topic"}} <input name="topic" required disabled></label>
526 <label class="wh-field for-matrix">{{t "wh.homeserver"}} <input name="homeserver" placeholder="https://matrix.example" required disabled></label>
527 <label class="wh-field for-matrix">{{t "wh.room"}} <input name="room" placeholder="!room:example.org" required disabled></label>
528 <label class="wh-field for-custom">{{t "wh.method"}}
529 <select name="method">
530 <option>POST</option>
531 <option>PUT</option>
532 <option>PATCH</option>
533 <option>GET</option>
534 </select>
535 </label>
536 <label class="wh-field for-custom">{{t "wh.contentType"}} <input name="content_type" placeholder="application/json"></label>
537 <label class="wh-field for-custom">{{t "wh.headers"}} <textarea name="headers" placeholder="Authorization: Bearer {{"{{secret.NAME}}"}}"></textarea> <span class="muted">{{t "wh.headerHint"}}</span></label>
538 <label class="wh-field for-custom">{{t "wh.body"}} <textarea name="body"></textarea> <span class="muted">{{t "wh.bodyHint"}}</span></label>
539 <label>{{t "set.branchFilter"}} <input name="branch_filter" placeholder="{{t "set.filterHint"}}"></label>
540 <fieldset>
541 <label><input type="checkbox" name="event_push" value="1"> {{t "set.ev.push"}}</label>
542 <label><input type="checkbox" name="event_merge_request" value="1"> {{t "set.ev.mr"}}</label>
543 <label><input type="checkbox" name="event_pipeline_success" value="1"> {{t "set.ev.ok"}}</label>
544 <label><input type="checkbox" name="event_pipeline_failure" value="1"> {{t "set.ev.fail"}}</label>
545 <label><input type="checkbox" name="event_release_published" value="1"> {{t "set.ev.release"}}</label>
546 </fieldset>
547 <button type="submit">{{t "set.saveWebhook"}}</button>
548</form>
549<script src="/assets/webhook.js"></script>
550<ul class="clean">
551 {{range .Hooks}}<li><strong>{{.Name}}</strong> {{presetName .Preset}} <span class="muted">{{.Method}} {{.URL}}</span>
552 <div class="muted">{{.Events}} {{if .Filter}}· filter {{.Filter}}{{end}}</div>
553 {{range .Deliveries}}<div class="muted">{{.EventType}} → {{.StatusCode}} {{.Error}}</div>{{end}}
554 <form method="post" action="{{if $.Repo}}/{{$.Repo.FullPath}}/-/webhooks/delete{{else}}/groups/{{$.Group.Path}}/webhooks/delete{{end}}">
555 <input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="id" value="{{.ID}}">
556 <button class="ghost" type="submit">{{t "action.remove"}}</button>
557 </form>
558 </li>{{end}}
559</ul>
560{{end}}
561
562{{define "group"}}
563{{template "layout-start" .}}
564<header class="pagehead">
565 <h1>{{if eq .Tab "members"}}{{t "group.tab.members"}}{{else if eq .Tab "settings"}}{{t "group.tab.settings"}}{{else}}{{.Group.Name}}{{end}}</h1>
566</header>
567{{if and (ne .Tab "members") (ne .Tab "settings")}}{{if .Group.Description}}<p class="muted">{{.Group.Description}}</p>{{end}}{{end}}
568{{if eq .Tab "members"}}
569{{if .CanAdmin}}
570<form class="panel" method="post" action="/groups/{{.Group.Path}}/members">
571 <input type="hidden" name="csrf" value="{{.CSRF}}">
572 <div class="row">
573 <input name="username" placeholder="{{t "set.username"}}" required>
574 {{template "roleselect" (printf "%s" .Group.DefaultRole)}}
575 <button type="submit">{{t "action.save"}}</button>
576 </div>
577</form>
578{{end}}
579<ul class="clean">{{range .Members}}<li>{{.Username}} · {{roleName .Role}} {{if eq .UserID $.Group.OwnerID}}<span class="pill">{{t "group.owner"}}</span>{{end}} {{if .Pending}}<span class="pill">{{t "set.pending"}}</span>{{end}}
580 {{if and $.CanAdmin (not .Pending) (ne .UserID $.Group.OwnerID)}}<form method="post" action="/groups/{{$.Group.Path}}/members/remove"><input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="username" value="{{.Username}}"><button class="ghost" type="submit">{{t "action.remove"}}</button></form>{{end}}
581</li>{{end}}</ul>
582{{else if eq .Tab "settings"}}
583<form class="panel" method="post" action="/groups/{{.Group.Path}}/settings">
584 <input type="hidden" name="csrf" value="{{.CSRF}}">
585 <label>{{t "new.description"}} <input name="description" value="{{.Group.Description}}"></label>
586 <label>{{t "new.visibility"}}
587 <select name="visibility">
588 <option value="private" {{if eq .Group.Visibility "private"}}selected{{end}}>{{t "vis.private"}}</option>
589 <option value="public" {{if eq .Group.Visibility "public"}}selected{{end}}>{{t "vis.public"}}</option>
590 </select>
591 </label>
592 <label>{{t "group.defaultRole"}}
593 <select name="default_role">
594 <option value="readonly" {{if eq (printf "%s" .Group.DefaultRole) "readonly"}}selected{{end}}>{{t "role.readonly"}}</option>
595 <option value="developer" {{if eq (printf "%s" .Group.DefaultRole) "developer"}}selected{{end}}>{{t "role.developer"}}</option>
596 <option value="maintainer" {{if eq (printf "%s" .Group.DefaultRole) "maintainer"}}selected{{end}}>{{t "role.maintainer"}}</option>
597 </select>
598 </label>
599 <p class="muted">{{t "new.roleHint"}}</p>
600 <button type="submit">{{t "action.save"}}</button>
601</form>
602<h2 id="approvals">{{t "appr.tab"}}</h2>
603{{template "approvalform" .}}
604<form class="panel" method="post" action="/groups/{{.Group.Path}}/logo" enctype="multipart/form-data">
605 <input type="hidden" name="csrf" value="{{.CSRF}}">
606 <label>{{t "logo.file"}} <input type="file" name="logo" accept="image/png,image/jpeg,image/gif,image/svg+xml,.svg" required></label>
607 <p class="muted">{{t "logo.hint"}}</p>
608 <button type="submit">{{t "action.save"}}</button>
609</form>
610<h2>{{t "set.secrets"}}</h2>
611<form class="panel" method="post" action="/groups/{{.Group.Path}}/secrets">
612 <input type="hidden" name="csrf" value="{{.CSRF}}">
613 <label>{{t "set.secretName"}} <input name="name" required></label>
614 <label>{{t "set.secretValue"}} <textarea name="value" required></textarea></label>
615 <label class="row"><input type="checkbox" name="protected" value="1"> {{t "set.protectedOnly"}}</label>
616 <button type="submit">{{t "action.save"}}</button>
617</form>
618<ul class="clean">{{range .Secrets}}<li><code>{{.Name}}</code>
619 <form method="post" action="/groups/{{$.Group.Path}}/secrets/delete"><input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="name" value="{{.Name}}"><button class="ghost" type="submit">{{t "action.remove"}}</button></form>
620</li>{{end}}</ul>
621<p class="muted">{{t "set.valuesHidden"}}</p>
622{{if .IsOwner}}
623<h2>{{t "own.transfer"}}</h2>
624{{if .Candidates}}
625<button type="button" data-transfer-open>{{t "own.transfer"}}</button>
626<dialog class="danger-modal" data-transfer-dialog>
627 <form method="post" action="/groups/{{.Group.Path}}/owner">
628 <input type="hidden" name="csrf" value="{{.CSRF}}">
629 <p data-transfer-copy data-pattern="{{t "own.confirm" "%s"}}">{{t "own.confirm" (index .Candidates 0).Username}}</p>
630 <label>{{t "own.pick"}}
631 <select name="username" data-transfer-user>
632 {{range .Candidates}}<option value="{{.Username}}">{{.Username}}</option>{{end}}
633 </select>
634 </label>
635 <label>{{t "own.type"}} <input name="confirm" data-transfer-confirm autocomplete="off"></label>
636 <div class="row">
637 <button type="submit" data-transfer-submit disabled>{{t "own.transfer"}}</button>
638 <button type="button" class="ghost" data-transfer-cancel>{{t "action.cancel"}}</button>
639 </div>
640 </form>
641</dialog>
642<script src="/assets/transfer.js"></script>
643{{else}}<p class="muted">{{t "own.needMember"}}</p>{{end}}
644{{end}}
645<h2>{{t "set.webhooks"}}</h2>
646<p class="muted">{{t "group.secretsNote"}}</p>
647{{template "webhookform" .}}
648{{else}}
649{{if .Heat}}{{template "heatmap" .Heat}}{{end}}
650<form class="bar" method="get" action="/groups/{{.Group.Path}}">
651 <input type="search" name="q" value="{{.Query}}" placeholder="{{t "group.search"}}">
652 <input type="hidden" name="dir" value="{{.SortDir}}">
653 <span class="sortlabel">{{t "group.sort"}}</span>
654 <a class="iconbtn" href="/groups/{{.Group.Path}}?q={{urlquery .Query}}&amp;dir={{.FlipDir}}" aria-label="{{t "group.direction"}}">{{if eq .SortDir "desc"}}↓{{else}}↑{{end}}</a>
655</form>
656<ul class="repolist">
657 {{range .Cards}}
658 <li>
659 {{if .Repo.HasLogo}}<img class="tile" src="/{{.Repo.FullPath}}/-/logo" alt="">{{else}}<span class="tile">{{initial .Repo.Name}}</span>{{end}}
660 <a class="reponame" href="/{{.Repo.FullPath}}">{{.Repo.Name}}</a>
661 {{template "visicon" .Repo.Visibility}}
662 <span class="stars" aria-label="{{t "group.star"}}">★ {{.Stars}}</span>
663 <span class="muted grown">{{t "group.created" .When}}</span>
664 <details class="rowmenu">
665 <summary aria-label="{{t "group.menu"}}">⋯</summary>
666 <div class="menu-panel">
667 {{if $.User}}
668 <form method="post" action="/{{.Repo.FullPath}}/-/star">
669 <input type="hidden" name="csrf" value="{{$.CSRF}}">
670 <input type="hidden" name="back" value="/groups/{{$.Group.Path}}?q={{$.Query}}&amp;dir={{$.SortDir}}">
671 <button type="submit">{{if .Starred}}{{t "group.unstar"}}{{else}}{{t "group.star"}}{{end}}</button>
672 </form>
673 {{end}}
674 <button type="button" data-copy="{{.Repo.FullPath}}">{{t "action.copy"}}</button>
675 </div>
676 </details>
677 </li>
678 {{else}}<li class="muted">{{t "group.empty"}}</li>{{end}}
679</ul>
680<script src="/assets/repo.js"></script>
681{{end}}
682{{template "layout-end" .}}
683{{end}}