mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-28 11:46:20 -04:00
Remove now unneeded templates
This commit is contained in:
parent
eae3f5ee67
commit
156d266736
2 changed files with 0 additions and 149 deletions
|
@ -1,71 +0,0 @@
|
||||||
{{define "index"}}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
|
||||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
|
||||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
|
||||||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<base href="/" >
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
||||||
<title>{{ .RegistryURL }}</title>
|
|
||||||
<link rel="icon" type="image/ico" href="/favicon.ico">
|
|
||||||
<link rel="stylesheet" href="/css/styles.css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>{{ .RegistryURL }}</h1>
|
|
||||||
<form>
|
|
||||||
<input name="filter" type="search"><a class="clear">clear</a>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>Tag</th>
|
|
||||||
<th>Created</th>
|
|
||||||
<th>Pull Command</th>
|
|
||||||
</tr>
|
|
||||||
{{ range $key, $value := .Repos }}
|
|
||||||
<tr>
|
|
||||||
<td valign="top">
|
|
||||||
{{ if $value.VulnURI }}<a href="{{ $value.VulnURI }}">{{ end }}
|
|
||||||
{{ $value.Name }}
|
|
||||||
{{ if $value.VulnURI }}</a>{{ end }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ if $value.VulnURI }}<a href="{{ $value.VulnURI }}">{{ end }}
|
|
||||||
{{ $value.Tag }}
|
|
||||||
{{ if $value.VulnURI }}</a>{{ end }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ if $value.VulnURI }}<a href="{{ $value.VulnURI }}">{{ end }}
|
|
||||||
{{ $value.CreatedDate }}
|
|
||||||
{{ if $value.VulnURI }}</a>{{ end }}
|
|
||||||
</td>
|
|
||||||
<td align="right" nowrap>
|
|
||||||
{{ if $value.VulnURI }}<a href="{{ $value.VulnURI }}">{{ end }}
|
|
||||||
<code>docker pull {{ $value.RepoURI }}</code>
|
|
||||||
{{ if $value.VulnURI }}</a>{{ end }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{{ end }}
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="footer">
|
|
||||||
<a href="https://twitter.com/jessfraz">@jessfraz</a>
|
|
||||||
<p>Last Updated: {{ .LastUpdated }}</p>
|
|
||||||
</div><!--/.footer-->
|
|
||||||
<script src="/js/scripts.js"></script>
|
|
||||||
<script>
|
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
||||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
||||||
ga('create', 'UA-29404280-12', 'jessfraz.com');
|
|
||||||
ga('send', 'pageview');
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{{end}}
|
|
|
@ -1,78 +0,0 @@
|
||||||
{{define "vulns"}}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
|
||||||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
|
||||||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
|
||||||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<base href="/" >
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
||||||
<title>{{ .RegistryURL }}/{{ .Repo }}:{{ .Tag }} Vulnerability Report</title>
|
|
||||||
<link rel="icon" type="image/ico" href="/favicon.ico">
|
|
||||||
<link rel="stylesheet" href="/css/bootstrap.min.css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<ol class="breadcrumb">
|
|
||||||
<li><a href="/">{{ .RegistryURL }}</a></li>
|
|
||||||
<li class="active">{{ .Repo }}:{{ .Tag }}</li>
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
<div class="page-header">
|
|
||||||
<h1>{{ .RegistryURL }}/{{ .Repo }}:{{ .Tag }} <small>Vulnerability Report</small></h1>
|
|
||||||
</div>
|
|
||||||
<p class="text-right">Generated on: {{.Date}}</p>
|
|
||||||
|
|
||||||
{{if gt .BadVulns 5}}
|
|
||||||
<div class="alert alert-danger" role="alert">
|
|
||||||
{{.BadVulns}} High, Critical, and/or Defcon1 vulnerabilities found
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
<h2>Summary</h2>
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="badge">{{ len .Vulns }}</span>
|
|
||||||
<b>Total</b>
|
|
||||||
</li>
|
|
||||||
{{range $key, $value := .VulnsBySeverity}}
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="label label-{{color $key}} pull-right">{{ len $value }}</span>
|
|
||||||
{{ $key }}
|
|
||||||
</li>
|
|
||||||
{{end}}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2>Details</h2>
|
|
||||||
{{range $vulns := .VulnsBySeverity}}
|
|
||||||
{{range $value := $vulns}}
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">{{$value.Name}}
|
|
||||||
<span class="label label-{{color $value.Severity}} pull-right">{{$value.Severity}}</span>
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{{$value.Description}}
|
|
||||||
</div>
|
|
||||||
<div class="panel-footer">
|
|
||||||
<a href="{{$value.Link}}" target="_blank">{{$value.Link}}</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
||||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
||||||
ga('create', 'UA-29404280-12', 'jessfraz.com');
|
|
||||||
ga('send', 'pageview');
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{{end}}
|
|
Loading…
Reference in a new issue