k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/experiment/prowjob-report/tpl/base_template.html (about)

     1  {{define "report"}}
     2      <!DOCTYPE html>
     3      <html>
     4          <head>
     5              <style>
     6              table {
     7              border-collapse: collapse;
     8              width: 100%;
     9              }
    10  
    11              th, td {
    12              text-align: left;
    13              padding: 8px;
    14              }
    15  
    16              tr:nth-child(even){background-color: #f2f2f2}
    17  
    18              th {
    19              background-color: #4CAF50;
    20              color: white;
    21              }
    22              </style>
    23          </head>
    24          <body>
    25          <h1>Prow Job Report</h1>
    26          <form action="/action_page.php" method="get">
    27              <table border="1" >
    28              <tr>
    29                  <th>Name</th>
    30                  <th>Primary Dashboard</th>
    31                  <th>Resources (Cpu Req, Cpu Limit, Mem Request, Mem Limit)</th>
    32              </tr>
    33              {{- range . -}}
    34                  <tr>
    35                      <td><label><input type="checkbox" {{ if .QOSGuaranteed }}checked{{ end }}>{{ .Name }}</label></td>
    36                      <td><label>{{ .PrimaryDashboard }}</label></td>
    37                      <td><label>{{ .RequestMilliCPU }}, {{ .LimitMilliCPU }}, {{ .RequestGigaMem }}, {{ .LimitGigaMem }} </label></td>
    38                  </tr>
    39              {{- end}}
    40              </table>
    41          </form>
    42          </body>
    43      </html>
    44  {{end}}