multi_sample_stats.html 1.4 KB
Newer Older
Ryan Herbert's avatar
Ryan Herbert committed
1
2
3
4
5
6
7
8
9
10
11
12
{{extend 'db_layout.html'}}

<div id="db_table_container">
    <table class="db_table" id="table">
        <thead>
	    <tr>
            {{ for h in data['headers']: }}
            <td class="{{=h}}">
                <span class="toggle {{=h}}"onclick="$('.content.{{=h}}').toggle(function() {if ($('.content.{{=h}}').is(':visible')) {$('.{{=h}}').width(''); $('.toggle.{{=h}}').text('[-]')} else {$('.{{=h}}').width('20px'); $('.toggle.{{=h}}').text('[+]')}})">[-]</span>
                <span class="content {{=h}}">{{=h}}</span>
            </td>
            {{ pass }}
13
            <td class="column5 devel-mode"></td>
Ryan Herbert's avatar
Ryan Herbert committed
14
15
16
17
18
19
20
21
22
23
        </tr>
        </thead>
        <tbody>
            {{ for res in data['results']: }}
                <tr>
                    {{ for h in data['headers']: }}
                    <td class="{{=h}}">
                        <span class="content {{=h}}">{{=res[h]}}</span>
                    </td>
                    {{ pass }}
24
                    <td class="devel-mode">
25
26
                       <span class="pointer" onclick="db.call('default/run_extra', { 'sequence_file_id' : '{{=res["sequence_file_id"]}}', 'config_id' : {{=res["config_id"]}} } )"><i class="icon-cog-2" title="Run the selected configuration for this file"></i></span>
                    </td>
Ryan Herbert's avatar
Ryan Herbert committed
27
28
29
30
31
32
                </tr>
            {{ pass }}
        </tbody>
    </table>
    <table class="db_table" id="db_fixed_header"></table>
</div>