phoenix/templates/index.html.tmpl
Ivan R. 6d25c4e8af
feat!: migrate to net/http
With the release of Go 1.22, the standard library now has
all the necessary functions that allow us to abandon Gin.

I hope this rewrite will lower the entry barrier for new developers.
As a nice bonus, the size of the program has decreased from 20 to 15.4 MB.

To solve issue #81, request logging has been improved.
Now all errors are displayed in the logs.
2024-03-25 15:52:18 +05:00

37 lines
1.1 KiB
Cheetah

<!DOCTYPE html>
<html lang="en">
<head>
{{template "head" .}}
<link rel="stylesheet" href="assets/css/index.css" />
</head>
<body>
<div class="page">
<h1>{{ .title }}</h1>
{{if not .groups}}
<p>
You don't have any links.
Go to <a href="/settings" style="text-decoration: underline">settings</a> and create one.
</p>
{{else}}
<a href="/settings">Settings</a>
{{end}}
<div class="row">
{{range .groups}}
<div class="group">
<h2>{{.Name}}</h2>
{{range .Links}}
<a href="{{.Href}}" target="_blank" rel="noreferrer">
{{ if .Icon }}
<img src="/assets/icons/{{.Icon}}.svg" width="20" height="20" />
{{ end }}
{{.Name}}
</a>
{{end}}
</div>
{{end}}
</div>
</div>
</body>
</html>