2023-04-06 10:36:11 +05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2023-11-02 21:20:10 +05:00
|
|
|
{{template "head" .}}
|
2024-04-01 22:38:23 +05:00
|
|
|
<link rel="stylesheet" href="/assets/css/index-common.css" />
|
|
|
|
<link rel="stylesheet" href="/assets/css/index-{{ .style }}.css" />
|
2023-04-06 10:36:11 +05:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="page">
|
2024-03-25 15:52:18 +05:00
|
|
|
<h1>{{ .title }}</h1>
|
2024-04-01 22:38:23 +05:00
|
|
|
|
|
|
|
<div class="controls">
|
|
|
|
{{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">
|
|
|
|
<img src="/assets/icons/solid/gear.svg" width="20" height="20" /> Settings
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{ if ne .style "list" }}
|
|
|
|
<a href="/?style=list">
|
|
|
|
<img src="/assets/icons/solid/list.svg" width="20" height="20" /> List
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if ne .style "tiles" }}
|
|
|
|
<a href="/?style=tiles">
|
|
|
|
<img src="/assets/icons/solid/table-cells-large.svg" width="20" height="20" /> Tiles
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2023-04-06 10:36:11 +05:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
{{range .groups}}
|
|
|
|
<div class="group">
|
|
|
|
<h2>{{.Name}}</h2>
|
2024-04-01 22:38:23 +05:00
|
|
|
<div class="links">
|
2023-04-06 10:36:11 +05:00
|
|
|
{{range .Links}}
|
2023-09-03 19:08:33 +05:00
|
|
|
<a href="{{.Href}}" target="_blank" rel="noreferrer">
|
|
|
|
{{ if .Icon }}
|
|
|
|
<img src="/assets/icons/{{.Icon}}.svg" width="20" height="20" />
|
2024-04-01 22:38:23 +05:00
|
|
|
{{ else }}
|
|
|
|
<img src="/assets/icons/solid/globe.svg" width="20" height="20" />
|
2023-09-03 19:08:33 +05:00
|
|
|
{{ end }}
|
|
|
|
{{.Name}}
|
|
|
|
</a>
|
2023-04-06 10:36:11 +05:00
|
|
|
{{end}}
|
2024-04-01 22:38:23 +05:00
|
|
|
</div>
|
2023-04-06 10:36:11 +05:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|