first commit
This commit is contained in:
55
templates/details.html
Normal file
55
templates/details.html
Normal file
@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | {{.v.ID}}</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
||||
<link href="/details.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
{{template "parts/bar" .}}
|
||||
<main>
|
||||
<div class="header">
|
||||
<div class="title">
|
||||
<h1>{{.v.ID}}</h1>
|
||||
<h3 class="sev-{{.v.Severity}}">{{.v.Severity}}</h3>
|
||||
</div>
|
||||
<p>{{.v.Desc}}</p>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Status</td>
|
||||
<td>
|
||||
<strong>{{.v.Status}}</strong>
|
||||
</br>{{.v.Message}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Created on</td>
|
||||
<td>{{.v.Date}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Updated on</td>
|
||||
<td>{{.v.Updated}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Author(s)</td>
|
||||
<td>{{.v.Author}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Source</td>
|
||||
<td><a href="{{.v.Source}}">{{.v.Source}}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Affected package</td>
|
||||
<td><a href="https://tracker.matterlinux.xyz/?e=1&r=all&n={{.v.Package}}">{{.v.Package}}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Affected versions</td>
|
||||
<td>{{.v.Versions}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
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="/global.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="error">
|
||||
<h1>{{.msg}}</h1>
|
||||
<a href="/">Go Back to Home</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
75
templates/index.html
Normal file
75
templates/index.html
Normal file
@ -0,0 +1,75 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | Security</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
||||
<link href="/index.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
{{template "parts/bar" .}}
|
||||
<main>
|
||||
<div class="search">
|
||||
<form action="/" method="GET" class="search-header">
|
||||
<div>
|
||||
<label>Search for...</label>
|
||||
<input type="text" name="q" placeholder="libwebp" value="{{.query}}" autofocus>
|
||||
</div>
|
||||
<div>
|
||||
<label>Search in...</label>
|
||||
<select name="i">
|
||||
<option value="desc">Descriptions</option>
|
||||
<option value="status">Status</option>
|
||||
<option value="id">IDs</option>
|
||||
<option value="pkg">Package names</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
<div class="search-footer">
|
||||
<p>Listing <strong>{{len .vulns}}</strong> issues</p>
|
||||
<p><strong>Page:</strong> {{.current}}/{{.pages}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vulns">
|
||||
{{range .vulns}}
|
||||
<div class="vuln">
|
||||
<div class="vuln-header">
|
||||
<h1>{{.ID}}</h1>
|
||||
<h3 class="sev-{{.Severity}}">{{.Severity}}</h3>
|
||||
</div>
|
||||
<p>{{.Desc}}</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Affected package</th>
|
||||
<th>Affected versions</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://tracker.matterlinux.xyz/?e=1&r=all&n={{.Package}}">{{.Package}}</a></td>
|
||||
<td>{{.Versions}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="vuln-footer">
|
||||
<p><strong>Status:</strong> {{.Status}}</p>
|
||||
<a href="/details/{{.ID}}">View details</a>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{if and (.vulns) (ne .pages 1)}}
|
||||
<div class="pages">
|
||||
{{if eq .current 1}}
|
||||
<a class="invalid">Previous page</a>
|
||||
{{else}}
|
||||
<a href="/?q={{.query}}&i={{.in}}&p={{.prev}}">Previous page</a>
|
||||
{{end}}
|
||||
{{if eq .current .pages}}
|
||||
<a class="invalid">Next page</a>
|
||||
{{else}}
|
||||
<a href="/?q={{.query}}&i={{.in}}&p={{.next}}">Next page</a>
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
21
templates/login.html
Normal file
21
templates/login.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | Security</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
||||
<link href="/login.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
{{template "parts/bar" .}}
|
||||
<main>
|
||||
<form action="/login" method="POST">
|
||||
<h1>Login to managment interface</h1>
|
||||
<input name="username" type="text" placeholder="Username">
|
||||
<input name="password" type="password" placeholder="Password">
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
67
templates/manage.html
Normal file
67
templates/manage.html
Normal file
@ -0,0 +1,67 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MatterLinux | Security</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1200">
|
||||
<link href="/global.css" rel="stylesheet">
|
||||
<link href="/manage.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
{{template "parts/bar" .}}
|
||||
<main>
|
||||
|
||||
<a href="/manage/logout">Logout</a>
|
||||
|
||||
<form action="/manage/new" method="POST">
|
||||
<h1>Create new issue</h1>
|
||||
|
||||
<label>Description</label>
|
||||
<textarea name="desc"
|
||||
placeholder="Heap buffer overflow in libwebp in Google Chrome prior to 116.0.5845.187 and libwebp 1.3.2 allowed a remote attacker..."></textarea>
|
||||
|
||||
<label>Source (URL)</label>
|
||||
<input name="source" type="text" placeholder="https://nvd.nist.gov/vuln/detail/CVE-2023-4863">
|
||||
|
||||
<label>Severity</label>
|
||||
<select name="severity">
|
||||
<option value="Low">Low</option>
|
||||
<option value="Medium">Medium</option>
|
||||
<option value="High">High</option>
|
||||
<option value="Critical">Critical</option>
|
||||
</select>
|
||||
|
||||
<label>Package name</label>
|
||||
<input name="package" type="text" placeholder="libwebp">
|
||||
|
||||
<label>Affected package versions (split with comma)</label>
|
||||
<input name="versions" type="text" placeholder="1.3.2">
|
||||
|
||||
<button type="submit">Publish</button>
|
||||
</form>
|
||||
|
||||
<form action="/manage/status" method="POST">
|
||||
<h1>Update an issue</h1>
|
||||
|
||||
<label>Vulnerability ID</label>
|
||||
<input name="id" type="text" placeholder="MPSI-24-0381">
|
||||
|
||||
<label>Status</label>
|
||||
<select name="status">
|
||||
<option value="Waiting for review">Waiting for review</option>
|
||||
<option value="Ongoing review">Ongoing review</option>
|
||||
<option value="Working on a patch">Working on a patch</option>
|
||||
<option value="Won't patch">Won't patch</option>
|
||||
<option value="Patched">Patched</option>
|
||||
<option value="Not affected">Not affected</option>
|
||||
</select>
|
||||
|
||||
<label>Message</label>
|
||||
<textarea name="message" placeholder="We are currently testing the new patch for the vulnerability"></textarea>
|
||||
|
||||
<button type="submit">Update</button>
|
||||
</form>
|
||||
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
13
templates/parts/bar.html
Normal file
13
templates/parts/bar.html
Normal file
@ -0,0 +1,13 @@
|
||||
<div class="bar">
|
||||
<h1 class="logo">MatterLinux</h1>
|
||||
<div class="links" id="links">
|
||||
<a href="https://matterlinux.xyz">Home</a>
|
||||
<a href="https://matterlinux.xyz/news">News</a>
|
||||
<a href="https://matterlinux.xyz/wiki">Wiki</a>
|
||||
<a href="https://git.matterlinux.xyz/Matter">Source</a>
|
||||
<a href="https://tracker.matterlinux.xyz">Packages</a>
|
||||
<a href="/">Security</a>
|
||||
<a href="https://matterlinux.xyz/download">Download</a>
|
||||
</div>
|
||||
<script src="https://matterlinux.xyz/bar.js"></script>
|
||||
</div>
|
Reference in New Issue
Block a user