summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/tablesort.html
blob: bf311b6edd9d00b015543254521f163c45886f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% load projecttags %}
<!-- component to display a generic table -->
    {% if disable_sort %}
    <table class="table table-bordered table-hover" id="detail_table">
    <thead>
        <tr>
            {% for tc in tablecols %}
            <th class="{{tc.dclass}} {{tc.clclass}}">
                {%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%}
                {{tc.name}}
            </th>
            {% endfor %}
        </tr>
    </thead>
    {% else %}
    <table class="table table-bordered table-hover tablesorter" id="otable">
    <thead>
        <!-- Table header row; generated from "tablecols" entry in the context dict -->
        <tr>
            {% for tc in tablecols %}
            <th class="{{tc.dclass}} {{tc.clclass}}">
                {%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%}
                {%if tc.orderfield%}
                    <a {%if tc.ordericon%} class="sorted" {%endif%}
                        href="javascript:reload_params({'page': 1, 'orderby' : '{{tc.orderfield}}' })" >
                        {{tc.name}}
                    </a>
                {%else%}
                    <span class="muted">
                        {{tc.name}}
                    </span>
                {%endif%}
                {%if tc.ordericon%} <i class="icon-caret-{{tc.ordericon}}"></i>{%endif%}
            </th>
            {% endfor %}
        </tr>
    </thead>
    {% endif %}