first commit
This commit is contained in:
15
templates/error.html
Normal file
15
templates/error.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | Error</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/style.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="error">
|
||||
<h1>{{.msg}}</h1>
|
||||
<a href="/">Go Back to Home</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
54
templates/index.html
Normal file
54
templates/index.html
Normal file
@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | Tracker</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/style.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
{{template "parts/bar" .}}
|
||||
<main>
|
||||
<div class="search">
|
||||
<form action="/" method="POST">
|
||||
{{if .search}}
|
||||
<input placeholder="Hit enter to search" type="text" name="name" value="{{.search}}">
|
||||
{{else}}
|
||||
<input placeholder="Hit enter to search" type="text" name="name" autofocus>
|
||||
{{end}}
|
||||
<select name="repo">
|
||||
<option value="all">Select repo</option>
|
||||
{{range .repos}}
|
||||
<option value="{{.Name}}">{{.Name}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
</form>
|
||||
<div class="status">
|
||||
<p>Listing total of {{len .pkgs}} packages</p>
|
||||
<p>Last updated: {{.last}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="pkgs">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Repo</th>
|
||||
<th>Version</th>
|
||||
<th>Size</th>
|
||||
<th>Desc</th>
|
||||
<th>Sum</th>
|
||||
</tr>
|
||||
{{range .pkgs}}
|
||||
<tr>
|
||||
<td><a href="{{.URL}}">{{.Name}}</a></td>
|
||||
<td>{{.Repo}}</td>
|
||||
<td>{{.Ver }}</td>
|
||||
<td>{{.Size}}</td>
|
||||
<td>{{.Desc}}</td>
|
||||
<td>{{.Sum }}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
13
templates/parts/bar.html
Normal file
13
templates/parts/bar.html
Normal file
@ -0,0 +1,13 @@
|
||||
<div class="bar">
|
||||
<div class="logo-div">
|
||||
<h1 class="logo">MatterLinux</h1>
|
||||
<h1 class="logo-text">Tracker</h1>
|
||||
</div>
|
||||
<div class="links">
|
||||
<a href="/">Home</a>
|
||||
<a href="/news">News</a>
|
||||
<a href="/wiki">Wiki</a>
|
||||
<a href="https://git.matterlinux.xyz/Matter">Source</a>
|
||||
<a href="https://tracker.matterlinux.xyz">Packages</a>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user