Adapte le rapport des liens morts au nouveau format
This commit is contained in:
@@ -16,15 +16,15 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>URL</th>
|
||||
<th>Emplacements</th>
|
||||
<th>Statut</th>
|
||||
<th>URL</th>
|
||||
<th>Code</th>
|
||||
<th>Détails</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{- range $links -}}
|
||||
<tr>
|
||||
<td><a href="{{ .url }}" rel="noreferrer noopener" target="_blank">{{ .url }}</a></td>
|
||||
<td>
|
||||
{{- $locations := default (slice) .locations -}}
|
||||
{{- if gt (len $locations) 0 -}}
|
||||
@@ -74,7 +74,9 @@
|
||||
<em>Emplacements inconnus</em>
|
||||
{{- end -}}
|
||||
</td>
|
||||
<td><code>{{ .status }}</code></td>
|
||||
<td><a href="{{ .url }}" rel="noreferrer noopener" target="_blank">{{ .url }}</a></td>
|
||||
<td>{{ with .code }}<code>{{ . }}</code>{{ end }}</td>
|
||||
<td>{{ with .statusText }}<code>{{ . }}</code>{{ end }}</td>
|
||||
</tr>
|
||||
{{- end -}}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user