cubicweb/pyramid/debug_toolbar_templates/cw.dbtmako
changeset 12764 fb97669efcaa
child 12776 3cbcbaead477
equal deleted inserted replaced
12763:5c609202eb61 12764:fb97669efcaa
       
     1 <h3>Controller</h3>
       
     2 
       
     3 <table class="table table-striped table-condensed">
       
     4     <thead>
       
     5         <tr>
       
     6             <th>Kind</th>
       
     7             <th>Request</th>
       
     8             <th>Path</th>
       
     9             <th>Controller</th>
       
    10         </tr>
       
    11     </thead>
       
    12     <tbody>
       
    13         <tr>
       
    14             <td>${controller["kind"]}</td>
       
    15             <td>${controller["request"]}</td>
       
    16             <td>${controller["path"]}</td>
       
    17             <td>${controller["controller"]}</td>
       
    18         </tr>
       
    19     </tbody>
       
    20 </table>
       
    21 
       
    22 <h3>Configuration</h3>
       
    23 
       
    24 <table class="table table-striped table-condensed">
       
    25     <thead>
       
    26         <tr>
       
    27             <th>Key</th>
       
    28             <th>Value</th>
       
    29             <th>Default</th>
       
    30             <th>Help</th>
       
    31         </tr>
       
    32     </thead>
       
    33     <tbody>
       
    34         % for key, metadata in sorted(controller["config"].options, key=lambda x: x[0]):
       
    35             % if hasattr(controller["config"].config, key.replace("-", "_")):
       
    36             <% value = getattr(controller["config"].config, key.replace("-", "_")) %>
       
    37             <tr>
       
    38                 <td>${key}</td>
       
    39                 % if value != metadata["default"]:
       
    40                 <td><b>${value}</b></td>
       
    41                 % else:
       
    42                 <td>${value}</td>
       
    43                 % endif
       
    44                 <td>${metadata["default"]}</td>
       
    45                 <td>${metadata["help"]}</td>
       
    46             </tr>
       
    47             % endif
       
    48         % endfor
       
    49     </tbody>
       
    50 </table>
       
    51 
       
    52 
       
    53 
       
    54 <h3>Useful links</h3>
       
    55 
       
    56 <!-- link on the default home as an admin -->
       
    57 <ul>
       
    58     <li><a href="/siteconfig">site configuration</a></li>
       
    59     <li><a href="/schema">data model schema</a></li>
       
    60     <li><a href="/cwuser">users and groups</a></li>
       
    61     <li><a href="/cwsource">data sources</a></li>
       
    62     <li><a href="/siteinfo">Site information</a></li>
       
    63 </ul>