diff options
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/cache.html | 4 | ||||
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/panels/templates.html | 12 |
2 files changed, 9 insertions, 7 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html index 21ea173..3142783 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/cache.html +++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html @@ -31,6 +31,7 @@ <td>{{ cache.get_many }}</td> </tr> </table> +{% if cache.calls %} <h3>Breakdown</h3> <table> <thead> @@ -51,4 +52,5 @@ </tr> {% endfor %} </tbody> -</table>
\ No newline at end of file +</table> +{% endif %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index fa6bb5e..a92657b 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -1,4 +1,4 @@ -<h3>Template path{{ template_dirs|pluralize }}</h3> +<h3>Template path{{ template_dirs|length|pluralize }}:</h3> {% if template_dirs %} <ol> {% for template in template_dirs %} @@ -6,9 +6,9 @@ {% endfor %} </ol> {% else %} - None + <p>None</p> {% endif %} -<h3>Template{{ templates|pluralize }}</h3> +<h3>Template{{ templates|length|pluralize }}</h3> {% if templates %} <dl> {% for template in templates %} @@ -21,9 +21,9 @@ {% endfor %} </dl> {% else %} - None + <p>None</p> {% endif %} -<h3>Context processor{{ context_processors|pluralize }}</h3> +<h3>Context processor{{ context_processors|length|pluralize }}</h3> {% if context_processors %} <dl> {% for key, value in context_processors.iteritems %} @@ -35,5 +35,5 @@ {% endfor %} </dl> {% else %} - None + <p>None</p> {% endif %} |
