Debian Codegraph @

src/flask_debugtoolbar/templates/panels/template.html

raw
1 {% if templates %}
2 {% if editable %}
3 <a href="/_debug_toolbar/views/template/{{ key }}" onclick="return fldt.load_href(this.href);">Edit templates</a>
4 {% endif %}
5 {% for template in templates %}
6 <h4>{{ template.template.name }}</h4>
7 <table>
8 <thead>
9 <tr>
10 <th>Variable</th>
11 <th>Value</th>
12 </tr>
13 </thead>
14 <tbody>
15 {% for k, v in template.context|dictsort %}
16 <tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}">
17 <td>{{ k }}</td>
18 <td>{{ v|printable }}</td>
19 </tr>
20 {% endfor %}
21 </tbody>
22 </table>
23 {% endfor %}
24 {% else %}
25 <p>No template rendered</p>
26 {% endif %}