Marius Burkard
2016-07-10 e1ceb050e19c7574bca146a8da7047ee4ff456b5
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
    <div class='table-wrapper'>
      <table class='table'>
        <caption>{tmpl_var name='quota_txt'}</caption>
        <thead class="dark form-group-sm">
          <tr>
            <th>{tmpl_var name='domain_txt'}</th>
            <th>{tmpl_var name='used_txt'}</th>
            <th>{tmpl_var name='soft_txt'}</th>
            <th colspan="2">{tmpl_var name='hard_txt'}</th>
          </tr>
        </thead>
        <tbody>
        <tmpl_loop name='quota'>
            <tr>
                <td>{tmpl_var name='domain'}</td>
                <td>{tmpl_var name='used'}</td>
                <td>{tmpl_var name='soft'}</td>
                <td>{tmpl_var name='hard'}</td>
                <td>
                <div class='progress'>
                    <div class='progress-bar progress-bar-{tmpl_if name="used_percentage" op="<" value="50"}success{tmpl_elseif name="used_percentage" op="<" value="75"}warning{tmpl_else}danger{/tmpl_if}' role='progressbar' aria-valuemin='0' aria-valuemax='100' aria-valuenow='{tmpl_var name="used_percentage"}' style='width:{tmpl_var name="used_percentage"}%' data-toggle="tooltip" data-placement="bottom" title="{tmpl_var name='used_percentage'}%">
                    <span class='sr-only'>{tmpl_var name='used'} {tmpl_var name='of_txt'} {tmpl_var name='soft'}</span>
                    </div>
                </div>
                </td>
            </tr>
        </tmpl_loop>
        </tbody>
      </table>
    </div>