change kontor-gin for containers
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s

This commit is contained in:
Thomas Peetz
2026-09-23 17:09:48 +02:00
parent 6b5167a5c0
commit a0ad4e5c26
23 changed files with 295 additions and 172 deletions
@@ -1,58 +0,0 @@
<!doctype html>
<html lang="de-DE">
{{ template "header.tmpl" . }}
<body>
<div class="header"></div>
{{ template "navbar.tmpl" . }}
<div class="content">{{ .content }}</div>
<div class="row">
<form class="form-inline" action="/comic/comics">
<input type="text" placeholder="Search" name="query">
<label>
<input type="checkbox" name="completed" {{ if .completed }}checked{{ end }}>Completed
</label>
<label>
<input type="checkbox" name="order" {{ if .order }}checked{{ end }}>Order
</label>
<button type="submit">Search</button>
<div class="pill-nav"><a href="/comic/comic/add">Add Comic</a></div>
</form>
</div>
<div class="row">
<div class="maincolumn">
<table class="table table-hover">
<thead><tr>
<th scope="col">Title</th>
<th scope="col">Publisher</th>
<th scope="col">Completed</th>
<th colspan="2">Actions</th>
</tr></thead>
<tbody>
{{ range .comics }}
<tr>
<th scope="row"><a href="/comic/comics/{{.ID}}">{{.Title}}</a></th>
{{ if .Publisher }}
<td><a href="/comic/publishers/{{.Publisher.ID}}">{{.Publisher.Name}}</a></td>
{{ else }}
<td>Publisher not set</td>
{{ end }}
<td>
{{ if .Completed }}
<img src="/tick.png" alt="true" width="24" height="24">
{{ else }}
<img src="/cross.png" alt="true" width="24" height="24">
{{ end }}
</td>
<td><a href="/comic/comics/edit/{{.ID}}" class="btn btn-outline-primary btn-sm active" role="button" aria-pressed="true">Edit</a></td>
<td><a href="/comic/comics/delete/{{.ID}}" class="btn btn-outline-danger btn-sm active" role="button" aria-pressed="true">Delete</a></td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</div>
{{ template "footer.tmpl" . }}
</body>
</html>
-3
View File
@@ -1,3 +0,0 @@
{{ define "footer.tmpl" }}
<div class="footer">{{ .version }}</div>
{{end}}
-14
View File
@@ -1,14 +0,0 @@
{{ define "header.tmpl" }}
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="/public/style/main.css" />
<title>{{ .title }}</title>
</head>
{{ end }}
-12
View File
@@ -1,12 +0,0 @@
<!doctype html>
<html lang="de-DE">
{{ template "header.tmpl" . }}
<body>
<div class="header"></div>
{{ template "navbar.tmpl" . }}
<div class="content">{{ .title }}</div>
{{ template "footer.tmpl" . }}
</body>
</html>
@@ -1,12 +0,0 @@
<!doctype html>
<html lang="de-DE">
{{ template "header.tmpl" . }}
<body>
<div class="header"></div>
{{ template "navbar.tmpl" . }}
<div class="content">{{ .content }}</div>
{{ template "footer.tmpl" . }}
</body>
</html>
@@ -1,12 +0,0 @@
<!doctype html>
<html lang="de-DE">
{{ template "header.tmpl" . }}
<body>
<div class="header"></div>
{{ template "navbar.tmpl" . }}
<div class="content">{{ .content }}</div>
{{ template "footer.tmpl" . }}
</body>
</html>
-12
View File
@@ -1,12 +0,0 @@
<!doctype html>
<html lang="de-DE">
{{ template "header.tmpl" . }}
<body>
<div class="header"></div>
{{ template "navbar.tmpl" . }}
<div class="content">{{ .content }}</div>
{{ template "footer.tmpl" . }}
</body>
</html>
+24
View File
@@ -0,0 +1,24 @@
{{ define "main" }}
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="/public/style/main.css" />
<title>{{ .title }}</title>
</head>
<body>
<div class="header"></div>
{{ template "navbar" . }}
{{ template "content" . }}
<div class="footer">{{ .version }}</div>
</body>
</html>
{{ end }}
@@ -1,13 +1,13 @@
{{ define "navbar.tmpl" }}
{{ define "navbar" }}
<div class="topnav">
<a href="/">Kontor</a>
<a href="/comic/comics">Comics</a>
<a href="/media/files">Media</a>
<a href="/media/lofis">Lofi</a>
{{ if .user }}
<a style="float:right" href={{ .logout }}>Logout</a></li>
<a style="float:right" href="{{ .logout }}">Logout</a></li>
{{ else }}
<a style="float:right" href="/login">Login</a></li>
<a style="float:right" href="{{ .login }}">Login</a></li>
{{ end }}
</div>
{{ end }}
+52
View File
@@ -0,0 +1,52 @@
{{ define "comics.html" }}
{{ template "main" . }}
{{ end }}
{{ define "content" }}
<div class="row">
<form class="form-inline" action="/comic/comics">
<input type="text" placeholder="Search" name="query">
<label>
<input type="checkbox" name="completed" {{ if .completed }}checked{{ end }}>Completed
</label>
<label>
<input type="checkbox" name="order" {{ if .order }}checked{{ end }}>Order
</label>
<button type="submit">Search</button>
<div class="pill-nav"><a href="/comic/comic/add">Add Comic</a></div>
</form>
</div>
<div class="row">
<div class="maincolumn">
<table class="table table-hover">
<thead><tr>
<th scope="col">Title</th>
<th scope="col">Publisher</th>
<th scope="col">Completed</th>
<th colspan="2">Actions</th>
</tr></thead>
<tbody>
{{ range .comics }}
<tr>
<th scope="row"><a href="/comic/comics/{{.ID}}">{{.Title}}</a></th>
{{ if .Publisher }}
<td><a href="/comic/publishers/{{.Publisher.ID}}">{{.Publisher.Name}}</a></td>
{{ else }}
<td>Publisher not set</td>
{{ end }}
<td>
{{ if .Completed }}
<img src="/tick.png" alt="true" width="24" height="24">
{{ else }}
<img src="/cross.png" alt="true" width="24" height="24">
{{ end }}
</td>
<td><a href="/comic/comics/edit/{{.ID}}" class="btn btn-outline-primary btn-sm active" role="button" aria-pressed="true">Edit</a></td>
<td><a href="/comic/comics/delete/{{.ID}}" class="btn btn-outline-danger btn-sm active" role="button" aria-pressed="true">Delete</a></td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</div>
{{ end }}
+7
View File
@@ -0,0 +1,7 @@
{{ define "home.html" }}
{{ template "main" . }}
{{ end }}
{{ define "content" }}
<h1>{{ .content }}</h1>
{{ end }}
+52
View File
@@ -0,0 +1,52 @@
{{ define "media_lofi.html" }}
{{ template "main" . }}
{{ end }}
{{ define "content" }}
<div class="row">
<form class="form-inline" action="/media/lofi">
<input type="text" placeholder="Search" name="query">
<label>
<input type="checkbox" name="review" {{ if .Review }}checked{{ end }}>Completed
</label>
<label>
<input type="checkbox" name="should_download" {{ if .ShouldDownload }}checked{{ end }}>Order
</label>
<button type="submit">Search</button>
<div class="pill-nav"><a href="/media/lofi/add">Add Lofi</a></div>
</form>
</div>
<div class="row">
<div class="maincolumn">
<table class="table table-hover">
<thead><tr>
<th scope="col">Title</th>
<th scope="col">Publisher</th>
<th scope="col">Completed</th>
<th colspan="2">Actions</th>
</tr></thead>
<tbody>
{{ range .comics }}
<tr>
<th scope="row"><a href="/media/lofi/{{.ID}}">{{.Title}}</a></th>
{{ if .WebLink }}
<td><a href="{{.WebLink}}">{{.Title}}</a></td>
{{ else }}
<td>WebLink not set</td>
{{ end }}
<td>
{{ if .Review }}
<img src="/tick.png" alt="true" width="24" height="24">
{{ else }}
<img src="/cross.png" alt="true" width="24" height="24">
{{ end }}
</td>
<td><a href="/media/lofi/edit/{{.ID}}" class="btn btn-outline-primary btn-sm active" role="button" aria-pressed="true">Edit</a></td>
<td><a href="/media/lofi/delete/{{.ID}}" class="btn btn-outline-danger btn-sm active" role="button" aria-pressed="true">Delete</a></td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</div>
{{ end }}
@@ -1,11 +1,8 @@
<!doctype html>
<html lang="de-DE">
{{ template "header.tmpl" . }}
<body>
<div class="header"></div>
{{ template "navbar.tmpl" . }}
{{ define "login.html" }}
{{ template "main" . }}
{{ end }}
{{ define "content" }}
<div class="content">
<form action={{ .login }} method="post">
@@ -34,7 +31,4 @@
</div>
</form>
</div>
{{ template "footer.tmpl" . }}
</body>
</html>
{{ end }}
@@ -0,0 +1,7 @@
{{ define "home.html" }}
{{ template "main" . }}
{{ end }}
{{ define "content" }}
<h1>{{ .content }}</h1>
{{ end }}
@@ -0,0 +1,7 @@
{{ define "mediafiles.html" }}
{{ template "main" . }}
{{ end }}
{{ define "content" }}
<h1>{{ .content }}</h1>
{{ end }}