PageRenderTime 53ms CodeModel.GetById 20ms app.highlight 15ms RepoModel.GetById 2ms app.codeStats 0ms

/lib/galaxy/webapps/reports/templates/jobs_per_domain.mako

https://bitbucket.org/ialbert/galaxy-genetrack
Mako | 35 lines | 34 code | 1 blank | 0 comment | 2 complexity | ef19ef8a1f6199388f6f0f09f88c189f MD5 | raw file
 1<%inherit file="/base_panels.mako"/>
 2
 3<%def name="main_body()">
 4  <div class="reportBody">
 5    <h3 align="center">Jobs Per Domain</h3>
 6    <h4 align="center">This report does not account for unauthenticated users.</h4>
 7    %if msg:
 8      <table align="center" width="70%" class="border" cellpadding="5" cellspacing="5">
 9        <tr><td class="ok_bgr">${msg}</td></tr>
10      </table>
11    %endif
12    <table align="center" width="60%" class="colored">
13      %if len( jobs ) == 0:
14        <tr><td colspan="2">There are no jobs</td></tr>
15      %else:
16        <tr class="header">
17          <td>Domain</td>
18          <td>Total Jobs</td>
19        </tr>
20        <% ctr = 0 %>
21        %for job in jobs:
22          %if ctr % 2 == 1:
23            <tr class="odd_row">
24          %else:
25            <tr class="tr">
26          %endif
27            <td>${job[0]}</td>
28            <td>${job[1]}</td>
29          </tr>
30          <% ctr += 1 %>
31        %endfor
32      %endif
33    </table>
34  </div>
35</%def>