1
0
mirror of https://github.com/nxshock/gron.git synced 2024-11-27 03:41:00 +05:00

Monospace cron instructions

This commit is contained in:
nxshock 2022-03-27 16:12:44 +05:00
parent 43be5325d7
commit 3c6065a167

View File

@ -107,6 +107,10 @@
display: none; display: none;
} }
pre {
font-family: "Consolas";
}
.smaller { .smaller {
font-size: 75%; font-size: 75%;
} }
@ -197,7 +201,9 @@
<button{{if gt .CurrentRunningCount 0}} class="runningbg" {{else}}{{if .LastError}} class="errorbg" {{end}}{{end}} type="submit" form="form-{{.Name}}" name="jobName" value="{{.Name}}" {{if gt .CurrentRunningCount 0}} disabled{{end}}>{{.Name}}</button> <button{{if gt .CurrentRunningCount 0}} class="runningbg" {{else}}{{if .LastError}} class="errorbg" {{end}}{{end}} type="submit" form="form-{{.Name}}" name="jobName" value="{{.Name}}" {{if gt .CurrentRunningCount 0}} disabled{{end}}>{{.Name}}</button>
</td> </td>
<td class="smaller">{{.Description}}</td> <td class="smaller">{{.Description}}</td>
<td class="nowrap" align="right">{{.Cron}}</td> <td class="nowrap" align="right">
<pre>{{.Cron}}</pre>
</td>
<td class="nowrap">{{if gt .CurrentRunningCount 1}}<span class="red">running {{.CurrentRunningCount}} jobs</span>{{else}}{{if .CurrentRunningCount}}<span class="green">&#x25b6; running</span>{{else}}&#x23F9; inactive{{end}}{{end}}</td> <td class="nowrap">{{if gt .CurrentRunningCount 1}}<span class="red">running {{.CurrentRunningCount}} jobs</span>{{else}}{{if .CurrentRunningCount}}<span class="green">&#x25b6; running</span>{{else}}&#x23F9; inactive{{end}}{{end}}</td>
<td>{{.LastStartTime}}</td> <td>{{.LastStartTime}}</td>
<td>{{.LastEndTime}}</td> <td>{{.LastEndTime}}</td>