Compare commits

...

2 commits
v0.0.4 ... main

Author SHA1 Message Date
henne
95e9ae41ef feat: prettier index view
All checks were successful
continuous-integration/drone/tag Build is passing
2024-12-30 19:34:23 +01:00
henne
282c3bbc0e chore: build docker image in ci 2024-12-30 19:33:52 +01:00
2 changed files with 13 additions and 26 deletions

View file

@ -19,27 +19,6 @@ steps:
GOARCH: amd64
commands:
- 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
image: plugins/gitea-release
settings:
@ -51,4 +30,12 @@ steps:
- md5
- sha1
- sha256
- name: build docker image
image: plugins/docker
settings:
username: ctdo
password:
from_secret: dockerhub_password
repo: ctdo/machinelock-manager
tags: latest

View file

@ -14,12 +14,12 @@
<thead>
<tr>
<th>User</th>
<th style="min-width:120px">RFID ID</th>
<th class="sticky-top">User</th>
<th style="min-width:120px" class="sticky-top">RFID ID</th>
{{range .Machines}}
<th style="writing-mode:vertical-rl">{{.Name}}</th>
<th style="writing-mode:vertical-rl" class="sticky-top">{{.Name}}</th>
{{end}}
<th></th>
<th class="sticky-top"></th>
</tr>
</thead>
<tbody>
@ -30,7 +30,7 @@
<td><input type="text" class="form-control" value="{{.Nick}}" name="nick"></td>
<td>{{.ID}}</td>
{{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}}
<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>