mirror of
https://github.com/r-smith/deceptifeed.git
synced 2025-11-02 13:13:37 +00:00
This change moves the nav bar for the threat feed web interface to a dedicated template defined in `nav.html`. HTTP handlers and existing HTML templates are updated to utilize the new template.
29 lines
854 B
HTML
29 lines
854 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Deceptifeed</title>
|
|
<link rel="stylesheet" href="/css/style.css">
|
|
</head>
|
|
<body class="full-width">
|
|
<header>
|
|
{{template "nav" .NavData}}
|
|
</header>
|
|
<main class="full-width">
|
|
{{if .Data}}
|
|
<table class="logs logs-http">
|
|
<thead>
|
|
<tr><th>Time<th>Source IP<th>Method<th>Path</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Data}}<tr><td>{{.Time.Format "2006-01-02 15:04:05"}}<td>{{.SourceIP}}<td>{{.Details.Method}}<td>{{.Details.Path}}</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
<p class="no-results">No log data found</p>
|
|
{{end}}
|
|
</main>
|
|
</body>
|
|
</html> |