Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
|
95e9ae41ef | ||
|
282c3bbc0e |
2 changed files with 13 additions and 26 deletions
29
.drone.yml
29
.drone.yml
|
@ -19,27 +19,6 @@ steps:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go build -v -o dist/machinelock-manager-linux-amd64
|
- go build -v -o dist/machinelock-manager-linux-amd64
|
||||||
- name: Building for Windows
|
|
||||||
image: golang
|
|
||||||
environment:
|
|
||||||
GOOS: windows
|
|
||||||
GOARCH: amd64
|
|
||||||
commands:
|
|
||||||
- go build -v -o dist/machinelock-manager-windows-amd64
|
|
||||||
- name: Building for Mac
|
|
||||||
image: golang
|
|
||||||
environment:
|
|
||||||
GOOS: darwin
|
|
||||||
GOARCH: amd64
|
|
||||||
commands:
|
|
||||||
- go build -v -o dist/machinelock-manager-darwin-amd64
|
|
||||||
- name: Building for Mac Silicon
|
|
||||||
image: golang
|
|
||||||
environment:
|
|
||||||
GOOS: darwin
|
|
||||||
GOARCH: arm64
|
|
||||||
commands:
|
|
||||||
- go build -v -o dist/machinelock-manager-darwin-arm64
|
|
||||||
- name: gitea release
|
- name: gitea release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
|
@ -51,4 +30,12 @@ steps:
|
||||||
- md5
|
- md5
|
||||||
- sha1
|
- sha1
|
||||||
- sha256
|
- sha256
|
||||||
|
- name: build docker image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username: ctdo
|
||||||
|
password:
|
||||||
|
from_secret: dockerhub_password
|
||||||
|
repo: ctdo/machinelock-manager
|
||||||
|
tags: latest
|
||||||
|
|
|
@ -14,12 +14,12 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
<th>User</th>
|
<th class="sticky-top">User</th>
|
||||||
<th style="min-width:120px">RFID ID</th>
|
<th style="min-width:120px" class="sticky-top">RFID ID</th>
|
||||||
{{range .Machines}}
|
{{range .Machines}}
|
||||||
<th style="writing-mode:vertical-rl">{{.Name}}</th>
|
<th style="writing-mode:vertical-rl" class="sticky-top">{{.Name}}</th>
|
||||||
{{end}}
|
{{end}}
|
||||||
<th></th>
|
<th class="sticky-top"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
<td><input type="text" class="form-control" value="{{.Nick}}" name="nick"></td>
|
<td><input type="text" class="form-control" value="{{.Nick}}" name="nick"></td>
|
||||||
<td>{{.ID}}</td>
|
<td>{{.ID}}</td>
|
||||||
{{range $.Machines}}
|
{{range $.Machines}}
|
||||||
<td><input type="checkbox" class="form-check-input" name="machine[{{.ID}}]" value="1" {{if IsAllowed $token .ID}}checked{{end}}/></td>
|
<td><input type="checkbox" class="form-check-input" name="machine[{{.ID}}]" value="1" {{if IsAllowed $token .ID}}checked{{end}} title="{{.Name}}"/></td>
|
||||||
{{end}}
|
{{end}}
|
||||||
<td><input type="submit" class="btn btn-sm btn-success" value="Speichern" /><a href="/tokens/{{.ID}}/delete" class="btn btn-sm btn-danger">Löschen</a></td>
|
<td><input type="submit" class="btn btn-sm btn-success" value="Speichern" /><a href="/tokens/{{.ID}}/delete" class="btn btn-sm btn-danger">Löschen</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue