From 3eb79e1a5fa4c164a224ae0adbe0ea16fde35758 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 24 Oct 2017 18:31:43 -0700 Subject: [PATCH] Show total row count at top of table page --- templates/table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/table.html b/templates/table.html index 8183f8af..0a9d5306 100644 --- a/templates/table.html +++ b/templates/table.html @@ -5,7 +5,7 @@ {% block content %}

{{ database }}

-

{{ table }} ({{ total_rows }} total row{% if total_rows == 1 %}{% else %}s{% endif %} in this table)

+

{{ table }}{% if total_rows != None %} ({{ total_rows }} total row{% if total_rows == 1 %}{% else %}s{% endif %} in this table){% endif %}