tracker/templates/package.html

65 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>MatterLinux | {{.Name}} {{.Version}}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=1200">
<link href="/style.css" rel="stylesheet">
</head>
<body>
{{template "parts/bar" .}}
<main class="package-main">
<div class="detail">
<h3>Package details</h3>
<div class="links">
<a href="{{.URL}}">View source</a>
<a href="/p/{{.Name}}/{{.Version}}?download=1">Download archive</a>
</div>
</div>
<table class="package">
<tr class="package-name">
<th>Name</th>
<th>{{.Name}}</th>
</tr>
<tr>
<th>Version</th>
<th>{{.Version}}</th>
</tr>
<tr>
<th>Size</th>
<th>{{.Size}}</th>
</tr>
<tr>
<th>Pool</th>
<th>{{.Pool.Display}}</th>
</tr>
<tr>
<th>Description</th>
<th>{{.Desc}}</th>
</tr>
{{if .Depends}}
<tr>
<th>Dependencies</th>
<th>
{{range .Depends}}
<a href="/p/{{.}}/ANY">{{.}}</a>
{{end}}
</th>
</tr>
{{end}}
{{$files := .Files}}
{{if $files}}
<tr>
<th>Files</th>
<th class="files">
{{range $files}}
<p>/{{.}}</p>
{{end}}
</th>
</tr>
{{end}}
</table>
</main>
</body>
</html>