-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change github report foramt, squash some bugs
- Loading branch information
Showing
4 changed files
with
108 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,61 @@ | ||
<h1>AreYouOk URL Health Report ⛑️ </h1> | ||
<p> | ||
{{.TotalLinks}} URLs were analyzed across {{.TotalFiles}} files in {{.TotalTime}} | ||
</p> | ||
<h3> | ||
{{.TotalLinks}} URLs were analyzed across {{.TotalFiles}} files in {{.TotalTime}} | ||
</h3> | ||
|
||
<details open><summary>Not OK URLs</summary> | ||
<table> | ||
<tr> | ||
<th width="70%">URL</th> | ||
<th>Message</th> | ||
</tr> | ||
{{- range $url, $v := $.ReLinks}} | ||
{{- if ne (index $v "message") "OK"}} | ||
<tr> | ||
<td><a href="{{print $url}}">{{print $url -}}</a></td> | ||
<td align="center">{{print (index $v "message") -}}</td> | ||
</tr> | ||
<ol> | ||
{{- range $k, $v := $.ValidFiles}} | ||
{{- range $url := $v}} | ||
{{- if ne (index (index $.ReLinks $url) "message") "OK"}} | ||
<li> | ||
<p class="filepath"><b><a href="{{$.RepoURL}}/blob/{{$.BranchName}}/{{$k}}">{{$k}}</a></b></p> | ||
<table style="width:100%;margin-left: 0px;"> | ||
<tr> | ||
<th width="70%">URL</th> | ||
<th>Status</th> | ||
<th>Message</th> | ||
<th>Response Time</th> | ||
</tr> | ||
<tr class="c{{index (index $.ReLinks $url) "code" -}}"> | ||
<td><a href="{{$url}}">{{$url}}</a></td> | ||
<td align="center">{{index (index $.ReLinks $url) "code"}}</td> | ||
<td align="center">{{index (index $.ReLinks $url) "message"}}</td> | ||
<td align="center">{{index (index $.ReLinks $url) "response_time"}}</td> | ||
</tr> | ||
</table> | ||
</li> | ||
{{- end}} | ||
{{- end}} | ||
</table> | ||
{{- end}} | ||
</ol> | ||
</details> | ||
<details open><summary>All URLs</summary> | ||
<table> | ||
<tr> | ||
<th width="70%">URL</th> | ||
<th>Status</th> | ||
<th>Message</th> | ||
<th>Response Time</th> | ||
</tr> | ||
{{- range $url, $v := $.ReLinks}} | ||
<tr> | ||
<td><a href="{{print $url}}">{{print $url -}}</a></td> | ||
<td align="center">{{print (index $v "code") -}}</td> | ||
<td align="center">{{print (index $v "message") -}}</td> | ||
<td align="center">{{print (index $v "response_time") -}}</td> | ||
</tr> | ||
|
||
<details><summary>Detailed Report</summary> | ||
<ol> | ||
{{- range $k, $v := $.ValidFiles}} | ||
<li> | ||
<p class="filepath"><b><a href="{{$.RepoURL}}/blob/{{$.BranchName}}/{{$k}}">{{$k}}</a></b></p> | ||
<table style="width:100%;margin-left: 0px;"> | ||
<tr> | ||
<th width="70%">URL</th> | ||
<th>Status</th> | ||
<th>Message</th> | ||
<th>Response Time</th> | ||
</tr> | ||
{{- range $url := $v}} | ||
<tr class="c{{index (index $.ReLinks $url) "code" -}}"> | ||
<td><a href="{{$url}}">{{$url}}</a></td> | ||
<td align="center">{{index (index $.ReLinks $url) "code"}}</td> | ||
<td align="center">{{index (index $.ReLinks $url) "message"}}</td> | ||
<td align="center">{{index (index $.ReLinks $url) "response_time"}}</td> | ||
</tr> | ||
{{- end}} | ||
</table> | ||
</li> | ||
{{- end}} | ||
</table> | ||
</ol> | ||
</details> | ||
<div class="detailed-health-report"> | ||
<details open><summary>Detailed Report</summary> | ||
<ol> | ||
{{- range $k, $v := $.ValidFiles}} | ||
<li> | ||
<p class="filepath"><b><a href="{{$k}}">{{$k}}</a></b></p> | ||
<table style="width:100%;margin-left: 0px;"> | ||
<tr> | ||
<th width="70%">URL</th> | ||
<th>Status</th> | ||
<th>Message</th> | ||
</tr> | ||
{{- range $url := $v}} | ||
<tr class="c{{index (index $.ReLinks $url) "code" -}}"> | ||
<td><a href="">{{$url}}</a></td> | ||
<td align="center">{{index (index $.ReLinks $url) "code"}}</td> | ||
<td align="center">{{index (index $.ReLinks $url) "message"}}</td> | ||
</tr> | ||
{{- end}} | ||
</table> | ||
</li> | ||
{{- end}} | ||
</ol> | ||
</details> | ||
</div> | ||
|
||
<i><p>Report Generated at {{.Time}} on {{.Date}}</p></i> | ||
<i><p><a href="https://github.com/Bhupesh-V/areyouok/issues/new/choose"><b>🐞 Report Bug </b></a> | <a href="https://bhupesh-v.github.io/about/#-support"><b>💰 Support</b></a> | <a href="https://github.com/Bhupesh-V/areyouok"><b>⭐ Give us a Star</b></a></p></i> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters