<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
<%Links::module_environment%>
-->
<html>

<head>
  <title>Gossamer Links: Module Environment</title>
  <%include include_style.html%>
  <style type="text/css">
    body {
      font-family: sans-serif;
      font-size: 13px;
      background-color: white;
    }
    table {
      border: 2px solid gray;
      padding: 0px;
      border-collapse: collapse;
    }
    th {
      text-align: left;
      border-bottom: 1px solid black;
    }
    td {
      padding: 1px;
      margin: 0px;
    }
    .module-loaded, .module-version {
      padding-left: 5px;
    }
    .noversion, .notmodule {
      font-style: italic;
    }
    .odd {
      background-color: #e4e4e4;
    }
  </style>
</head>

<body>

<%set header_title = 'Module Environment'%>
<%set header_subtitle = $header_title%>
<%set header_details = 'Modules/files loaded into current process (PID '%>
<%set header_details .= $current_pid%>
<%set header_details .= ')'%>
<%include include_header.html%>

<table>
  <tbody>
    <tr>
      <th class="file-loaded">File&nbsp;loaded</th>
      <th class="module-loaded">Module&nbsp;loaded</th>
      <th class="module-version">Module&nbsp;version</th>
    </tr>
<%loop modules%>
    <tr class="<%if row_num % 2%>odd<%else%>even<%endif%>">
      <td class="file-loaded"><%inc_path%></td>
    <%if file_type eq 'file'%>
      <td class="module-loaded notmodule">N/A</td>
      <td class="module-version noversion">N/A</td>
    <%else%>
      <td class="module-loaded"><%module%></td>
      <%if module_version%><td class="module-version"><%module_version%></td><%else%><td class="module-version noversion">none</td><%endif%>
    <%endif%>
    </tr>
<%endloop%>
  </tbody>
</table>

</body>
</html>
