File: result.html.ep

package info (click to toggle)
libminion-perl 9.09%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,016 kB
  • sloc: perl: 1,097; makefile: 9
file content (24 lines) | stat: -rw-r--r-- 463 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% layout 'linkcheck', title => 'Result';
% if (ref $result eq 'ARRAY') {
  <table>
    <tr>
      <th>URL</th>
      <th>Status</th>
    </tr>
    % for my $status (@$result) {
      <tr>
        <td><%= $status->[0] %></td>
        <td><%= $status->[1] %></td>
      </tr>
    % }
  </table>
% }
% elsif (!$result) {
  % content_for header => begin
    <meta http-equiv="refresh" content="3">
  % end
  <p>Waiting for result...</p>
% }
% else {
  %= $result
% }