mirror of
https://github.com/nxshock/gron.git
synced 2025-07-01 00:13:36 +05:00
Add job categories
This commit is contained in:
parent
96587792cc
commit
6dd6112040
4 changed files with 32 additions and 6 deletions
|
@ -20,7 +20,8 @@
|
|||
<a href="/shutdown">⏻ Shutdown</a>
|
||||
</div>
|
||||
</div>
|
||||
<h1>Job list</h1>
|
||||
{{range .Categories}}
|
||||
<h2>{{if eq . ""}}Other jobs{{else}}{{.}}{{end}}</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
|
@ -33,7 +34,7 @@
|
|||
<th>Next launch</th>
|
||||
<th>Details</th>
|
||||
</tr>
|
||||
{{range .}}
|
||||
{{range (index $.Jobs .)}}
|
||||
<tr>
|
||||
<td class="no-padding">
|
||||
<form action="/start" method="get" id="form-{{.Name}}"></form>
|
||||
|
@ -50,7 +51,7 @@
|
|||
<td>{{.NextLaunch}}</td>
|
||||
<td class="centered"><a href="/details?jobName={{.Name}}">open</a></td>
|
||||
</tr>{{end}}
|
||||
</table>
|
||||
</table>{{end}}
|
||||
</main>
|
||||
</body>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue