src/assets/report.html
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Broken Link Checker Report</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<style>
</style>
<body>
<div class="row">
<div class="col s12">
<div class="section">
<h3>Report: <%= report.name %></h3>
<p><%= report.date %></p>
<h5>Options</h5>
<table class="responsive-table">
<thead>
<tr>
<th>Mode</th>
<th>Concurrency</th>
<th>Request retries amount</th>
<th>Request timeout</th>
<th>Request accepted schemes</th>
<th>Check external urls</th>
</tr>
</thead>
<tbody>
<tr>
<td><%= report.options.mode %></td>
<td><%= report.options.concurrent %></td>
<td><%= report.options.requestRetriesAmount %></td>
<td><%= report.options.requestTimeout %></td>
<td><%= report.options.acceptedSchemes %></td>
<td><%= report.options.checkExternalUrls %></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="divider"></div>
<div class="row">
<div class="col s12">
<div class="section">
<h5>Summary</h5>
<table class="responsive-table">
<thead>
<tr>
<th>Internal Links</th>
<th>External Links</th>
<th>Broken Links</th>
<th>Total Links</th>
</tr>
</thead>
<tbody>
<tr>
<td><%= report.internalCount %></td>
<td><%= report.externalCount %></td>
<td><%= report.brokenCount %></td>
<td><%= report.totalCount %></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="divider"></div>
<div class="row">
<div class="col s12">
<div class="section">
<h5>Broken Links</h5>
<table class="bordered striped hoverable responsive-table">
<thead>
<tr>
<th>#</th>
<th>Status Code</th>
<th>Href</th>
<th>Page Url</th>
</tr>
</thead>
<tbody>
<% _.forEach(report.broken, function(item, index) { %>
<tr>
<td><%- index %></td>
<td><%- item.code %></td>
<td><%- item.advanced.href %></td>
<td>
<a href="<%- item.advanced.page %>"><%- item.advanced.page %></a>
</td>
</tr>
<% }); %>
</tbody>
</table>
</div>
</div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js"></script>
</body>
</html>