cubicweb/pyramid/debug_toolbar_templates/rql.dbtmako
changeset 12761 10b8352b0208
parent 12760 d5ae5abd0876
child 12777 7c4216ed7497
equal deleted inserted replaced
12760:d5ae5abd0876 12761:10b8352b0208
     3         <tr>
     3         <tr>
     4             <th class="table-col-1">#</th>
     4             <th class="table-col-1">#</th>
     5             <th class="table-col-2">Time (ms)</th>
     5             <th class="table-col-2">Time (ms)</th>
     6             <th class="table-col-3">RQL</th>
     6             <th class="table-col-3">RQL</th>
     7             <th class="table-col-5">Result</th>
     7             <th class="table-col-5">Result</th>
       
     8             <th class="table-col-6">SQL</th>
     8             <th class="table-col-7">Description</th>
     9             <th class="table-col-7">Description</th>
     9             <th class="table-col-8">Stack</th>
    10             <th class="table-col-8">Stack</th>
    10         </tr>
    11         </tr>
    11     </thead>
    12     </thead>
    12     <tbody>
    13     <tbody>
    27                     </span>
    28                     </span>
    28                 </td>
    29                 </td>
    29                 % else:
    30                 % else:
    30                 <td class="table-col-5">${highlight(query["result"], "python3") | n}</td>
    31                 <td class="table-col-5">${highlight(query["result"], "python3") | n}</td>
    31                 % endif
    32                 % endif
       
    33                 <td>
       
    34                     % for sql in query["generated_sql_queries"]:
       
    35                     <div class="well" style="padding: 3px">
       
    36                         ${highlight(sql['sql'], "SQL") | n}
       
    37                         <br>
       
    38                         ${highlight(sql['args'], "python3") | n}
       
    39                     </div>
       
    40                     % endfor
       
    41                 </td>
    32                 <td class="table-col-7">${highlight(query["description"], "python3") | n}</td>
    42                 <td class="table-col-7">${highlight(query["description"], "python3") | n}</td>
    33                 <td class="table-col-8">
    43                 <td class="table-col-8">
    34                     <a class="btn btn-default" id="show-stack-${i}" href="javascript:show_stack(${i})">show stack</a>
    44                     <a class="btn btn-default" id="show-stack-${i}" href="javascript:show_stack(${i})">show stack</a>
    35                     <a class="btn btn-default" id="hide-stack-${i}" href="javascript:hide_stack(${i})" style="display: none">hide stack</a>
    45                     <a class="btn btn-default" id="hide-stack-${i}" href="javascript:hide_stack(${i})" style="display: none">hide stack</a>
    36                 </td>
    46                 </td>