diff options
| author | Alex Gaynor | 2009-11-02 21:34:50 -0500 |
|---|---|---|
| committer | Rob Hudson | 2009-11-06 19:56:30 -0800 |
| commit | 96fc01758203d45b34732dc17bb67f71f0cba3cc (patch) | |
| tree | 0d5b133eec4fa9f5477b577d80f046b99b3b6806 /debug_toolbar/templates | |
| parent | 124cd110cb4c099430df9d18de5ab1e77a624bca (diff) | |
| download | django-debug-toolbar-96fc01758203d45b34732dc17bb67f71f0cba3cc.tar.bz2 | |
Show view name and arguments and keyword arguments in the request vars panel.
Signed-off-by: Rob Hudson <rob@cogit8.org>
Diffstat (limited to 'debug_toolbar/templates')
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/request_vars.html | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html index 83482e3..124b86e 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html @@ -1,4 +1,31 @@ {% load i18n %} + +<h4>{% trans 'View information' %}</h4> +<table> + <colgroup> + <col style="width:20%"/> + <col/> + </colgroup> + <tbody> + <tr> + <th>{% trans 'View function' %}</th> + <td>{{ view_func }}</td> + </tr> + {% if view_args %} + <tr> + <th>{% trans 'View arguments' %}</th> + <td>{{ view_args }}</td> + </tr> + {% endif %} + {% if view_kwargs %} + <tr> + <th>{% trans 'View keyword arguments' %}</th> + <td>{{ view_kwargs }}</td> + </tr> + {% endif %} + </tbody> +</table> + <h4>{% trans 'COOKIES Variables' %}</h4> {% if cookies %} <table> @@ -93,4 +120,4 @@ </table> {% else %} <p>{% trans "No POST data" %}</p> -{% endif %}
\ No newline at end of file +{% endif %} |
