Store/templates/store.html

55 lines
1.7 KiB
HTML
Raw Normal View History

2025-03-09 11:42:53 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Search Results</title>
<style>
.theme-background {
background-size: cover;
background-position: center;
padding: 20px;
color: rgb(37, 37, 37);
}
.addon-icon {
width: 32px;
height: 32px;
vertical-align: middle;
margin-right: 8px;
}
</style>
</head>
<body>
<h1>Search Results</h1>
<ul>
{{range .}}
{{if eq .type "addon"}}
<!-- AMO add-on / extension: icon shown before the name -->
<li>
<img src="{{.icon}}" alt="{{.name}} icon" class="addon-icon">
<strong>{{.name}}</strong> [{{.type}}]
<!-- <a href="/install?slug={{.slug}}">Install</a> -->
<a href="{{.url}}" target="_blank">View</a>
</li>
{{else if eq .type "statictheme"}}
<!-- Theme: background set to the last screenshot -->
<li class="theme-background" style="background-image: url('{{last .screenshots}}');">
<strong>{{.name}}</strong> [{{.type}}]
<a href="{{.url}}" target="_blank">View</a>
</li>
{{else}}
<!-- SPM items -->
<li>
<strong>{{.name}}</strong> [{{.release}} - {{.type}}]
<a href="{{.downloadURL}}" target="_blank">Download</a>
({{.os}}/{{.arch}})
</li>
{{end}}
{{else}}
<li>No add-ons found.</li>
{{end}}
</ul>
<a href="/">Back to Search</a>
</body>
</html>