examples/linkcheck/templates/links/result.html.ep
raw| 1 | % layout 'linkcheck', title => 'Result'; |
| 2 | % if (ref $result eq 'ARRAY') { |
| 3 | <table> |
| 4 | <tr> |
| 5 | <th>URL</th> |
| 6 | <th>Status</th> |
| 7 | </tr> |
| 8 | % for my $status (@$result) { |
| 9 | <tr> |
| 10 | <td><%= $status->[0] %></td> |
| 11 | <td><%= $status->[1] %></td> |
| 12 | </tr> |
| 13 | % } |
| 14 | </table> |
| 15 | % } |
| 16 | % elsif (!$result) { |
| 17 | % content_for header => begin |
| 18 | <meta http-equiv="refresh" content="3"> |
| 19 | % end |
| 20 | <p>Waiting for result...</p> |
| 21 | % } |
| 22 | % else { |
| 23 | %= $result |
| 24 | % } |